Krolyxon
Commit 644c846

Branches

Refs →

aurora644c846

remove waybar & swaync since aurora replaces it

Author
krolyxon
Date
2026-10-13 10:12 +0530
Committer
krolyxon · 2026-10-13 10:15 +0530
Parent
a03ac88
Commit
644c84676b9972832507bcbb1134220ad91e4691

+0 −746

11 files changed

  1. D .config/swaync/Blow.aiff
  2. D .config/swaync/config.json +0 −71
  3. D .config/swaync/i-am-loving-it.mp3
  4. D .config/swaync/notification-sound.sh +0 −6
  5. D .config/swaync/style.css +0 −176
  6. D .config/waybar/config.jsonc +0 −162
  7. D .config/waybar/scripts/bluetooth-battery.sh +0 −17
  8. D .config/waybar/scripts/catloop.sh +0 −72
  9. D .config/waybar/scripts/gpu_mode.sh +0 −19
  10. D .config/waybar/style.css +0 −221
  11. M packages/pkg_desktop.sh +0 −2
D .config/swaync/Blow.aiff View

[Binary file]

D .config/swaync/config.json View
@@ -1,71 +0,0 @@
1−{
2− "$schema": "/etc/xdg/swaync/configSchema.json",
3−
4− "positionX": "right",
5− "positionY": "top",
6− "control-center-positionX": "none",
7− "control-center-positionY": "none",
8− "control-center-margin-top": 8,
9− "control-center-margin-bottom": 8,
10− "control-center-margin-right": 8,
11− "control-center-margin-left": 8,
12− "control-center-width": 500,
13− "control-center-height": -1,
14− "fit-to-screen": false,
15− "layer-shell-cover-screen": true,
16−
17− "layer-shell": true,
18− "layer": "overlay",
19− "control-center-layer": "overlay",
20− "cssPriority": "user",
21− "notification-body-image-height": 100,
22− "notification-body-image-width": 200,
23− "notification-inline-replies": true,
24− "timeout": 10,
25− "timeout-low": 5,
26− "timeout-critical": 0,
27− "notification-window-width": 500,
28− "keyboard-shortcuts": true,
29− "image-visibility": "always",
30− "transition-time": 200,
31− "hide-on-clear": true,
32− "hide-on-action": true,
33− "script-fail-notify": true,
34− "scripts": {
35− "sound-script": {
36− "exec": "bash /home/k/.config/swaync/notification-sound.sh",
37− "app-name": ".*"
38− }
39− },
40− "widgets": [
41− "inhibitors",
42− "dnd",
43− "mpris",
44− "notifications"
45− ],
46− "widget-config": {
47− "notifications": {
48− "vexpand": false
49− },
50− "inhibitors": {
51− "text": "Inhibitors",
52− "button-text": "Clear All",
53− "clear-all-button": true
54− },
55− "title": {
56− "text": "Notifications",
57− "clear-all-button": false,
58− "button-text": "Clear All"
59− },
60− "dnd": {
61− "text": "Do Not Disturb"
62− },
63− "label": {
64− "max-lines": 5,
65− "text": "Label Text"
66− },
67− "mpris": {
68− "autohide": true
69− }
70− }
71−}
D .config/swaync/i-am-loving-it.mp3 View

[Binary file]

