forge
Explore
Log in

Don't you dare go Hollow

✨ eww config, hyprlock

Browse files at this commit

f6ecbb82f4f518f7dd6983935211412e4ea2955eAhmet Kaan GümüşParent: 9724528
  • feat
    • ✨ eww config, hyprlock
Show full message
feat: ✨ eww config, hyprlock
.config/btop/btop.confmodified+1 -1
@@ -57,7 +57,7 @@ update_ms = 100
57 57
58 #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",58 #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
59 #* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.59 #* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
60-proc_sorting = "cpu lazy"60+proc_sorting = "memory"
61 61
62 #* Reverse sorting order, True or False.62 #* Reverse sorting order, True or False.
63 proc_reversed = False63 proc_reversed = False
.config/eww/eww.cssmodified+188 -2
@@ -1,8 +1,194 @@
1 * {1 * {
2 all: unset;2 all: unset;
3+ font-family: "FontAwesome", "Roboto", "Helvetica", "Arial", sans-serif;
4+ font-size: 14px;
5+}
6+
7+tooltip {
8+ background-color: #1a1a1a;
9+ color: #ffffff;
10+ border: 1px solid #444444;
11+ border-radius: 6px;
12+ padding: 10px 15px;
13+ font-size: 12px;
14+ font-family: "Monospace", "Courier New", monospace;
15+ margin: 4px;
16+}
17+
18+tooltip label {
19+ background-color: transparent;
20+ color: #ffffff;
21+ padding: 0px;
22+ margin: 0px;
3 }23 }
4 24
5 .bar {25 .bar {
6- background-color: black;26+ background-color: #000000;
7- color: white;27+ color: #ffffff;
28+ padding: 4px 12px;
29+ border-radius: 0px;
30+ border: none;
31+ outline: none;
8 }32 }
33+
34+/* Workspaces */
35+.workspaces {
36+ margin: 0px;
37+ padding: 0px;
38+}
39+
40+.workspace-item {
41+ min-width: 20px;
42+ color: #666666;
43+ padding: 0px;
44+ margin: 0px 8px;
45+}
46+
47+.workspace-item.active {
48+ color: #ffffff;
49+}
50+
51+.workspace-item.active:hover {
52+ color: #cccccc;
53+}
54+
55+/* Music */
56+.music-box {
57+ color: #ffffff;
58+ margin: 0px 8px;
59+ padding: 0px;
60+}
61+
62+.music-box:hover {
63+ color: #888888;
64+}
65+
66+/* Clock */
67+.clock {
68+ color: #ffffff;
69+ padding: 0px;
70+ margin: 0px 16px;
71+}
72+
73+.clock:hover {
74+ color: #888888;
75+}
76+
77+.clock label {
78+ margin: 0px;
79+ padding: 0px;
80+}
81+
82+/* Privacy */
83+.privacy {
84+ color: #ffffff;
85+ font-size: 18px;
86+ margin: 0px 4px;
87+ padding: 0px;
88+}
89+
90+.privacy:hover {
91+ color: #666666;
92+}
93+
94+/* CPU */
95+.cpu {
96+ color: #ffffff;
97+ margin: 0px 4px;
98+ padding: 0px;
99+}
100+
101+.cpu:hover {
102+ color: #777777;
103+}
104+
105+/* Memory */
106+.memory {
107+ color: #ffffff;
108+ margin: 0px 4px;
109+ padding: 0px;
110+}
111+
112+.memory:hover {
113+ color: #777777;
114+}
115+
116+/* Network */
117+.network {
118+ color: #ffffff;
119+ margin: 0px 4px;
120+ padding: 0px;
121+}
122+
123+.network:hover {
124+ color: #777777;
125+}
126+
127+/* Volume */
128+.volume {
129+ color: #ffffff;
130+ padding: 0px;
131+ margin: 0px 4px;
132+}
133+
134+.volume:hover {
135+ color: #777777;
136+}
137+
138+.volume.muted {
139+ color: #888888;
140+ opacity: 0.8;
141+ margin: 0px 4px;
142+}
143+
144+.volume.muted:hover {
145+ color: #555555;
146+ opacity: 0.6;
147+}
148+
149+/* Tray */
150+.tray {
151+ padding: 0px;
152+ margin: 0px 4px;
153+}
154+
155+/* Battery */
156+.battery {
157+ color: #ffffff;
158+ padding: 0px;
159+ margin: 0px 4px;
160+}
161+
162+.battery.charging {
163+ color: #ffffff;
164+}
165+
166+.battery.charging:hover {
167+ color: #777777;
168+}
169+
170+.battery.discharging {
171+ color: #ffffff;
172+}
173+
174+.battery.discharging:hover {
175+ color: #777777;
176+}
177+
178+.battery.full {
179+ color: #ffffff;
180+}
181+
182+.battery.full:hover {
183+ color: #777777;
184+}
185+
186+/* Separators */
187+.separator {
188+ color: #444444;
189+ margin: 0px 4px;
190+ padding: 0px;
191+ font-size: 12px;
192+}
193+
194+/* Buttons */
.config/eww/eww.yuckmodified+246 -17
@@ -1,31 +1,262 @@
1-(defvar time-visible false)1+;; Eww configuration - Bar matching waybar setup
2+;; Using proper tooltip widget for tooltip display
3+
4+;; ============================================================================
5+;; Variables and Polls
6+;; ============================================================================
7+
2 (defpoll time :interval "1s"8 (defpoll time :interval "1s"
3- :initial "initial-value"9+ `date '+%H:%M:%S'`)
4- :run-while time-visible10+
5-`date +%x' | '%H:%M:%S`)11+(defpoll date :interval "1s"
6-(defvar byte_transform 1073741824) ;; 1024*1024*102412+ `date '+%A, %B %d, %Y'`)
13+
14+(defvar time-format-full true)
15+
16+(defvar byte_transform 1073741824)
17+
18+;; Music/Player info - using song_detail.sh script
19+(defpoll music :interval "1s"
20+ `bash ~/.config/scripts/song_detail.sh`)
21+
22+(defpoll music-status :interval "1s"
23+ `playerctl status 2>/dev/null || echo "Stopped"`)
24+
25+;; Privacy status - monitors screen sharing, audio input/output
26+(defpoll privacy :interval "1s"
27+ `bash ~/.config/scripts/privacy_status.sh status`)
28+
29+(defpoll privacy-details :interval "1s"
30+ `bash ~/.config/scripts/privacy_status.sh details`)
31+
32+;; CPU usage
33+(defpoll cpu-usage :interval "1s"
34+ `top -bn1 2>/dev/null | grep "Cpu(s)" | awk '{print int($2)}' || echo "0"`)
35+
36+(defpoll cpu-status :interval "1s"
37+ `bash ~/.config/scripts/cpu_status.sh`)
38+
39+;; Memory usage
40+(defpoll mem-usage :interval "1s"
41+ `free -b 2>/dev/null | awk 'NR==2 {printf "%.1f", $3/1073741824}' || echo "0"`)
42+
43+(defpoll mem-total :interval "1s"
44+ `free -b 2>/dev/null | awk 'NR==2 {printf "%.1f", $2/1073741824}' || echo "0"`)
45+
46+(defpoll memory-status :interval "1s"
47+ `bash ~/.config/scripts/memory_status.sh`)
48+
49+;; Audio volume
50+(defpoll volume :interval "0ms"
51+ `wpctl get-volume @DEFAULT_AUDIO_SINK@ 2>/dev/null | awk '{printf "%.0f", $2*100}' || echo "0"`)
52+
53+(defpoll volume-muted :interval "0ms"
54+ `wpctl get-volume @DEFAULT_AUDIO_SINK@ 2>/dev/null | grep -q MUTED && echo "true" || echo "false"`)
55+
56+;; Volume info - includes song details for tooltip
57+(defpoll volume-info :interval "0ms"
58+ `bash ~/.config/scripts/volume_info.sh`)
59+
60+;; DateTime info - shows date/time and system uptime for tooltip
61+(defpoll datetime-info :interval "1s"
62+ `bash ~/.config/scripts/datetime_info.sh`)
63+
64+;; Network speed - shows current download/upload speeds for bar display
65+(defpoll network-speed :interval "1s"
66+ `bash ~/.config/scripts/network_speed.sh`)
67+
68+;; Network status - shows network activity for tooltip
69+(defpoll network-status :interval "1s"
70+ `bash ~/.config/scripts/network_status.sh`)
71+
72+;; Battery
73+(defpoll battery-capacity :interval "5s"
74+ `cat /sys/class/power_supply/BAT*/capacity 2>/dev/null | head -1 || echo "N/A"`)
75+
76+(defpoll battery-status :interval "5s"
77+ `cat /sys/class/power_supply/BAT*/status 2>/dev/null | head -1 || echo "N/A"`)
78+
79+;; Battery info - detailed tooltip
80+(defpoll battery-info :interval "5s"
81+ `bash ~/.config/scripts/battery_info.sh`)
82+
83+;; Active workspace
84+(defpoll active-ws :interval "0ms"
85+ `hyprctl activeworkspace -j 2>/dev/null | jq -r '.id' || echo "1"`)
86+
87+;; ============================================================================
88+;; Widgets
89+;; ============================================================================
90+
91+;; Workspace display (show only active)
92+(defwidget workspaces-widget []
93+ (eventbox
94+ (label :class "workspace-item active"
95+ :text active-ws)))
96+
97+;; Music widget - click to play/pause, right-click to show cover
98+(defwidget music-widget []
99+ (eventbox :onclick "playerctl play-pause"
100+ :onrightclick "bash ~/.config/scripts/show_cover.sh"
101+ :class "music-box"
102+ (label :text music)))
103+
104+;; Clock widget - left-click to toggle format, right-click to open calendar
105+(defwidget clock-widget []
106+ (tooltip
107+ (label :text datetime-info
108+ :class "tooltip-text")
109+ (eventbox :onclick "eww update time-format-full=${time-format-full == "true" ? "false" : "true"}"
110+ :onrightclick "gnome-calendar 2>/dev/null || zenity --calendar 2>/dev/null || notify-send 'Calendar' '${date}'"
111+ :class "clock"
112+ (label :text {time-format-full == "true" ? "${time} | ${date}" : time}))))
113+
114+;; Privacy widget - shows indicators only when active
115+(defwidget privacy-widget []
116+ (box :visible {privacy != ""}
117+ :space-evenly false
118+ :spacing 4
119+ (tooltip
120+ (label :text privacy-details
121+ :class "tooltip-text")
122+ (eventbox
123+ (label :class "privacy"
124+ :text privacy)))))
125+
126+;; CPU widget
127+(defwidget cpu-widget []
128+ (tooltip
129+ (label :text cpu-status
130+ :class "tooltip-text")
131+ (eventbox
132+ (label :class "cpu"
133+ :text "⚙ ${cpu-usage}%"))))
134+
135+;; Memory widget - horizontal bars indicator (thin)
136+(defwidget memory-widget []
137+ (tooltip
138+ (label :text memory-status
139+ :class "tooltip-text")
140+ (eventbox
141+ (label :class "memory"
142+ :text {mem-usage < 5 ? "◼ ${mem-usage}" :
143+ mem-usage < 10 ? "◼◼ ${mem-usage}" :
144+ mem-usage < 15 ? "◼◼◼ ${mem-usage}" :
145+ mem-usage < 20 ? "◼◼◼◼ ${mem-usage}" :
146+ mem-usage < 25 ? "◼◼◼◼◼ ${mem-usage}" :
147+ mem-usage < 30 ? "◼◼◼◼◼◼ ${mem-usage}" :
148+ mem-usage < 40 ? "◼◼◼◼◼◼◼ ${mem-usage}" :
149+ mem-usage < 50 ? "◼◼◼◼◼◼◼◼ ${mem-usage}" :
150+ mem-usage < 60 ? "◼◼◼◼◼◼◼◼◼ ${mem-usage}" :
151+ mem-usage < 70 ? "◼◼◼◼◼◼◼◼◼◼ ${mem-usage}" :
152+ mem-usage < 80 ? "◼◼◼◼◼◼◼◼◼◼◼ ${mem-usage}" :
153+ mem-usage < 90 ? "◼◼◼◼◼◼◼◼◼◼◼◼ ${mem-usage}" :
154+ "◼◼◼◼◼◼◼◼◼◼◼◼◼ ${mem-usage}"}))))
155+
156+;; Network widget
157+(defwidget network-widget []
158+ (tooltip
159+ (label :text network-status
160+ :class "tooltip-text")
161+ (eventbox
162+ (label :class "network"
163+ :text network-speed))))
164+
165+;; Volume widget - sine wave icon
166+(defwidget volume-widget []
167+ (tooltip
168+ (label :text volume-info
169+ :class "tooltip-text")
170+ (eventbox :onclick "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
171+ :onrightclick "pavucontrol &"
172+ :class {volume-muted == "true" ? "volume muted" : "volume"}
173+ (label :text {volume-muted == "true" ?
174+ "✕ ${volume}%" :
175+ "∿ ${volume}%"}))))
176+
177+;; Battery widget - only shows if battery exists
178+(defwidget battery-widget []
179+ (box :visible {battery-capacity != "N/A"}
180+ :space-evenly false
181+ (tooltip
182+ (label :text battery-info
183+ :class "tooltip-text")
184+ (eventbox
185+ (label :class {battery-status == "Charging" ? "battery charging" :
186+ battery-status == "Discharging" ? "battery discharging" :
187+ battery-status == "Full" ? "battery full" :
188+ "battery"}
189+ :text {battery-capacity < 10 ? "▁ ${battery-capacity}%" :
190+ battery-capacity < 25 ? "▂ ${battery-capacity}%" :
191+ battery-capacity < 50 ? "▃ ${battery-capacity}%" :
192+ battery-capacity < 75 ? "▄ ${battery-capacity}%" :
193+ "▅ ${battery-capacity}%"})))))
194+
195+;; System tray
196+(defwidget tray-widget []
197+ (box :orientation "h"
198+ :space-evenly false
199+ :spacing 5
200+ :class "tray"
201+ (systray :icon-size 20
202+ :space-evenly false
203+ :spacing 5)))
204+
205+;; ============================================================================
206+;; Main Bar Layout
207+;; ============================================================================
7 208
8 (defwidget bar []209 (defwidget bar []
9 (box :orientation "h"210 (box :orientation "h"
10 :class "bar"211 :class "bar"
11- :spacing 0212+ :spacing 16
213+ :space-evenly false
12 :valign "center"214 :valign "center"
13- (label :text time)215+ :height 30
14- (label :text {round(EWW_CPU.avg, 2)})216+
15- (label :text {round(EWW_RAM.used_mem/byte_transform, 2)})217+ ;; Left: Workspaces and Music
16- (systray :icon-size 20218+ (box :orientation "h"
219+ :space-evenly false
220+ :spacing 20
221+ (workspaces-widget)
222+ (music-widget))
223+
224+ ;; Center: Clock (expanded)
225+ (box :orientation "h"
226+ :hexpand true
227+ :halign "center"
228+ (clock-widget))
229+
230+ ;; Right: Status and controls
231+ (box :orientation "h"
17 :space-evenly false232 :space-evenly false
18- :spacing 0233+ :spacing 12
19- )234+ ;; Privacy indicators
20- (label :text "${EWW_BATTERY.BATT.capacity} | ${EWW_BATTERY.BATT.status}")235+ (privacy-widget)
21-))236+
237+ ;; Stats grouped with proper spacing
238+ (box :orientation "h"
239+ :space-evenly false
240+ :spacing 12
241+ (cpu-widget)
242+ (memory-widget)
243+ (network-widget)
244+ (volume-widget)
245+ (battery-widget))
246+
247+ ;; System tray
248+ (tray-widget))))
249+
250+;; ============================================================================
251+;; Main Window
252+;; ============================================================================
22 253
23 (defwindow main254 (defwindow main
24 :monitor 0255 :monitor 0
25 :geometry (geometry :x "0px"256 :geometry (geometry :x "0px"
26 :y "0px"257 :y "0px"
27 :width "99.9%"258 :width "99.9%"
28- :height "30px"259+ :height "34px"
29 :anchor "top center")260 :anchor "top center")
30 :exclusive true261 :exclusive true
31 :stacking "fg"262 :stacking "fg"
@@ -33,5 +264,3 @@
33 :windowtype "dock"264 :windowtype "dock"
34 :wm-ignore true265 :wm-ignore true
35 (bar))266 (bar))
36-
37-
.config/fish/conf.d/rustup.fishadded+1 -0
@@ -0,0 +1 @@
1+source "$HOME/.cargo/env.fish"
.config/hypr/hyprland.confmodified+23 -11
@@ -1,6 +1,6 @@
1 monitor=,preferred,auto,auto1 monitor=,preferred,auto,auto
2 # monitor = eDP-1, 2880x1800@90, 0x1080, 22 # monitor = eDP-1, 2880x1800@90, 0x1080, 2
3-# monitor = HDMI-A-1, 1920x1080@75, 0x0, 13+monitor = HDMI-A-1, 1920x1080@75, 0x0, 1
4 # monitor = eDP-1, disable4 # monitor = eDP-1, disable
5 bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable"5 bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable"
6 bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, enable"6 bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, enable"
@@ -9,9 +9,9 @@ bindl = , switch:off:Lid Switch, exec, hyprctl keyword input:touchdevice:enabled
9 bindl = , switch:off:Lid Switch, exec, hyprctl reload && hyprctl keyword input:touchdevice:enabled false9 bindl = , switch:off:Lid Switch, exec, hyprctl reload && hyprctl keyword input:touchdevice:enabled false
10 # bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 2880x1800@90, 0x1080, 2" monitor = HDMI-A-1, disable10 # bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 2880x1800@90, 0x1080, 2" monitor = HDMI-A-1, disable
11 11
12-exec-once = sleep 1 && waybar12+# exec-once = sleep 1 && waybar
13-# exec-once = sleep 1 && eww daemon13+exec-once = sleep 1 && eww daemon
14-# exec-once = sleep 1 && eww open main14+exec-once = sleep 1 && eww open main
15 exec-once = sleep 2 && nm-applet15 exec-once = sleep 2 && nm-applet
16 exec-once = sleep 2 && blueman-applet16 exec-once = sleep 2 && blueman-applet
17 exec-once = sleep 2 && hyprpaper17 exec-once = sleep 2 && hyprpaper
@@ -22,8 +22,9 @@ exec-once = sleep 3 && wl-paste --type text --watch cliphist store # Stores only
22 exec-once = sleep 3 && wl-paste --type image --watch cliphist store # Stores only image data22 exec-once = sleep 3 && wl-paste --type image --watch cliphist store # Stores only image data
23 23
24 24
25-exec = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" # for GTK3 apps25+# exec = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" # for GTK3 apps
26-exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps26+# exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps
27+# exec = gsettings set org.gnome.desktop.interface icon-theme 'papirus-dark'
27 28
28 env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps29 env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps
29 env = QT_QPA_PLATFORMTHEME, qt6ct30 env = QT_QPA_PLATFORMTHEME, qt6ct
@@ -35,16 +36,18 @@ env = XDG_CURRENT_SESSION, Hyprland
35 # render:explicit_sync = true # legacy command it's deprecated in 0.50 and now it's always enable36 # render:explicit_sync = true # legacy command it's deprecated in 0.50 and now it's always enable
36 37
37 $terminal = wezterm start --always-new-process38 $terminal = wezterm start --always-new-process
38-$fileManager = cosmic-files39+$fileManager = nautilus --new-window
39 $active_menu = rofi -show40 $active_menu = rofi -show
40 $menu = rofi -show drun -show-icons41 $menu = rofi -show drun -show-icons
41 $menu_unsafe = mullvad-exclude rofi -show drun -show-icons42 $menu_unsafe = mullvad-exclude rofi -show drun -show-icons
42 $clipboard = cliphist list | rofi -dmenu -show-icons | cliphist decode | wl-copy43 $clipboard = cliphist list | rofi -dmenu -show-icons | cliphist decode | wl-copy
43 $screenshot = grim "$HOME/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%S').png" | grim - | wl-copy44 $screenshot = grim "$HOME/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%S').png" | grim - | wl-copy
44 $screenshot_with_area_selector = grim -g "$(slurp)" - | wl-copy45 $screenshot_with_area_selector = grim -g "$(slurp)" - | wl-copy
46+$power_menu = bash ~/.config/scripts/power_menu.sh
45 $browser = flatpak run io.github.ungoogled_software.ungoogled_chromium --enable-features=MiddleClickAutoscroll47 $browser = flatpak run io.github.ungoogled_software.ungoogled_chromium --enable-features=MiddleClickAutoscroll
46 $browser_unsafe = mullvad-exclude flatpak run com.brave.Browser --incognito --enable-features=MiddleClickAutoscroll48 $browser_unsafe = mullvad-exclude flatpak run com.brave.Browser --incognito --enable-features=MiddleClickAutoscroll
47 $signal = flatpak run org.signal.Signal49 $signal = flatpak run org.signal.Signal
50+$deezer = flatpak run app.zen_browser.zen
48 $mainMod = SUPER51 $mainMod = SUPER
49 $my_trigger = Alt52 $my_trigger = Alt
50 53
@@ -67,14 +70,14 @@ bind = , Print, exec, $screenshot
67 bind = $my_trigger, F, exec, $browser70 bind = $my_trigger, F, exec, $browser
68 bind = $my_trigger SHIFT, F, exec, $browser_unsafe71 bind = $my_trigger SHIFT, F, exec, $browser_unsafe
69 bind = Shift, Print, exec, $screenshot_with_area_selector72 bind = Shift, Print, exec, $screenshot_with_area_selector
73+bind = $mainMod, L, exec, hyprlock
74+bind = $mainMod, Escape, exec, $power_menu
70 75
71-$tahinli_source = /var/lib/flatpak/exports/bin/io.github.ungoogled_software.ungoogled_chromium --app=https://git.tahinli.com --class=dev.heppen.webapps.Source7800 --name=dev.heppen.webapps.Source7800 --user-data-dir="/home/tahinli/.var/app/dev.heppen.webapps/data/quick-webapps/profiles/io.github.ungoogled_software.ungoogled_chromium/Source7800"
72-$whatsapp = /var/lib/flatpak/exports/bin/io.github.ungoogled_software.ungoogled_chromium --app=https://web.whatsapp.com --class=dev.heppen.webapps.WhatsApp8679 --name=dev.heppen.webapps.WhatsApp8679 --user-data-dir="/home/tahinli/.var/app/dev.heppen.webapps/data/quick-webapps/profiles/io.github.ungoogled_software.ungoogled_chromium/WhatsApp8679"
73 $discord = flatpak run dev.vencord.Vesktop76 $discord = flatpak run dev.vencord.Vesktop
74 $youtube = mullvad-exclude flatpak run io.freetubeapp.FreeTube77 $youtube = mullvad-exclude flatpak run io.freetubeapp.FreeTube
75-$deezer = mullvad-exclude /var/lib/flatpak/exports/bin/io.github.ungoogled_software.ungoogled_chromium --app=https://deezer.com --class=dev.heppen.webapps.Deezer6664 --name=dev.heppen.webapps.Deezer6664 --user-data-dir="/home/tahinli/.var/app/dev.heppen.webapps/data/quick-webapps/profiles/io.github.ungoogled_software.ungoogled_chromium/Deezer6664"
76-$mail = /var/lib/flatpak/exports/bin/io.github.ungoogled_software.ungoogled_chromium --app=https://mail.proton.me --class=dev.heppen.webapps.ProtonMail9657 --name=dev.heppen.webapps.ProtonMail9657 --user-data-dir="/home/tahinli/.var/app/dev.heppen.webapps/data/quick-webapps/profiles/io.github.ungoogled_software.ungoogled_chromium/ProtonMail9657"
77 $code = zed78 $code = zed
79+$mail = flatpak run me.proton.Mail
80+$whatsapp = flatpak run com.rtosta.zapzap
78 81
79 workspace = 100, on-created-empty: $code82 workspace = 100, on-created-empty: $code
80 workspace = 101, on-created-empty: $tahinli_source83 workspace = 101, on-created-empty: $tahinli_source
@@ -101,6 +104,7 @@ bind = Alt, F4, killactive,
101 bind = Alt, 4, killactive,104 bind = Alt, 4, killactive,
102 bind = $mainMod $my_trigger, F4, exit,105 bind = $mainMod $my_trigger, F4, exit,
103 bind = $mainMod, H, exec, pkill -SIGUSR1 waybar106 bind = $mainMod, H, exec, pkill -SIGUSR1 waybar
107+bind = $mainMod, H, exec, ~/.config/scripts/toggle_eww.sh
104 binds {108 binds {
105 allow_workspace_cycles = true109 allow_workspace_cycles = true
106 }110 }
@@ -231,6 +235,14 @@ misc {
231 disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(235 disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
232 }236 }
233 237
238+# ===================================
239+# Power Management
240+# ===================================
241+# Super + Escape: Open power menu
242+# Super + Shift + Q: Quick suspend
243+# Super + Shift + R: Quick reboot
244+# Super + Shift + S: Quick shutdown
245+
234 input {246 input {
235 kb_layout = tr247 kb_layout = tr
236 kb_variant =248 kb_variant =
.config/hypr/hyprlock.confadded+66 -0
@@ -0,0 +1,66 @@
1+# Hyprlock Configuration
2+# Lock screen with date/time display, password authentication, and music info
3+
4+# Background image
5+background {
6+ path = ~/Pictures/ryunosuke-kikuno-VXp-9HwN1eg-unsplash.jpg
7+}
8+
9+# Date label - displays current date in center
10+label {
11+ monitor =
12+ text = cmd[update:1000] echo -e "$(LC_TIME=en_GB.UTF-8 date +"%A, %B %d")"
13+ color = rgba(180, 200, 215, 0.90)
14+ font_size = 25
15+ font_family = SF Pro Display Semibold
16+ position = 0, 350
17+ halign = center
18+ valign = center
19+}
20+
21+# Time label - displays current time in large format at center
22+label {
23+ monitor =
24+ text = cmd[update:1000] echo "<span>$(date +"%H:%M:%S")</span>"
25+ color = rgba(180, 200, 215, 0.90)
26+ font_size = 120
27+ font_family = SF Pro Display Bold
28+ position = 0, 230
29+ halign = center
30+ valign = center
31+}
32+
33+# Password input field with authentication status feedback
34+input-field {
35+ monitor =
36+ size = 280, 55
37+ outline_thickness = 2
38+ dots_size = 0.2
39+ dots_spacing = 0.2
40+ dots_center = true
41+ outer_color = rgba(0, 0, 0, 0)
42+ inner_color = rgba(255, 255, 255, 0.1)
43+ font_color = rgb(180, 200, 215)
44+ fade_on_empty = false
45+ font_family = SF Pro Display Bold
46+ placeholder_text = <i><span foreground="##b4c8d7">Password</span></i>
47+ hide_input = false
48+ position = 0, -210
49+ halign = center
50+ valign = center
51+ check_color = rgba(255, 223, 0, 1.0)
52+ fail_color = rgba(255, 71, 87, 1.0)
53+ fail_text = <i>Authentication Failed</i>
54+}
55+
56+# Music info label - displays current playing song with duration from song_detail.sh script
57+label {
58+ monitor =
59+ text = cmd[update:1000] echo "$(~/.config/scripts/song_detail.sh)"
60+ color = rgba(180, 200, 215, 0.75)
61+ font_size = 18
62+ font_family = JetBrains Mono Nerd, SF Pro Display Bold
63+ position = 0, 50
64+ halign = center
65+ valign = bottom
66+}
.config/hypr/hyprpaper.confmodified+1 -1
@@ -1,4 +1,4 @@
1-$location = ~/Pictures/artem-shuba-V_coeWlO9bQ-unsplash.jpg1+$location = ~/Pictures/josh-hild-ufiZJnon-CQ-unsplash.jpg
2 preload = $location2 preload = $location
3 wallpaper = eDP-1,$location3 wallpaper = eDP-1,$location
4 wallpaper = HDMI-A-1,$location4 wallpaper = HDMI-A-1,$location
.config/qt6ct/qt6ct.confmodified+1 -1
@@ -24,7 +24,7 @@ underline_shortcut=1
24 wheel_scroll_lines=324 wheel_scroll_lines=3
25 25
26 [SettingsWindow]26 [SettingsWindow]
27-geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xa0\0\0\x3u\0\0\0\0\0\0\0\0\0\0\x1\xd5\0\0\x1\xf9\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xa0\0\0\x3u)27+geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xae\0\0\x3\xfd\0\0\0\0\0\0\0\0\0\0\x3\xae\0\0\x3\xfd\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xae\0\0\x3\xfd)
28 28
29 [Troubleshooting]29 [Troubleshooting]
30 force_raster_widgets=130 force_raster_widgets=1
.config/scripts/battery_info.shadded+87 -0
@@ -0,0 +1,87 @@
1+#!/bin/bash
2+
3+# Battery Information Script
4+# Displays detailed battery status and health information from real hardware
5+
6+BATTERY_DIR=$(ls -d /sys/class/power_supply/BAT* 2>/dev/null | head -1)
7+
8+if [ -z "$BATTERY_DIR" ]; then
9+ echo "Battery Details"
10+ echo "==============="
11+ echo ""
12+ echo "No battery detected"
13+ exit 1
14+fi
15+
16+# Read battery information
17+CAPACITY=$(cat "$BATTERY_DIR/capacity" 2>/dev/null || echo "N/A")
18+STATUS=$(cat "$BATTERY_DIR/status" 2>/dev/null || echo "N/A")
19+HEALTH=$(cat "$BATTERY_DIR/health" 2>/dev/null || echo "N/A")
20+TECHNOLOGY=$(cat "$BATTERY_DIR/technology" 2>/dev/null || echo "N/A")
21+CYCLE_COUNT=$(cat "$BATTERY_DIR/cycle_count" 2>/dev/null || echo "N/A")
22+
23+CURRENT=$(cat "$BATTERY_DIR/current_now" 2>/dev/null || echo "0")
24+VOLTAGE=$(cat "$BATTERY_DIR/voltage_now" 2>/dev/null || echo "0")
25+POWER=$(cat "$BATTERY_DIR/power_now" 2>/dev/null || echo "0")
26+ENERGY_FULL=$(cat "$BATTERY_DIR/energy_full" 2>/dev/null || echo "0")
27+ENERGY_NOW=$(cat "$BATTERY_DIR/energy_now" 2>/dev/null || echo "0")
28+TEMP=$(cat "$BATTERY_DIR/temp" 2>/dev/null || echo "0")
29+
30+# Format output
31+echo "Battery Details"
32+echo "==============="
33+echo ""
34+echo "Capacity: ${CAPACITY}%"
35+echo "Status: $STATUS"
36+echo "Health: $HEALTH"
37+echo "Technology: $TECHNOLOGY"
38+echo ""
39+
40+# Convert and display electrical info
41+if [ "$VOLTAGE" != "0" ]; then
42+ VOLTAGE_V=$(echo "scale=2; $VOLTAGE / 1000000" | bc 2>/dev/null)
43+ echo "Voltage: ${VOLTAGE_V}V"
44+fi
45+
46+if [ "$CURRENT" != "0" ]; then
47+ CURRENT_MA=$((CURRENT / 1000))
48+ echo "Current: ${CURRENT_MA}mA"
49+fi
50+
51+if [ "$POWER" != "0" ]; then
52+ POWER_W=$(echo "scale=2; $POWER / 1000000" | bc 2>/dev/null)
53+ echo "Power: ${POWER_W}W"
54+fi
55+
56+if [ "$TEMP" != "0" ]; then
57+ TEMP_C=$(echo "scale=1; $TEMP / 10" | bc 2>/dev/null)
58+ echo "Temperature: ${TEMP_C}°C"
59+fi
60+
61+echo ""
62+echo "Cycle Count: $CYCLE_COUNT"
63+
64+# Display energy info
65+if [ "$ENERGY_FULL" != "0" ]; then
66+ ENERGY_FULL_WH=$(echo "scale=1; $ENERGY_FULL / 1000000" | bc 2>/dev/null)
67+ ENERGY_NOW_WH=$(echo "scale=1; $ENERGY_NOW / 1000000" | bc 2>/dev/null)
68+ echo "Energy Full: ${ENERGY_FULL_WH}Wh"
69+ echo "Energy Now: ${ENERGY_NOW_WH}Wh"
70+fi
71+
72+# Estimate time to full/empty
73+if [ "$POWER" != "0" ] && [ "$POWER" != "0" ]; then
74+ if [ "$STATUS" = "Discharging" ]; then
75+ TIME_REMAINING=$((ENERGY_NOW / (POWER / 1000000)))
76+ HOURS=$((TIME_REMAINING / 3600))
77+ MINUTES=$(((TIME_REMAINING % 3600) / 60))
78+ echo ""
79+ echo "Time to Empty: ${HOURS}h ${MINUTES}m"
80+ elif [ "$STATUS" = "Charging" ]; then
81+ TIME_REMAINING=$(( (ENERGY_FULL - ENERGY_NOW) / (POWER / 1000000)))
82+ HOURS=$((TIME_REMAINING / 3600))
83+ MINUTES=$(((TIME_REMAINING % 3600) / 60))
84+ echo ""
85+ echo "Time to Full: ${HOURS}h ${MINUTES}m"
86+ fi
87+fi
.config/scripts/cpu_status.shadded+210 -0
@@ -0,0 +1,210 @@
1+#!/bin/bash
2+
3+# CPU Status - Shows per-core usage, overall usage history, and temperature history with persistent peak tracking
4+
5+HISTORY_FILE="/tmp/cpu_history.txt"
6+TEMP_HISTORY_FILE="/tmp/cpu_temp_history.txt"
7+CPU_PEAK_FILE="/tmp/cpu_peak.txt"
8+CPU_PEAK_TIMESTAMP_FILE="/tmp/cpu_peak_timestamp.txt"
9+TEMP_PEAK_FILE="/tmp/cpu_temp_peak.txt"
10+TEMP_PEAK_TIMESTAMP_FILE="/tmp/cpu_temp_peak_timestamp.txt"
11+LAST_UPDATE_FILE="/tmp/cpu_status_last_update.txt"
12+MAX_HISTORY=20
13+UPDATE_INTERVAL=1000 # milliseconds
14+
15+cores=$(nproc)
16+
17+# Function to read CPU stats from /proc/stat
18+read_cpu_stats() {
19+ grep "^cpu" /proc/stat | grep -v "^cpu " | head -n $(nproc)
20+}
21+
22+# Function to calculate usage from stats
23+calculate_usage() {
24+ local prev_line="$1"
25+ local curr_line="$2"
26+
27+ read -r prev_cpu prev_user prev_nice prev_system prev_idle prev_iowait prev_irq prev_softirq <<< "$prev_line"
28+ read -r curr_cpu curr_user curr_nice curr_system curr_idle curr_iowait curr_irq curr_softirq <<< "$curr_line"
29+
30+ local user_diff=$((curr_user - prev_user))
31+ local nice_diff=$((curr_nice - prev_nice))
32+ local system_diff=$((curr_system - prev_system))
33+ local idle_diff=$((curr_idle - prev_idle))
34+
35+ local total_diff=$((user_diff + nice_diff + system_diff + idle_diff))
36+ local used_diff=$((user_diff + nice_diff + system_diff))
37+
38+ if [ $total_diff -gt 0 ]; then
39+ echo $((used_diff * 100 / total_diff))
40+ else
41+ echo 0
42+ fi
43+}
44+
45+# Check if we should update history (only once every 1s)
46+current_time_ms=$(date +%s%3N 2>/dev/null || echo $(($(date +%s) * 1000)))
47+last_update=$(cat "$LAST_UPDATE_FILE" 2>/dev/null || echo 0)
48+time_diff=$((current_time_ms - last_update))
49+
50+should_update=0
51+if [ $time_diff -ge $UPDATE_INTERVAL ]; then
52+ should_update=1
53+ echo "$current_time_ms" > "$LAST_UPDATE_FILE"
54+fi
55+
56+# Sample CPU stats twice with delay
57+mapfile -t stats_before < <(read_cpu_stats)
58+sleep 0.1
59+mapfile -t stats_after < <(read_cpu_stats)
60+
61+# Get overall CPU usage
62+cpu_overall=$(top -bn1 2>/dev/null | grep "Cpu(s)" | awk '{print $2}' | cut -d'%' -f1)
63+cpu_overall_int=${cpu_overall%.*}
64+
65+# Only update history if interval has passed
66+if [ $should_update -eq 1 ]; then
67+ # Get current timestamp
68+ current_time=$(date '+%H:%M:%S')
69+
70+ # Add to CPU usage history
71+ echo "$cpu_overall_int" >> "$HISTORY_FILE"
72+ tail -n $MAX_HISTORY "$HISTORY_FILE" > "${HISTORY_FILE}.tmp"
73+ mv "${HISTORY_FILE}.tmp" "$HISTORY_FILE"
74+
75+ # Get CPU temperature from hwmon2 (Tctl)
76+ cpu_temp=0
77+ if [ -f "/sys/class/hwmon/hwmon2/temp1_input" ]; then
78+ temp_raw=$(cat /sys/class/hwmon/hwmon2/temp1_input 2>/dev/null)
79+ cpu_temp=$((temp_raw / 1000))
80+ fi
81+
82+ # Add to temperature history
83+ echo "$cpu_temp" >> "$TEMP_HISTORY_FILE"
84+ tail -n $MAX_HISTORY "$TEMP_HISTORY_FILE" > "${TEMP_HISTORY_FILE}.tmp"
85+ mv "${TEMP_HISTORY_FILE}.tmp" "$TEMP_HISTORY_FILE"
86+
87+ # Initialize or read persistent CPU peak
88+ if [ ! -f "$CPU_PEAK_FILE" ]; then
89+ echo "$cpu_overall_int" > "$CPU_PEAK_FILE"
90+ echo "$current_time" > "$CPU_PEAK_TIMESTAMP_FILE"
91+ fi
92+
93+ persistent_cpu_peak=$(cat "$CPU_PEAK_FILE" 2>/dev/null || echo "$cpu_overall_int")
94+ persistent_cpu_peak_time=$(cat "$CPU_PEAK_TIMESTAMP_FILE" 2>/dev/null || echo "$current_time")
95+
96+ # Update persistent CPU peak if current usage exceeds it
97+ if [ "$cpu_overall_int" -gt "$persistent_cpu_peak" ]; then
98+ persistent_cpu_peak=$cpu_overall_int
99+ persistent_cpu_peak_time=$current_time
100+ echo "$persistent_cpu_peak" > "$CPU_PEAK_FILE"
101+ echo "$persistent_cpu_peak_time" > "$CPU_PEAK_TIMESTAMP_FILE"
102+ fi
103+
104+ # Initialize or read persistent temperature peak
105+ if [ ! -f "$TEMP_PEAK_FILE" ]; then
106+ echo "$cpu_temp" > "$TEMP_PEAK_FILE"
107+ echo "$current_time" > "$TEMP_PEAK_TIMESTAMP_FILE"
108+ fi
109+
110+ persistent_temp_peak=$(cat "$TEMP_PEAK_FILE" 2>/dev/null || echo "$cpu_temp")
111+ persistent_temp_peak_time=$(cat "$TEMP_PEAK_TIMESTAMP_FILE" 2>/dev/null || echo "$current_time")
112+
113+ # Update persistent temperature peak if current temp exceeds it
114+ if [ "$cpu_temp" -gt "$persistent_temp_peak" ]; then
115+ persistent_temp_peak=$cpu_temp
116+ persistent_temp_peak_time=$current_time
117+ echo "$persistent_temp_peak" > "$TEMP_PEAK_FILE"
118+ echo "$persistent_temp_peak_time" > "$TEMP_PEAK_TIMESTAMP_FILE"
119+ fi
120+else
121+ # If not updating, just read the current peaks for display
122+ cpu_temp=0
123+ if [ -f "/sys/class/hwmon/hwmon2/temp1_input" ]; then
124+ temp_raw=$(cat /sys/class/hwmon/hwmon2/temp1_input 2>/dev/null)
125+ cpu_temp=$((temp_raw / 1000))
126+ fi
127+
128+ persistent_cpu_peak=$(cat "$CPU_PEAK_FILE" 2>/dev/null || echo "$cpu_overall_int")
129+ persistent_cpu_peak_time=$(cat "$CPU_PEAK_TIMESTAMP_FILE" 2>/dev/null || echo "N/A")
130+ persistent_temp_peak=$(cat "$TEMP_PEAK_FILE" 2>/dev/null || echo "$cpu_temp")
131+ persistent_temp_peak_time=$(cat "$TEMP_PEAK_TIMESTAMP_FILE" 2>/dev/null || echo "N/A")
132+fi
133+
134+# Read CPU usage history
135+mapfile -t cpu_history < "$HISTORY_FILE"
136+
137+# Read temperature history
138+mapfile -t temp_history < "$TEMP_HISTORY_FILE"
139+
140+# Display header
141+echo "CPU Status"
142+echo "=========="
143+echo ""
144+
145+# Get current CPU governor
146+current_governor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 2>/dev/null || echo "N/A")
147+echo "Governor: $current_governor"
148+echo ""
149+
150+# Draw CPU usage history bar chart
151+cpu_bar=""
152+for val in "${cpu_history[@]}"; do
153+ if [ "$val" -lt 5 ]; then
154+ cpu_bar="${cpu_bar}▁"
155+ elif [ "$val" -lt 20 ]; then
156+ cpu_bar="${cpu_bar}▂"
157+ elif [ "$val" -lt 35 ]; then
158+ cpu_bar="${cpu_bar}▃"
159+ elif [ "$val" -lt 50 ]; then
160+ cpu_bar="${cpu_bar}▄"
161+ elif [ "$val" -lt 65 ]; then
162+ cpu_bar="${cpu_bar}▅"
163+ elif [ "$val" -lt 80 ]; then
164+ cpu_bar="${cpu_bar}▆"
165+ elif [ "$val" -lt 90 ]; then
166+ cpu_bar="${cpu_bar}▇"
167+ else
168+ cpu_bar="${cpu_bar}█"
169+ fi
170+done
171+
172+echo "CPU Usage:"
173+echo " History: $cpu_bar"
174+echo " Current: ${cpu_overall_int}% | Peak: ${persistent_cpu_peak}% (at ${persistent_cpu_peak_time})"
175+echo ""
176+
177+# Draw temperature history bar chart (scale 30-80°C)
178+temp_bar=""
179+for val in "${temp_history[@]}"; do
180+ # Map temperature to 30-80°C range to bar chart
181+ if [ "$val" -lt 35 ]; then
182+ temp_bar="${temp_bar}▁"
183+ elif [ "$val" -lt 40 ]; then
184+ temp_bar="${temp_bar}▂"
185+ elif [ "$val" -lt 45 ]; then
186+ temp_bar="${temp_bar}▃"
187+ elif [ "$val" -lt 50 ]; then
188+ temp_bar="${temp_bar}▄"
189+ elif [ "$val" -lt 55 ]; then
190+ temp_bar="${temp_bar}▅"
191+ elif [ "$val" -lt 60 ]; then
192+ temp_bar="${temp_bar}▆"
193+ elif [ "$val" -lt 70 ]; then
194+ temp_bar="${temp_bar}▇"
195+ else
196+ temp_bar="${temp_bar}█"
197+ fi
198+done
199+
200+echo "Temperature:"
201+echo " History: $temp_bar"
202+echo " Current: ${cpu_temp}°C | Peak: ${persistent_temp_peak}°C (at ${persistent_temp_peak_time})"
203+echo ""
204+
205+# Display per-core usage
206+echo "Per-Core Usage:"
207+for i in "${!stats_before[@]}"; do
208+ usage=$(calculate_usage "${stats_before[$i]}" "${stats_after[$i]}")
209+ printf " Core %2d: %3d%%\n" "$i" "$usage"
210+done
.config/scripts/datetime_info.shadded+33 -0
@@ -0,0 +1,33 @@
1+#!/bin/bash
2+
3+# DateTime Info - Shows system uptime with seconds
4+
5+# Get system uptime in seconds
6+uptime_seconds=$(cat /proc/uptime | awk '{print int($1)}')
7+
8+# Convert to readable format with seconds
9+days=$((uptime_seconds / 86400))
10+hours=$(((uptime_seconds % 86400) / 3600))
11+minutes=$(((uptime_seconds % 3600) / 60))
12+seconds=$((uptime_seconds % 60))
13+
14+# Build uptime string
15+uptime_str=""
16+if [ $days -gt 0 ]; then
17+ uptime_str="${days} day$([ $days -gt 1 ] && echo 's' || true)"
18+ [ $hours -gt 0 ] && uptime_str="$uptime_str, ${hours} hour$([ $hours -gt 1 ] && echo 's' || true)"
19+ [ $minutes -gt 0 ] && uptime_str="$uptime_str, ${minutes} minute$([ $minutes -gt 1 ] && echo 's' || true)"
20+ [ $seconds -gt 0 ] && uptime_str="$uptime_str, ${seconds} second$([ $seconds -gt 1 ] && echo 's' || true)"
21+elif [ $hours -gt 0 ]; then
22+ uptime_str="${hours} hour$([ $hours -gt 1 ] && echo 's' || true)"
23+ [ $minutes -gt 0 ] && uptime_str="$uptime_str, ${minutes} minute$([ $minutes -gt 1 ] && echo 's' || true)"
24+ [ $seconds -gt 0 ] && uptime_str="$uptime_str, ${seconds} second$([ $seconds -gt 1 ] && echo 's' || true)"
25+else
26+ uptime_str="${minutes} minute$([ $minutes -gt 1 ] && echo 's' || true), ${seconds} second$([ $seconds -gt 1 ] && echo 's' || true)"
27+fi
28+
29+# Display with proper alignment
30+echo "Uptime"
31+echo "======"
32+echo ""
33+echo " $uptime_str"
.config/scripts/memory_status.shadded+112 -0
@@ -0,0 +1,112 @@
1+#!/bin/bash
2+
3+# Memory Status - Shows memory usage with history bar chart and persistent peak tracking
4+
5+HISTORY_FILE="/tmp/memory_history.txt"
6+PEAK_FILE="/tmp/memory_peak.txt"
7+PEAK_TIMESTAMP_FILE="/tmp/memory_peak_timestamp.txt"
8+LAST_UPDATE_FILE="/tmp/memory_status_last_update.txt"
9+MAX_HISTORY=20
10+UPDATE_INTERVAL=1000 # milliseconds
11+
12+# Get current memory usage
13+get_memory() {
14+ free -b 2>/dev/null | awk 'NR==2 {
15+ used = $3
16+ total = $2
17+ percent = int(used * 100 / total)
18+ printf "%.1f %.1f %d", used/1073741824, total/1073741824, percent
19+ }'
20+}
21+
22+# Read memory and add to history
23+current=$(get_memory)
24+used=$(echo $current | awk '{print $1}')
25+total=$(echo $current | awk '{print $2}')
26+percent=$(echo $current | awk '{print $3}')
27+
28+# Check if we should update history (only once every 1s)
29+current_time_ms=$(date +%s%3N 2>/dev/null || echo $(($(date +%s) * 1000)))
30+last_update=$(cat "$LAST_UPDATE_FILE" 2>/dev/null || echo 0)
31+time_diff=$((current_time_ms - last_update))
32+
33+should_update=0
34+if [ $time_diff -ge $UPDATE_INTERVAL ]; then
35+ should_update=1
36+ echo "$current_time_ms" > "$LAST_UPDATE_FILE"
37+fi
38+
39+# Only update history if interval has passed
40+if [ $should_update -eq 1 ]; then
41+ # Get current timestamp
42+ current_time=$(date '+%H:%M:%S')
43+
44+ # Append to history file
45+ echo "$used" >> "$HISTORY_FILE"
46+
47+ # Keep only last N entries
48+ tail -n $MAX_HISTORY "$HISTORY_FILE" > "${HISTORY_FILE}.tmp"
49+ mv "${HISTORY_FILE}.tmp" "$HISTORY_FILE"
50+
51+ # Initialize or read persistent peak
52+ if [ ! -f "$PEAK_FILE" ]; then
53+ echo "$used" > "$PEAK_FILE"
54+ echo "$current_time" > "$PEAK_TIMESTAMP_FILE"
55+ fi
56+
57+ persistent_peak=$(cat "$PEAK_FILE" 2>/dev/null || echo "$used")
58+ persistent_peak_time=$(cat "$PEAK_TIMESTAMP_FILE" 2>/dev/null || echo "$current_time")
59+
60+ # Update persistent peak if current usage exceeds it
61+ if (( $(echo "$used > $persistent_peak" | bc -l) )); then
62+ persistent_peak=$used
63+ persistent_peak_time=$current_time
64+ echo "$persistent_peak" > "$PEAK_FILE"
65+ echo "$persistent_peak_time" > "$PEAK_TIMESTAMP_FILE"
66+ fi
67+else
68+ # If not updating, just read the current peaks for display
69+ persistent_peak=$(cat "$PEAK_FILE" 2>/dev/null || echo "$used")
70+ persistent_peak_time=$(cat "$PEAK_TIMESTAMP_FILE" 2>/dev/null || echo "N/A")
71+fi
72+
73+# Read history and create bar chart
74+mapfile -t history < "$HISTORY_FILE"
75+
76+# Create bar chart
77+echo "Memory Status"
78+echo "============="
79+echo ""
80+
81+# Draw bar chart based on history
82+bar=""
83+for val in "${history[@]}"; do
84+ # Calculate percentage and convert to bar
85+ bar_percent=$(echo "scale=0; $val * 100 / $total" | bc)
86+ if [ "$bar_percent" -lt 5 ]; then
87+ bar="${bar}▁"
88+ elif [ "$bar_percent" -lt 20 ]; then
89+ bar="${bar}▂"
90+ elif [ "$bar_percent" -lt 35 ]; then
91+ bar="${bar}▃"
92+ elif [ "$bar_percent" -lt 50 ]; then
93+ bar="${bar}▄"
94+ elif [ "$bar_percent" -lt 65 ]; then
95+ bar="${bar}▅"
96+ elif [ "$bar_percent" -lt 80 ]; then
97+ bar="${bar}▆"
98+ elif [ "$bar_percent" -lt 90 ]; then
99+ bar="${bar}▇"
100+ else
101+ bar="${bar}█"
102+ fi
103+done
104+
105+echo "History: $bar"
106+echo ""
107+
108+# Show current and peak with timestamp
109+persistent_peak_percent=$(echo "scale=1; $persistent_peak * 100 / $total" | bc)
110+
111+echo "Current: ${used} GB / ${total} GB (${percent}%)"
112+echo "Peak: ${persistent_peak} GB / ${total} GB (${persistent_peak_percent}%) (at ${persistent_peak_time})"
.config/scripts/network_speed.shadded+59 -0
@@ -0,0 +1,59 @@
1+#!/bin/bash
2+
3+# Network Speed - Shows current download and upload speeds for bar display
4+
5+# Get network interfaces
6+get_network_stats() {
7+ # Get RX/TX bytes for all interfaces except lo
8+ cat /proc/net/dev | grep -v "lo:" | grep ":" | awk '{
9+ rx += $2
10+ tx += $10
11+ }
12+ END {
13+ printf "%d %d\n", rx, tx
14+ }'
15+}
16+
17+# Store previous values
18+HISTORY_FILE="/tmp/network_speed_history.txt"
19+PREV_RX=0
20+PREV_TX=0
21+
22+# Read previous values if they exist
23+if [ -f "$HISTORY_FILE" ]; then
24+ read PREV_RX PREV_TX < "$HISTORY_FILE"
25+fi
26+
27+# Get current values
28+read CURR_RX CURR_TX <<< $(get_network_stats)
29+
30+# Calculate difference (bytes since last check)
31+DELTA_RX=$((CURR_RX - PREV_RX))
32+DELTA_TX=$((CURR_TX - PREV_TX))
33+
34+# Handle negative values (counter reset)
35+[ $DELTA_RX -lt 0 ] && DELTA_RX=0
36+[ $DELTA_TX -lt 0 ] && DELTA_TX=0
37+
38+# Convert to KB/s (assuming 1 second polling interval)
39+RX_SPEED=$((DELTA_RX / 1024))
40+TX_SPEED=$((DELTA_TX / 1024))
41+
42+# Save current values for next iteration
43+echo "$CURR_RX $CURR_TX" > "$HISTORY_FILE"
44+
45+# Format speeds with units
46+format_speed() {
47+ local speed=$1
48+ if [ $speed -lt 1024 ]; then
49+ printf "%dᵏᵇ/ˢ" "$speed"
50+ else
51+ printf "%dᵐᵇ/ˢ" "$((speed / 1024))"
52+ fi
53+}
54+
55+RX_FORMATTED=$(format_speed $RX_SPEED)
56+TX_FORMATTED=$(format_speed $TX_SPEED)
57+
58+# Output for bar display
59+echo "⬇${RX_FORMATTED} ⬆${TX_FORMATTED}"
.config/scripts/network_status.shadded+76 -0
@@ -0,0 +1,76 @@
1+#!/bin/bash
2+
3+# Network Status - Shows network activity and connection status
4+
5+# Get network interfaces
6+get_network_stats() {
7+ # Get RX/TX bytes for all interfaces except lo
8+ cat /proc/net/dev | grep -v "lo:" | grep ":" | awk '{
9+ rx += $2
10+ tx += $10
11+ }
12+ END {
13+ printf "%d %d\n", rx, tx
14+ }'
15+}
16+
17+# Store previous values
18+HISTORY_FILE="/tmp/network_history.txt"
19+PREV_RX=0
20+PREV_TX=0
21+
22+# Read previous values if they exist
23+if [ -f "$HISTORY_FILE" ]; then
24+ read PREV_RX PREV_TX < "$HISTORY_FILE"
25+fi
26+
27+# Get current values
28+read CURR_RX CURR_TX <<< $(get_network_stats)
29+
30+# Calculate difference (bytes since last check)
31+DELTA_RX=$((CURR_RX - PREV_RX))
32+DELTA_TX=$((CURR_TX - PREV_TX))
33+
34+# Handle negative values (counter reset)
35+[ $DELTA_RX -lt 0 ] && DELTA_RX=0
36+[ $DELTA_TX -lt 0 ] && DELTA_TX=0
37+
38+# Convert to KB/s (assuming 1 second polling interval)
39+RX_SPEED=$((DELTA_RX / 1024))
40+TX_SPEED=$((DELTA_TX / 1024))
41+
42+# Save current values for next iteration
43+echo "$CURR_RX $CURR_TX" > "$HISTORY_FILE"
44+
45+# Format speeds with units
46+format_speed() {
47+ local speed=$1
48+ if [ $speed -lt 1024 ]; then
49+ echo "${speed}KB/s"
50+ else
51+ echo "$((speed / 1024))MB/s"
52+ fi
53+}
54+
55+RX_FORMATTED=$(format_speed $RX_SPEED)
56+TX_FORMATTED=$(format_speed $TX_SPEED)
57+
58+# Check if network is connected and get active interface
59+ACTIVE_INTERFACE=$(ip link | grep "state UP" | grep -oP '^\d+: \K[^:]+' | head -1)
60+CONNECTED=$(ip link | grep -c "state UP")
61+
62+# Display network status
63+echo "Network"
64+echo "======="
65+echo ""
66+
67+if [ $CONNECTED -gt 0 ]; then
68+ echo " Status: Connected"
69+ echo " Interface: $ACTIVE_INTERFACE"
70+else
71+ echo " Status: Disconnected"
72+fi
73+
74+echo ""
75+echo " ⬇ Download: $RX_FORMATTED"
76+echo " ⬆ Upload: $TX_FORMATTED"
.config/scripts/power_menu.shadded+24 -0
@@ -0,0 +1,24 @@
1+#!/bin/bash
2+
3+# Power Management Menu
4+# Provides quick access to suspend, shutdown, reboot, and logout options
5+
6+# Create menu options
7+menu=$(echo -e "🔴 Shutdown\n🔄 Reboot\n😴 Suspend\n🚪 Logout\n❌ Cancel" | rofi -dmenu -p "Power" -i)
8+
9+case "$menu" in
10+ "🔴 Shutdown")
11+ systemctl poweroff
12+ ;;
13+ "🔄 Reboot")
14+ systemctl reboot
15+ ;;
16+ "😴 Suspend")
17+ systemctl suspend
18+ ;;
19+ "🚪 Logout")
20+ hyprctl dispatch exit
21+ ;;
22+ "❌ Cancel")
23+ ;;
24+esac
.config/scripts/privacy_status.shadded+143 -0
@@ -0,0 +1,143 @@
1+#!/bin/bash
2+
3+# Privacy indicator script for eww bar
4+# Usage: privacy.sh [status|details]
5+# status - Returns just the icons (for bar display)
6+# details - Returns detailed info (for tooltip)
7+
8+# Shared detection logic
9+detect_audio_output() {
10+ if command -v pactl &> /dev/null; then
11+ if pactl list sink-inputs 2>/dev/null | grep -q "Corked: no"; then
12+ return 0
13+ fi
14+ fi
15+ return 1
16+}
17+
18+detect_audio_input() {
19+ if command -v pactl &> /dev/null; then
20+ if pactl list source-outputs 2>/dev/null | grep -q "Corked: no"; then
21+ return 0
22+ fi
23+ fi
24+ return 1
25+}
26+
27+detect_screen_sharing() {
28+ if command -v pw-dump &> /dev/null; then
29+ if pw-dump 2>/dev/null | grep -q "xdg-desktop-portal.*capture"; then
30+ return 0
31+ fi
32+ fi
33+ return 1
34+}
35+
36+detect_camera() {
37+ if command -v lsof &> /dev/null; then
38+ # Check if any /dev/video* devices are open
39+ if lsof /dev/video* 2>/dev/null | grep -qv "COMMAND"; then
40+ return 0
41+ fi
42+ fi
43+ return 1
44+}
45+
46+get_output_apps() {
47+ if command -v pactl &> /dev/null; then
48+ pactl list sink-inputs 2>/dev/null | grep -oP '(?<=application\.name = ")[^"]*' | sort -u | paste -sd ', ' -
49+ fi
50+}
51+
52+get_input_apps() {
53+ if command -v pactl &> /dev/null; then
54+ pactl list source-outputs 2>/dev/null | grep -oP '(?<=application\.name = ")[^"]*' | sort -u | paste -sd ', ' -
55+ fi
56+}
57+
58+get_screen_app() {
59+ if command -v pw-dump &> /dev/null; then
60+ if pw-dump 2>/dev/null | jq -r '.[] | select(.info.props["application.name"] != null) | .info.props["application.name"]' 2>/dev/null | grep -q "Brave"; then
61+ echo "Brave"
62+ elif pw-dump 2>/dev/null | jq -r '.[] | select(.info.props["application.name"] != null) | .info.props["application.name"]' 2>/dev/null | grep -q "Zen"; then
63+ echo "Zen"
64+ fi
65+ fi
66+}
67+
68+get_camera_apps() {
69+ if command -v lsof &> /dev/null; then
70+ lsof /dev/video* 2>/dev/null | awk 'NR>1 {print $1}' | sort -u | paste -sd ', ' -
71+ fi
72+}
73+
74+# Show status (just icons for bar)
75+show_status() {
76+ output=""
77+
78+ if detect_audio_output; then
79+ output+="⌣ "
80+ fi
81+
82+ if detect_audio_input; then
83+ output+="⌢ "
84+ fi
85+
86+ if detect_screen_sharing; then
87+ output+="⊞ "
88+ fi
89+
90+ if detect_camera; then
91+ output+="⊙ "
92+ fi
93+
94+ echo "$output" | xargs
95+}
96+
97+# Show details (for tooltip)
98+show_details() {
99+ lines=()
100+
101+ if detect_audio_output; then
102+ output_apps=$(get_output_apps)
103+ if [ -n "$output_apps" ]; then
104+ lines+=("⌣ Playing: $output_apps")
105+ fi
106+ fi
107+
108+ if detect_audio_input; then
109+ input_apps=$(get_input_apps)
110+ if [ -n "$input_apps" ]; then
111+ lines+=("⌢ Recording: $input_apps")
112+ fi
113+ fi
114+
115+ if detect_screen_sharing; then
116+ screen_app=$(get_screen_app)
117+ if [ -n "$screen_app" ]; then
118+ lines+=("⊞ Sharing: $screen_app")
119+ fi
120+ fi
121+
122+ if detect_camera; then
123+ camera_apps=$(get_camera_apps)
124+ if [ -n "$camera_apps" ]; then
125+ lines+=("⊙ Camera: $camera_apps")
126+ fi
127+ fi
128+
129+ printf "%s\n" "${lines[@]}"
130+}
131+
132+# Main logic
133+case "${1:-status}" in
134+ status)
135+ show_status
136+ ;;
137+ details)
138+ show_details
139+ ;;
140+ *)
141+ show_status
142+ ;;
143+esac
.config/scripts/show_cover.shadded+50 -0
@@ -0,0 +1,50 @@
1+#!/bin/bash
2+
3+# Get cover art URL from playerctl
4+cover_url=$(playerctl metadata mpris:artUrl 2>/dev/null)
5+
6+if [[ -z "$cover_url" ]]; then
7+ notify-send "No cover art available"
8+ exit 1
9+fi
10+
11+# Handle file:// URLs
12+if [[ "$cover_url" == file://* ]]; then
13+ cover_path="${cover_url#file://}"
14+ # Decode URL encoding
15+ cover_path=$(printf '%b' "${cover_path//%/\\x}")
16+
17+ if [[ ! -f "$cover_path" ]]; then
18+ notify-send "Cover file not found"
19+ exit 1
20+ fi
21+else
22+ # It's a URL, download it
23+ cover_path="/tmp/album_cover_$(date +%s).jpg"
24+
25+ if command -v curl &> /dev/null; then
26+ curl -s -L "$cover_url" -o "$cover_path" 2>/dev/null
27+ elif command -v wget &> /dev/null; then
28+ wget -q "$cover_url" -O "$cover_path" 2>/dev/null
29+ else
30+ notify-send "Need curl or wget to download cover"
31+ exit 1
32+ fi
33+
34+ if [[ ! -f "$cover_path" ]] || [[ ! -s "$cover_path" ]]; then
35+ notify-send "Failed to download cover art"
36+ exit 1
37+ fi
38+fi
39+
40+# Display the cover using available image viewer
41+if command -v feh &> /dev/null; then
42+ feh --geometry 500x500 --title "Album Cover" "$cover_path" 2>/dev/null &
43+elif command -v eog &> /dev/null; then
44+ eog "$cover_path" 2>/dev/null &
45+elif command -v display &> /dev/null; then
46+ display -geometry 500x500 "$cover_path" 2>/dev/null &
47+else
48+ notify-send "Install feh, eog, or imagemagick to view covers"
49+ exit 1
50+fi
.config/scripts/song_detail.shadded+72 -0
@@ -0,0 +1,72 @@
1+#!/bin/bash
2+# Get current playing song from playerctl
3+if command -v playerctl &> /dev/null; then
4+ # Check if any player is running
5+ if playerctl status &> /dev/null; then
6+ status=$(playerctl status 2>/dev/null)
7+ artist=$(playerctl metadata artist 2>/dev/null)
8+ title=$(playerctl metadata title 2>/dev/null)
9+ duration_us=$(playerctl metadata mpris:length 2>/dev/null)
10+
11+ # Define cache file for paused position
12+ POSITION_CACHE="/tmp/playerctl_position_cache"
13+
14+ # Set icon based on playback status
15+ if [[ "$status" == "Playing" ]]; then
16+ icon="▶"
17+ else
18+ icon="⏸"
19+ fi
20+
21+ # Convert duration from microseconds to MM:SS format
22+ if [[ -n "$duration_us" ]]; then
23+ duration_sec=$((duration_us / 1000000))
24+ minutes=$((duration_sec / 60))
25+ seconds=$((duration_sec % 60))
26+ duration=$(printf "%02d:%02d" $minutes $seconds)
27+ else
28+ duration=""
29+ fi
30+
31+ # Get current position with caching logic
32+ position=""
33+ position_us=$(playerctl position 2>/dev/null)
34+
35+ if [[ "$status" == "Playing" ]]; then
36+ # When playing, get live position and cache it
37+ if [[ -n "$position_us" ]]; then
38+ position_sec=$(printf "%.0f" "$position_us")
39+ pos_minutes=$((position_sec / 60))
40+ pos_seconds=$((position_sec % 60))
41+ position=$(printf "%02d:%02d" $pos_minutes $pos_seconds)
42+ # Cache the position for when paused
43+ echo "$position" > "$POSITION_CACHE"
44+ fi
45+ else
46+ # When paused, use cached position if available
47+ if [[ -f "$POSITION_CACHE" ]]; then
48+ position=$(cat "$POSITION_CACHE")
49+ fi
50+ fi
51+
52+ if [[ -n "$artist" && -n "$title" && -n "$duration" && -n "$position" ]]; then
53+ echo "$icon $artist - $title ($position / $duration)"
54+ elif [[ -n "$artist" && -n "$title" && -n "$duration" ]]; then
55+ echo "$icon $artist - $title ($duration)"
56+ elif [[ -n "$title" && -n "$duration" && -n "$position" ]]; then
57+ echo "$icon $title ($position / $duration)"
58+ elif [[ -n "$title" && -n "$duration" ]]; then
59+ echo "$icon $title ($duration)"
60+ elif [[ -n "$artist" && -n "$title" ]]; then
61+ echo "$icon $artist - $title"
62+ elif [[ -n "$title" ]]; then
63+ echo "$icon $title"
64+ else
65+ echo "$icon Music"
66+ fi
67+ else
68+ echo ""
69+ fi
70+else
71+ echo ""
72+fi
.config/scripts/toggle_eww.shadded+13 -0
@@ -0,0 +1,13 @@
1+#!/bin/bash
2+
3+# Toggle eww bar visibility
4+# Check if eww main window is open and toggle accordingly
5+
6+if eww active-windows | grep -q "main"; then
7+ eww close main
8+else
9+ eww open main
10+fi
11+```
12+
13+Now let me add the keybind to your Hyprland config:
.config/scripts/volume_info.shadded+38 -0
@@ -0,0 +1,38 @@
1+#!/bin/bash
2+# Get volume info with song details for tooltip
3+
4+# Get current volume
5+volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ 2>/dev/null | awk '{printf "%.0f", $2*100}' || echo "0")
6+
7+# Get mute status
8+mute_status=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ 2>/dev/null | grep -q MUTED && echo "true" || echo "false")
9+
10+# Get sink info
11+sink_name=$(pactl info 2>/dev/null | grep "Default Sink:" | awk -F': ' '{print $2}')
12+sink_desc=$(pactl list sinks 2>/dev/null | grep -A1 "Name: $sink_name" | grep "Description:" | awk -F': ' '{print $2}')
13+
14+# Format volume bar (10 segments)
15+bar_segments=$((volume / 10))
16+filled=$(printf '█%.0s' $(seq 1 $bar_segments))
17+empty=$(printf '░%.0s' $(seq 1 $((10 - bar_segments))))
18+volume_bar="${filled}${empty}"
19+
20+# Format mute status
21+if [[ "$mute_status" == "true" ]]; then
22+ mute_text="Muted"
23+else
24+ mute_text="Unmuted"
25+fi
26+
27+# Output tooltip
28+echo "Volume"
29+echo "======"
30+echo ""
31+echo " Status: ${mute_text}"
32+
33+if [[ -n "$sink_desc" ]]; then
34+ echo " Device: ${sink_desc}"
35+fi
36+
37+echo ""
38+echo " ${volume_bar} ${volume}%"
.config/waybar/configmodified+9 -12
@@ -3,7 +3,7 @@
3 "position": "top",3 "position": "top",
4 "height": 34,4 "height": 34,
5 "spacing": 16,5 "spacing": 16,
6- "modules-left": ["hyprland/workspaces", "mpris"],6+ "modules-left": ["hyprland/workspaces", "custom/music"],
7 "modules-center": ["clock"],7 "modules-center": ["clock"],
8 "modules-right": ["privacy", "cpu", "memory", "wireplumber", "tray", "battery"],8 "modules-right": ["privacy", "cpu", "memory", "wireplumber", "tray", "battery"],
9 9
@@ -77,18 +77,15 @@
77 ]77 ]
78 },78 },
79 79
80- "mpris": {80+ "custom/music": {
81+ "format": "{}",
82+ "exec": "bash ~/.config/scripts/song_detail.sh",
83+ "exec-if": "playerctl status &> /dev/null",
81 "interval": 1,84 "interval": 1,
82- "format": " {player_icon} {dynamic}",85+ "on-click": "playerctl play-pause",
83- "format-paused": "{status_icon} <i>{dynamic}</i>",86+ "on-click-right": "bash ~/.config/scripts/show_cover.sh",
84- "player-icons": {87+ "on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
85- "default": "▶",88+ "on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
86- "mpv": "🎵"
87- },
88- "status-icons": {
89- "paused": "⏸"
90- },
91- // "ignored-players": ["firefox"]
92 },89 },
93 90
94 "wireplumber": {91 "wireplumber": {
.config/waybar/style.cssmodified+11 -3
@@ -1,11 +1,10 @@
1 #waybar {1 #waybar {
2- color: #FFFFFF;2+ color: #ffffff;
3 background-color: #000000;3 background-color: #000000;
4 /* opacity: 1; */4 /* opacity: 1; */
5 border-radius: 1px;5 border-radius: 1px;
6 }6 }
7 7
8-
9 #idle_inhibitor.activated {8 #idle_inhibitor.activated {
10 background-color: #285577;9 background-color: #285577;
11 }10 }
@@ -34,5 +33,14 @@
34 #pulseaudio-slider highlight {33 #pulseaudio-slider highlight {
35 min-width: 10px;34 min-width: 10px;
36 border-radius: 5px;35 border-radius: 5px;
37- background-color: green;36+ background-color: white;
37+}
38+
39+#custom-music {
40+ color: #ffffff;
41+ margin: 0 10px;
42+ background-color: transparent;
43+ border: none;
44+ padding: 0;
45+ box-shadow: none;
38 }46 }