D .config/swaync/notification-sound.sh View
@@ -1,6 +0,0 @@
1−#!/bin/bash
2−
3−if [ $(swaync-client -D) = "false" ]; then
4− # paplay ~/.config/swaync/i-am-loving-it.mp3
5− paplay ~/.config/swaync/Blow.aiff
6−fi
D .config/swaync/style.css View
@@ -1,176 +0,0 @@
1−@import '../../.cache/wal/colors-waybar.css';
2−
3−@define-color text @foreground;
4−@define-color bg @color1;
5−@define-color selected @color6;
6−@define-color hover alpha(@selected, .4);
7−
8−* {
9− outline: none;
10− transition: 200ms;
11−}
12−
13−.notification-row {
14− outline: none;
15− margin: 0;
16− padding: 0px;
17−}
18−
19−.notification-row .notification-background .close-button {
20− /* The notification Close Button */
21− background: transparent;
22− color: @text;
23− text-shadow: none;
24− box-shadow: none;
25− margin-top: 2px;
26− margin-right: 2px;
27− padding: 0;
28− border: none;
29− border-radius: 100%;
30− min-width: 24px;
31− min-height: 24px;
32−}
33−
34−.notification-row .notification-background .close-button:hover {
35− box-shadow: none;
36− background: @hover;
37− transition: background 0.15s ease-in-out;
38− border: 0px;
39−}
40−
41−.notification-row .notification-background .notification {
42− /* The actual notification */
43− background: @background;
44−}
45−
46−.notification-row .notification-background .notification .notification-action, .notification-row .notification-background .notification .notification-default-action {
47− color: @text;
48−}
49−
50−.notification-row .notification-background .notification .notification-action:hover, .notification-row .notification-background .notification .notification-default-action:hover {
51− -gtk-icon-effect: none;
52− background: @hover;
53−}
54−
55−.notification-group .notification-group-headers {
56− /* Notficiation Group Headers */
57− margin-top: 10px;
58− margin-bottom: 10px;
59−}
60−
61−.notification-group .notification-group-headers .notification-group-header {
62− font-size: r2px;
63− margin-left: 3px;
64−}
65−
66−.notification-group.collapsed .notification-row .notification {
67− background-color: @background;
68−}
69−
70−.notification-group.collapsed:hover .notification-row:not(:only-child) .notification {
71− /* Notification Group collapsed, hovered */
72− box-shadow: 0 0 0 1px alpha(@hover, 0.3), 0 1px 3px 1px alpha(@hover, 0.3), 0 2px 6px 2px alpha(@hover, 0.3);
73−}
74−
75−.control-center {
76− /* The Control Center which contains the old notifications + widgets */
77− box-shadow: 0px 2px 5px black;
78− background: alpha(@background, .55);
79− border: 2px solid @selected;
80−}
81−
82−.control-center-clear-all {
83− /* Clear All button */
84− background: @bg;
85−}
86−
87−.control-center-clear-all:hover {
88− background: @hover;
89−}
90−
91−.control-center-clear-all:active {
92− background: @selected;
93−}
94−
95−/*** Widgets ***/
96−/* Title widget */
97−.widget-title {
98− background: none;
99− margin-top: 15px;
100− margin-left: 15px;
101− margin-right: 15px;
102−}
103−
104−/* Do Not Disturb widget */
105−.widget-dnd {
106− background: none;
107− margin-left: 15px;
108− margin-right: 15px;
109−}
110−
111−.widget-dnd > switch {
112− background: @bg;
113− font-size: initial;
114− border-radius: 12px;
115− box-shadow: none;
116− padding: 2px;
117−}
118−
119−.widget-dnd > switch:hover {
120− background: @hover;
121−}
122−
123−.widget-dnd > switch:checked {
124− background: @selected;
125−}
126−
127−.widget-dnd > switch slider {
128− background: @text;
129− border-radius: 12px;
130−}
131−
132−/* Media Player widget */
133−@define-color mpris-album-art-overlay rgba(0, 0, 0, 0.55);
134−@define-color mpris-button-hover rgba(0, 0, 0, 0.50);
135−.widget-mpris {
136−}
137−
138−.widget-mpris .widget-mpris-player {
139− padding: 10px;
140− margin: 8px 15px;
141− background-color: @mpris-album-art-overlay;
142− box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.75);
143− border: 2px;
144−}
145−
146−.widget-mpris .widget-mpris-player .widget-mpris-title {
147− font-size: 16px;
148−}
149−
150−.widget-mpris .widget-mpris-player .widget-mpris-subtitle {
151− font-size: 14px;
152−}
153−
154−/* Buttons widget */
155−.widget-buttons-grid {
156− background-color: alpha(@color2, 0.5);
157−}
158−
159−.widget-buttons-grid > flowbox > flowboxchild > button {
160− background: alpha(@color2, 0.5);
161− border-radius: 12px;
162− min-width: 45px;
163−}
164−
165−.widget-buttons-grid > flowbox > flowboxchild > button:hover {
166− background: @hover;
167−}
168−
169−.widget-buttons-grid > flowbox > flowboxchild > button:active {
170− background: @selected;
171−}
172−
173−.widget-buttons-grid > flowbox > flowboxchild > button.toggle:checked {
174− /* style given to the active toggle button */
175− background: red;
176−}
D .config/waybar/config.jsonc View
@@ -1,162 +0,0 @@
1−{
2− // "layer": "top", // Waybar at top layer
3− "position": "top", // Waybar position (top|bottom|left|right)
4− "height": 0, // Waybar height (to be removed for auto height)
5− "width": 0, // Waybar width (0 == auto)
6− "spacing": 0, // Gaps between modules
7− "modules-left": [
8− "hyprland/workspaces",
9− "custom/cpucat"
10− ],
11− "modules-center" : [
12− "hyprland/window"
13− ],
14− "modules-right": [
15− "tray",
16− "custom/gpumode",
17− "custom/headset-battery",
18− "pulseaudio",
19− "battery",
20− "backlight",
21− "cpu",
22− "memory",
23− // "network",
24− "custom/date",
25− "clock",
26− ],
27− // Modules configuration
28− "hyprland/workspaces": {
29− "format": "{icon}",
30− "format-icons": {
31− "1": "", // Browser → research, online study
32− "2": "", // Code → programming, assignments
33− "3": "", // Book → textbooks, notes, reading
34− "4": "", // Cog → system/tools for productivity
35− "5": "", // Chatting
36− "6": "", // Scroll/file → reports, writing, docs
37− "7": "", // Folder → file manager, documents
38− "8": "", // Terminal → dev tools, CLI
39− "9": "", // Flask (Science) → labs, simulations, experiments
40− "10": "", // Media viewer (optional, for diagrams/images)
41− "11": "",
42− "12": "",
43− "13": "",
44− "14": "",
45− "15": "",
46− "16": "",
47− "17": "",
48− "18": "",
49− "19": "",
50− "20": "",
51− "urgent": "",
52− // "active": "", // focused workspace on current monitor
53− // "visible": "", // focused workspace on other monitors
54− // "default": "",
55− // "default": "", // focused workspace on current monitor
56− // "empty": "" // persistent
57− },
58− "on-click": "activate",
59− "on-scroll-up": "hyprctl dispatch 'hl.dsp.focus({workspace=\"e+1\"})' ",
60− "on-scroll-down": "hyprctl dispatch 'hl.dsp.focus({workspace=\"e-1\"})' ",
61− "all-outputs": false,
62− "show-special": false
63− },
64− "hyprland/window": {
65− "format": "󰣇 {}",
66− "max-length": 50
67− },
68− "tray": {
69− "icon-size": 13,
70− "spacing": 10
71− },
72− "clock": {
73− "timezone": "Asia/Kolkata",
74− "tooltip-format": "<tt><big>{calendar}</big></tt>",
75− "format": "󰥔 {:%H:%M}",
76− "interval": 5
77− },
78− "custom/date": {
79− "timezone": "Asia/Kolkata",
80− "exec": "date +'%d %b %Y'",
81− "format": "󰃭 {}",
82− "interval": 1,
83− "tooltip": false
84− },
85− "custom/gpumode": {
86− "exec": "~/.config/waybar/scripts/gpu_mode.sh",
87− "format": "{}",
88− "interval": "once",
89− "on-click": "~/.local/bin/envyswitch",
90− },
91− "custom/headset-battery": {
92− "exec": "~/.config/waybar/scripts/bluetooth-battery.sh",
93− "format": "󰋋 {}",
94− "return-type": "json",
95− "interval": 15,
96− "hide-empty-text": true
97− },
98− "custom/cpucat": {
99− "exec":"~/.config/waybar/scripts/catloop.sh",
100− },
101− "cpu": {
102− "format": " {usage:2}%",
103− "interval": 1,
104− "on-click": "$TERMINAL -e htop",
105− },
106− "memory": {
107− "format": " {used:0.1f}G",
108− "interval": 1,
109− "on-click": "$TERMINAL -e htop",
110− },
111− "battery": {
112− "states": {
113− "good": 90,
114− "warning": 30,
115− "critical": 15
116− },
117− "format": "{icon} {capacity:3}%",
118− "format-charging": "󰂄 {capacity:3}%",
119− "format-plugged": " {capacity:3}%",
120− "format-alt": "{icon} ",
121− "format-good": "{icon} {capacity:3}%",
122− "format-full": "{icon} {capacity:3}%",
123− "tooltip-format": "{timeTo}\nHealth: {health}%\nPower Draw: {power:.2f} W\nCycles: {cycles}\n\nLMB: Toggle Format\nRMB: Timeout Settings",
124− "format-icons": [
125− "",
126− "",
127− "",
128− "",
129− ""
130− ]
131− },
132− "backlight": {
133− "format": "{icon} {percent}%",
134− "format-icons": ["󰃞", "󰃟", "󰃠"],
135− // "on-scroll-up": "brightnessctl set 1%+",
136− // "on-scroll-down": "brightnessctl set 1%-",
137− "on-scroll-up": "brictl +",
138− "on-scroll-down": "brictl -",
139− "min-length": 6
140− },
141− "pulseaudio": {
142− "scroll-step": 1, // %, can be a float
143− "format": "{volume:2}% {icon} {format_source}",
144− "format-muted": "{volume:2}% 󰝟 {format_source}",
145− "format-bluetooth": "{volume:2}% {icon}  {format_source}",
146− "format-source": "",
147− "format-source-muted": "",
148− "format-icons": {
149− "analog": "",
150− "hdmi": "󰓃",
151− "headphone": "",
152− "headset": "󰋎",
153− "default": [
154− "", // 0 - 25
155− "", // 25 - 50
156− "", // 50 - 75
157− "" // 75 - 100
158− ]
159− },
160− "on-click": "pavucontrol",
161− },
162−}
D .config/waybar/scripts/bluetooth-battery.sh View
@@ -1,17 +0,0 @@
1−#!/usr/bin/env bash
2−
3−# Find the UPower device path for any connected headset/headphones
4−DEVICE_PATH=$(upower -e | grep -E 'headset|headphone' | head -n 1)
5−
6−# If no headset device is found in UPower, exit silently so Waybar hides the module
7−if [ -z "$DEVICE_PATH" ]; then
8− exit 0
9−fi
10−
11−# Extract the percentage value (e.g., "90%")
12−PERCENTAGE=$(upower -i "$DEVICE_PATH" | awk '/percentage:/ {print $2}')
13−
14−# Output JSON format for Waybar
15−if [ -n "$PERCENTAGE" ]; then
16− printf '{"text": "%s", "tooltip": "Headset Battery: %s", "class": "connected"}\n' "$PERCENTAGE" "$PERCENTAGE"
17−fi
D .config/waybar/scripts/catloop.sh View
@@ -1,72 +0,0 @@
1−#!/usr/bin/env bash
2−set -euo pipefail
3−
4−CPU_USAGE=0.0
5−SLEEP_AFTER=4
6−
7−AWAKE_FRAMES=($(eval echo {A..E}))
8−SLEEP_FRAMES=($(eval echo {G..N}))
9−
10−COUNT=0
11−
12−read_cpu() {
13− awk '/^cpu /{
14− user=$2; nice=$3; sys=$4; idle=$5;
15− active = user + nice + sys;
16− total = active + idle;
17− printf "%d %d\n", active, total;
18− exit
19− }' /proc/stat
20−}
21−
22−read prev_active prev_total < <(read_cpu)
23−
24−while true; do
25−
26− read active total < <(read_cpu)
27−
28− delta_active=$((active - prev_active))
29− delta_total=$((total - prev_total))
30−
31− if [ "$delta_total" -le 0 ] || [ "$delta_active" -lt 0 ]; then
32− utilization="0.0000"
33− else
34− utilization=$(awk -v a="$delta_active" -v t="$delta_total" 'BEGIN { printf "%.4f", (a / t) }')
35− fi
36−
37− CPU_USAGE=$utilization
38−
39− SPEED=$(awk -v u="$CPU_USAGE" 'BEGIN { printf "%.2f", 1 / (4 + (u * 100)) }')
40− # clip minimum speed
41− if (( $(echo "$SPEED < 0.03" | bc -l) )); then
42− SPEED=0.03
43− fi
44−
45− ### MAKE THE CAT SLEEP IF CPU USAGE IS LOW after SLEEP_AFTER ###
46− if (( $(echo "$CPU_USAGE < 0.02" | bc -l) )); then
47− COUNT=$((COUNT + 1))
48− else
49− COUNT=0
50− fi
51−
52− ### CAT IS SLEEPING ###
53− if [ $COUNT -ge $SLEEP_AFTER ]; then
54− for s in "${SLEEP_FRAMES[@]}";do
55− echo $s
56− sleep $SPEED
57− done
58−
59− ### CAT IS AWAKE ###
60− else
61− for i in "${AWAKE_FRAMES[@]}";do
62− echo $i
63− sleep $SPEED
64− done
65−
66− fi
67−
68− prev_active=$active
69− prev_total=$total
70−done
71−
72−# vim: set ts=2 sw=2
D .config/waybar/scripts/gpu_mode.sh View
@@ -1,19 +0,0 @@
1−#!/bin/bash
2−mode=$(envycontrol -q | awk '{print $NF}')
3−
4−case "$mode" in
5− integrated)
6− icon=""
7− ;;
8− hybrid)
9− icon=""
10− ;;
11− nvidia)
12− icon=""
13− ;;
14− *)
15− icon=""
16− ;;
17−esac
18−
19−echo "$icon $mode"
D .config/waybar/style.css View
@@ -1,221 +0,0 @@
1−@import url('../../.cache/wal/colors-waybar.css');
2−
3−* {
4−font-family: "Jetbrains Mono Nerd", "FontAwesome";
5−font-weight: bold;
6−min-height: 0;
7−font-size: 96%;
8−font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
9−/* padding: 0.03125rem; */
10−}
11−
12−window#waybar {
13− transition-property: background-color;
14− transition-duration: 0.5s;
15− background: @background;
16−}
17−
18−window#waybar.hidden {
19− opacity: 0.2;
20−}
21−
22−#waybar.empty #window {
23− background: none;
24−}
25−
26−
27−/**************/
28−/* Workspaces */
29−/**************/
30−
31−#workspaces {
32− transition: all 0.2s ease;
33−}
34−
35−/* non-empty workspaces */
36−#workspaces button {
37− background-color: @background;
38− border: none;
39− border-radius: 0;
40− color: @foreground;
41− transition: all 0.2s ease;
42− text-shadow: none;
43−
44− /* center the icon, no clue why this is necessary */
45− padding-left: 5px;
46− padding-right: 10px;
47− /* padding-top: 1px; */
48−
49− box-shadow: inset 0 -1px @cursor;
50−}
51−
52−
53−/* empty persistent workspaces */
54−#workspaces button.empty {
55− background-color: @background;
56− box-shadow: none;
57−}
58−
59−#workspaces button:hover {
60− /* transition-duration: .3s; */
61− color: @background;
62− background-color: @color14;
63− box-shadow: inset 0 -1px @foreground;
64− /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
65− text-shadow: inherit;
66−}
67−
68−/* non-empty persistent workspaces */
69−#workspaces button.persistent {
70− background-color: @color0;
71−}
72−
73−
74−
75−/* active or visible workspaces */
76−#workspaces button.active,
77−#workspaces button.visible {
78− color: @color0;
79− background-color: @color14;
80−}
81−
82−#workspaces button.urgent {
83− color: @color3;
84−}
85−
86−/**************/
87−
88−#mode {
89− background-color: @color2;
90− border-bottom: 3px solid @foreground;
91−}
92−
93−#clock,
94−#custom-date,
95−#custom-gpumode,
96−#battery,
97−#backlight,
98−#cpu,
99−#memory,
100−#disk,
101−#temperature,
102−#pulseaudio,
103−#wireplumber,
104−#mpris,
105−#custom-media,
106−#tray,
107−#window,
108−#custom-headset-battery,
109−#custom-notification,
110−#mpd {
111− background-color: @background;
112− padding: 0 12px 0 12px;
113− margin-left: 10px;
114−
115−}
116−
117−#custom-cpucat {
118− font-family: "Waycat", monospace;
119− font-size: 14px;
120− font-weight: bold;
121− color: @foreground;
122− padding: 0 12px 0 12px;
123−}
124−
125−/* If workspaces is the leftmost module, omit left margin */
126−.modules-left>widget:first-child>#workspaces {
127− margin-left: 0;
128−}
129−
130−/* If workspaces is the rightmost module, omit right margin */
131−.modules-right>widget:last-child>#workspaces {
132− margin-right: 0;
133−}
134−
135−#window {
136− color: @foreground
137−}
138−
139−#clock {
140− color: @foreground;
141− box-shadow: inset 0 -1px @color14;
142−}
143−
144−#custom-date {
145− color: @foreground;
146− box-shadow: inset 0 -1px @color14;
147−}
148−
149−#custom-gpumode{
150− color: @foreground;
151− box-shadow: inset 0 -1px @color14;
152−}
153−
154−
155−#battery {
156− color: @foreground;
157− box-shadow: inset 0 -1px @color14;
158−}
159−
160−#backlight {
161− color: @foreground;
162− box-shadow: inset 0 -1px @color14;
163−}
164−
165−#custom-headset-battery {
166− color: @foreground;
167− box-shadow: inset 0 -1px @color14;
168−}
169−
170−
171−@keyframes blink {
172− to {
173− background-color: #ffffff;
174− color: black;
175− }
176−}
177−
178−#battery.critical:not(.charging) {
179− background-color: @color5;
180− color: @foreground;
181− animation-name: blink;
182− animation-duration: 0.5s;
183− animation-timing-function: linear;
184− animation-iteration-count: infinite;
185− animation-direction: alternate;
186−}
187−
188−label:focus {
189− background-color: black;
190−}
191−
192−#cpu {
193− color: @foreground;
194− box-shadow: inset 0 -1px @color14;
195−}
196−
197−#memory {
198− color: @foreground;
199− box-shadow: inset 0 -1px @color14;
200−}
201−
202−#pulseaudio {
203− color: @foreground;
204− box-shadow: inset 0 -1px @color14;
205−}
206−
207−
208−#tray {
209− color: @color15;
210− box-shadow: inset 0 -1px @subtext0;
211−
212−}
213−
214−#tray>.passive {
215− -gtk-icon-effect: dim;
216−}
217−
218−#tray>.needs-attention {
219− -gtk-icon-effect: highlight;
220− background-color: #bf616a;
221−}
M packages/pkg_desktop.sh View
@@ -9,6 +9,4 @@ export pkg_desktop=(
99 "hyprpolkitagent"
1010 "hyprshot"
1111 "xdg-desktop-portal-hyprland"
12− "swaync"
13− "waybar"
1412 )