forge
Explore
Log in

Don't you dare go Hollow

Wallust-generated Qt configs, drop eww/bottom/zsh, fix usb_menu

Browse files at this commit

3fd03f966e61e3222d9d63198599febf30813877Ahmet Kaan GümüşParent: 41c669c
  • refactor
    • wallust-generated Qt configs, drop eww/bottom/zsh, fix usb_menu
Show full message
♻️ refactor: wallust-generated Qt configs, drop eww/bottom/zsh, fix usb_menu

- qt5ct/qt6ct configs become wallust templates; QT_QPA_PLATFORMTHEME=qt6ct
  in environment.d, niri and hyprland; fonts match GTK (Adwaita Sans/Mono 11)
- usb_menu.sh: define the missing replug_all, drop duplicate functions
- nvim: one mason spec per plugin under mason-org, keep the ^1.0.0 pin
- remove eww, bottom, zsh, flatpak overrides, woodpecker CI and its badge
.config/bottom/bottom.tomldeleted+0 -317
@@ -1,317 +0,0 @@
1-# This is a default config file for bottom. All of the settings are commented
2-# out by default; if you wish to change them uncomment and modify as you see
3-# fit.
4-
5-# This group of options represents a command-line option. Flags explicitly
6-# added when running (ie: btm -a) will override this config file if an option
7-# is also set here.
8-[flags]
9-# Whether to hide the average cpu entry.
10-#hide_avg_cpu = false
11-
12-# Whether to use a dedicated row for the average cpu entry
13-#average_cpu_row = false
14-
15-# Whether to use dot markers rather than braille.
16-#dot_marker = false
17-
18-# The update rate of the application.
19-rate = "250ms"
20-
21-# Whether to put the CPU legend to the left.
22-#cpu_left_legend = false
23-
24-# Whether to set CPU% on a process to be based on the total CPU or just current usage.
25-#current_usage = false
26-
27-# Whether to set CPU% on a process to be based on the total CPU or per-core CPU% (not divided by the number of cpus).
28-#unnormalized_cpu = false
29-
30-# Whether to group processes with the same name together by default. Doesn't do anything
31-# if tree is set to true or --tree is set.
32-group_processes = true
33-
34-# Whether to make process searching case sensitive by default.
35-#case_sensitive = false
36-
37-# Whether to make process searching look for matching the entire word by default.
38-#whole_word = false
39-
40-# Whether to make process searching use regex by default.
41-#regex = false
42-
43-# The temperature unit. One of the following, defaults to "c" for Celsius:
44-#temperature_type = "c"
45-##temperature_type = "k"
46-##temperature_type = "f"
47-##temperature_type = "kelvin"
48-##temperature_type = "fahrenheit"
49-##temperature_type = "celsius"
50-
51-# The default time interval (in milliseconds).
52-#default_time_value = "60s"
53-
54-# The time delta on each zoom in/out action (in milliseconds).
55-#time_delta = 15000
56-
57-# Hides the time scale.
58-#hide_time = false
59-
60-# Override layout default widget
61-#default_widget_type = "proc"
62-#default_widget_count = 1
63-
64-# Expand selected widget upon starting the app
65-#expanded = true
66-
67-# Use basic mode
68-#basic = false
69-
70-# Use the old network legend style
71-#use_old_network_legend = false
72-
73-# Remove space in tables
74-#hide_table_gap = false
75-
76-# Show the battery widgets
77-#battery = false
78-
79-# Disable mouse clicks
80-#disable_click = false
81-
82-# Disable keyboard shortcuts
83-#disable_keys = false
84-
85-# Show memory values in the processes widget as values by default
86-#process_memory_as_value = false
87-
88-# Show tree mode by default in the processes widget.
89-#tree = false
90-
91-# Shows an indicator in table widgets tracking where in the list you are.
92-#show_table_scroll_position = false
93-
94-# Show processes as their commands by default in the process widget.
95-#process_command = false
96-
97-# Displays the network widget with binary prefixes.
98-#network_use_binary_prefix = false
99-
100-# Displays the network widget using bytes.
101-#network_use_bytes = false
102-
103-# Displays the network widget with a log scale.
104-#network_use_log = false
105-
106-# Hides advanced options to stop a process on Unix-like systems.
107-#disable_advanced_kill = false
108-
109-# Prevents performing any actions that affect the system (e.g. stopping processes).
110-#read_only = false
111-
112-# Hides the kernel threads
113-#hide_k_threads = false
114-
115-# Hide GPU(s) information
116-#disable_gpu = false
117-
118-# Shows cache and buffer memory
119-enable_cache_memory = true
120-
121-# Subtract freeable ARC from memory usage
122-#free_arc = false
123-
124-# How much data is stored at once in terms of time.
125-#retention = "10m"
126-
127-# Where to place the legend for the memory widget. One of "none", "top-left", "top", "top-right", "left", "right", "bottom-left", "bottom", "bottom-right".
128-#memory_legend = "top-right"
129-
130-# Where to place the legend for the network widget. One of "none", "top-left", "top", "top-right", "left", "right", "bottom-left", "bottom", "bottom-right".
131-#network_legend = "top-right"
132-
133-
134-# Processes widget configuration
135-[processes]
136-# The columns shown by the process widget. The following columns are supported (the GPU columns are only available if the GPU feature is enabled when built):
137-# PID, Name, CPU%, Mem%, R/s, W/s, T.Read, T.Write, User, State, Time, GMem%, GPU%, Nice, Priority
138-columns = ["PID", "Name", "CPU%", "Mem%", "GMem%", "GPU%", "User", "State"]
139-
140-# Gather process child thread information
141-#get_threads = false
142-
143-
144-# CPU widget configuration
145-#[cpu]
146-# One of "all" (default), "average"/"avg"
147-#default = "average"
148-
149-
150-# Disk widget configuration
151-#[disk]
152-# The columns shown by the process widget. The following columns are supported:
153-# Disk, Mount, Used, Free, Total, Used%, Free%, R/s, W/s
154-#columns = ["Disk", "Mount", "Used", "Free", "Total", "Used%", "R/s", "W/s"]
155-
156-# By default, there are no disk name filters enabled. These can be turned on to filter out specific data entries if you
157-# don't want to see them. An example use case is provided below.
158-#[disk.name_filter]
159-# Whether to ignore any matches. Defaults to true.
160-#is_list_ignored = true
161-
162-# A list of filters to try and match.
163-#list = ["/dev/sda\\d+", "/dev/nvme0n1p2"]
164-
165-# Whether to use regex. Defaults to false.
166-#regex = true
167-
168-# Whether to be case-sensitive. Defaults to false.
169-#case_sensitive = false
170-
171-# Whether to be require matching the whole word. Defaults to false.
172-#whole_word = false
173-
174-# By default, there are no mount name filters enabled. An example use case is provided below.
175-#[disk.mount_filter]
176-# Whether to ignore any matches. Defaults to true.
177-#is_list_ignored = true
178-
179-# A list of filters to try and match.
180-#list = ["/mnt/.*", "/boot"]
181-
182-# Whether to use regex. Defaults to false.
183-#regex = true
184-
185-# Whether to be case-sensitive. Defaults to false.
186-#case_sensitive = false
187-
188-# Whether to be require matching the whole word. Defaults to false.
189-#whole_word = false
190-
191-
192-# Temperature widget configuration
193-#[temperature]
194-# By default, there are no temperature sensor filters enabled. An example use case is provided below.
195-#[temperature.sensor_filter]
196-# Whether to ignore any matches. Defaults to true.
197-#is_list_ignored = true
198-
199-# A list of filters to try and match.
200-#list = ["cpu", "wifi"]
201-
202-# Whether to use regex. Defaults to false.
203-#regex = false
204-
205-# Whether to be case-sensitive. Defaults to false.
206-#case_sensitive = false
207-
208-# Whether to be require matching the whole word. Defaults to false.
209-#whole_word = false
210-
211-
212-# Network widget configuration
213-#[network]
214-# By default, there are no network interface filters enabled. An example use case is provided below.
215-#[network.interface_filter]
216-# Whether to ignore any matches. Defaults to true.
217-#is_list_ignored = true
218-
219-# A list of filters to try and match.
220-#list = ["virbr0.*"]
221-
222-# Whether to use regex. Defaults to false.
223-#regex = true
224-
225-# Whether to be case-sensitive. Defaults to false.
226-#case_sensitive = false
227-
228-# Whether to be require matching the whole word. Defaults to false.
229-#whole_word = false
230-
231-
232-# These are all the components that support custom theming. Note that colour support
233-# will depend on terminal support.
234-[styles]
235-# Built-in themes. Valid values are:
236-# - "default"
237-# - "default-light"
238-# - "gruvbox"
239-# - "gruvbox-light"
240-# - "nord"
241-# - "nord-light".
242-#
243-# This will have the lowest precedence if a custom colour palette is set,
244-# or overridden if the command-line flag for a built-in theme is set.
245-theme = "gruvbox"
246-
247-#[styles.cpu]
248-#all_entry_color = "green"
249-#avg_entry_color = "red"
250-#cpu_core_colors = ["light magenta", "light yellow", "light cyan", "light green", "light blue", "cyan", "green", "blue"]
251-
252-#[styles.memory]
253-#ram_color = "light magenta"
254-#cache_color = "light red"
255-#swap_color = "light yellow"
256-#arc_color = "light cyan"
257-#gpu_colors = ["light blue", "light red", "cyan", "green", "blue", "red"]
258-
259-#[styles.network]
260-#rx_color = "light magenta"
261-#tx_color = "light yellow"
262-#rx_total_color = "light cyan"
263-#tx_total_color = "light green"
264-
265-#[styles.battery]
266-#high_battery_color = "green"
267-#medium_battery_color = "yellow"
268-#low_battery_color = "red"
269-
270-#[styles.tables]
271-#headers = {color = "light blue", bold = true}
272-
273-#[styles.graphs]
274-#graph_color = "gray"
275-#legend_text = {color = "gray"}
276-
277-#[styles.widgets]
278-#border_color = "gray"
279-#selected_border_color = "light blue"
280-#widget_title = {color = "gray"}
281-#text = {color = "gray"}
282-#selected_text = {color = "black", bg_color = "light blue"}
283-#disabled_text = {color = "dark gray"}
284-
285-# Only on Linux
286-#thread_text = {color = "green"}
287-
288-# Layout - layouts follow a pattern like this:
289-# [[row]] represents a row in the application.
290-# [[row.child]] represents either a widget or a column.
291-# [[row.child.child]] represents a widget.
292-#
293-# All widgets must have the type value set to one of ["cpu", "mem", "proc", "net", "temp", "disk", "empty"].
294-# All layout components have a ratio value - if this is not set, then it defaults to 1.
295-# The default widget layout:
296-#[[row]]
297-# ratio=30
298-# [[row.child]]
299-# type="cpu"
300-#[[row]]
301-# ratio=40
302-# [[row.child]]
303-# ratio=4
304-# type="mem"
305-# [[row.child]]
306-# ratio=3
307-# [[row.child.child]]
308-# type="temp"
309-# [[row.child.child]]
310-# type="disk"
311-#[[row]]
312-# ratio=30
313-# [[row.child]]
314-# type="net"
315-# [[row.child]]
316-# type="proc"
317-# default=true
.config/environment.d/10-qt-theme.confmodified+6 -2
@@ -2,5 +2,9 @@
2 # NOT children of the compositor (XDG-autostart units, D-Bus activation).2 # NOT children of the compositor (XDG-autostart units, D-Bus activation).
3 # The compositor env blocks (niri config.kdl / hyprland.conf) only cover3 # The compositor env blocks (niri config.kdl / hyprland.conf) only cover
4 # processes spawned by the compositor itself, which is why kdeconnectd came up4 # processes spawned by the compositor itself, which is why kdeconnectd came up
5-# with the default Qt palette instead of the wallust-tinted GTK3 one.5+# with the default Qt palette instead of the wallust one.
6-QT_QPA_PLATFORMTHEME=gtk36+#
7+# "qt6ct" is a key of both platform theme plugins (Fedora's qt5ct plugin lists
8+# qt5ct and qt6ct), so Qt5 and Qt6 apps both load their wallust palette from
9+# ~/.config/qt{5,6}ct/, which wallust generates.
10+QT_QPA_PLATFORMTHEME=qt6ct
.config/eww/eww.cssdeleted+0 -194
@@ -1,194 +0,0 @@
1-* {
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;
23-}
24-
25-.bar {
26- background-color: #000000;
27- color: #ffffff;
28- padding: 4px 12px;
29- border-radius: 0px;
30- border: none;
31- outline: none;
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.yuckdeleted+0 -266
@@ -1,266 +0,0 @@
1-;; Eww configuration - Bar matching waybar setup
2-;; Using proper tooltip widget for tooltip display
3-
4-;; ============================================================================
5-;; Variables and Polls
6-;; ============================================================================
7-
8-(defpoll time :interval "1s"
9- `date '+%H:%M:%S'`)
10-
11-(defpoll date :interval "1s"
12- `date '+%A, %B %d, %Y'`)
13-
14-(defvar time-format-full true)
15-
16-(defvar byte_transform 1073741824)
17-
18-;; Music/Player info - single-source file maintained by song_detail_writer.sh
19-(defpoll music :interval "1s"
20- `cat /tmp/song_detail_last 2>/dev/null`)
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/eww/privacy_status.sh status`)
28-
29-(defpoll privacy-details :interval "1s"
30- `bash ~/.config/scripts/eww/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/eww/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/eww/memory_status.sh`)
48-
49-;; Audio volume
50-(defpoll volume :interval "500ms"
51- `wpctl get-volume @DEFAULT_AUDIO_SINK@ 2>/dev/null | awk '{printf "%.0f", $2*100}' || echo "0"`)
52-
53-(defpoll volume-muted :interval "500ms"
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 "500ms"
58- `bash ~/.config/scripts/eww/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/eww/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/eww/network_speed.sh`)
67-
68-;; Network status - shows network activity for tooltip
69-(defpoll network-status :interval "1s"
70- `bash ~/.config/scripts/eww/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/eww/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 "bash ~/.config/scripts/shared/playerctl_active.sh play-pause"
100- :onrightclick "bash ~/.config/scripts/shared/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-;; ============================================================================
208-
209-(defwidget bar []
210- (box :orientation "h"
211- :class "bar"
212- :spacing 16
213- :space-evenly false
214- :valign "center"
215- :height 30
216-
217- ;; Left: Workspaces and Music
218- (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"
232- :space-evenly false
233- :spacing 12
234- ;; Privacy indicators
235- (privacy-widget)
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-;; ============================================================================
253-
254-(defwindow main
255- :monitor 0
256- :geometry (geometry :x "0px"
257- :y "0px"
258- :width "99.9%"
259- :height "34px"
260- :anchor "top center")
261- :exclusive true
262- :stacking "fg"
263- :reserve (struts :distance "40px" :side "top")
264- :windowtype "dock"
265- :wm-ignore true
266- (bar))
.config/hypr/hyprland.confmodified+1 -1
@@ -17,7 +17,7 @@ exec-once = sleep 3 && wl-paste --type image --watch cliphist store
17 exec-once = sleep 4 && rfkill unblock bluetooth && bluetoothctl power on17 exec-once = sleep 4 && rfkill unblock bluetooth && bluetoothctl power on
18 exec-once = sudo /usr/local/bin/asus-receiver-rebind18 exec-once = sudo /usr/local/bin/asus-receiver-rebind
19 19
20-env = QT_QPA_PLATFORMTHEME,gtk320+env = QT_QPA_PLATFORMTHEME,qt6ct
21 env = XCURSOR_SIZE,2421 env = XCURSOR_SIZE,24
22 env = HYPRCURSOR_SIZE,2422 env = HYPRCURSOR_SIZE,24
23 env = PATH, $HOME/.cargo/bin/:$HOME/.local/bin/:$PATH23 env = PATH, $HOME/.cargo/bin/:$HOME/.local/bin/:$PATH
.config/niri/config.kdlmodified+1 -1
@@ -87,7 +87,7 @@ layout {
87 }87 }
88 88
89 environment {89 environment {
90- QT_QPA_PLATFORMTHEME "gtk3"90+ QT_QPA_PLATFORMTHEME "qt6ct"
91 XCURSOR_SIZE "24"91 XCURSOR_SIZE "24"
92 }92 }
93 93
.config/nvim/lua/plugins/mason-lspconfig.luamodified+3 -2
@@ -1,7 +1,8 @@
1 return {1 return {
2- "williamboman/mason-lspconfig.nvim",2+ "mason-org/mason-lspconfig.nvim",
3+ version = "^1.0.0",
4+ dependencies = { "mason-org/mason.nvim" },
3 config = function()5 config = function()
4- require("mason").setup()
5 require("mason-lspconfig").setup({6 require("mason-lspconfig").setup({
6 ensure_installed = {7 ensure_installed = {
7 "lua_ls",8 "lua_ls",
.config/nvim/lua/plugins/mason-workaround.luadeleted+0 -4
@@ -1,4 +0,0 @@
1-return {
2- { "mason-org/mason.nvim", version = "^1.0.0" },
3- { "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
4-}
.config/nvim/lua/plugins/mason.luamodified+2 -1
@@ -1,5 +1,6 @@
1 return {1 return {
2- "williamboman/mason.nvim",2+ "mason-org/mason.nvim",
3+ version = "^1.0.0",
3 config = function()4 config = function()
4 require("mason").setup()5 require("mason").setup()
5 end,6 end,
.config/scripts/eww/battery_info.shdeleted+0 -87
@@ -1,87 +0,0 @@
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/eww/cpu_status.shdeleted+0 -210
@@ -1,210 +0,0 @@
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/eww/datetime_info.shdeleted+0 -33
@@ -1,33 +0,0 @@
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/eww/memory_status.shdeleted+0 -112
@@ -1,112 +0,0 @@
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/eww/network_speed.shdeleted+0 -59
@@ -1,59 +0,0 @@
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/eww/network_status.shdeleted+0 -76
@@ -1,76 +0,0 @@
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/eww/privacy_status.shdeleted+0 -143
@@ -1,143 +0,0 @@
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/eww/volume_info.shdeleted+0 -38
@@ -1,38 +0,0 @@
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/scripts/shared/song_detail_writer.shmodified+1 -1
@@ -1,6 +1,6 @@
1 #!/bin/bash1 #!/bin/bash
2 # Single-source writer: poll playerctl, write the formatted song-detail line2 # Single-source writer: poll playerctl, write the formatted song-detail line
3-# to /tmp/song_detail_last so every consumer (waybar, eww, hyprlock) reads it3+# to /tmp/song_detail_last so every consumer (waybar, hyprlock) reads it
4 # without two scripts racing on shared /tmp state.4 # without two scripts racing on shared /tmp state.
5 #5 #
6 # The file holds ONLY the current line: no history, no persistence. Every6 # The file holds ONLY the current line: no history, no persistence. Every
.config/scripts/system/toggle_eww.shdeleted+0 -13
@@ -1,13 +0,0 @@
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/system/usb_menu.shmodified+1 -8
@@ -124,14 +124,7 @@ replug() {
124 set_auth "$path" 1 && notify "Replugged" "$(dev_name "$path") [$path]"124 set_auth "$path" 1 && notify "Replugged" "$(dev_name "$path") [$path]"
125 }125 }
126 126
127-rereplug_keyboard() {127+replug_all() {
128- local p
129- p=$(keyboard_path)
130- [[ -n $p ]] || { notify "No keyboard found" "set KEYBOARD_USB in usb_devices.sh"; return 1; }
131- replug "$p"
132-}
133-
134-plug_all() {
135 local p128 local p
136 for p in $(usb_paths); do129 for p in $(usb_paths); do
137 [[ $(dev_authorized "$p") == 1 ]] || continue130 [[ $(dev_authorized "$p") == 1 ]] || continue
.config/qt5ct/qt5ct.conf → .config/wallust/templates/qt5ct.confrenamed+2 -5
@@ -5,8 +5,8 @@ standard_dialogs=gtk3
5 style=Fusion5 style=Fusion
6 6
7 [Fonts]7 [Fonts]
8-fixed="Noto Sans Arabic,12,-1,5,50,0,0,0,0,0"8+fixed="Adwaita Mono,11,-1,5,50,0,0,0,0,0"
9-general="Noto Sans Arabic,12,-1,5,50,0,0,0,0,0"9+general="Adwaita Sans,11,-1,5,50,0,0,0,0,0"
10 10
11 [Interface]11 [Interface]
12 activate_item_on_single_click=112 activate_item_on_single_click=1
@@ -23,9 +23,6 @@ toolbutton_style=4
23 underline_shortcut=123 underline_shortcut=1
24 wheel_scroll_lines=324 wheel_scroll_lines=3
25 25
26-[SettingsWindow]
27-geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\t\xe7\0\0\x5\x65\0\0\0\0\0\0\0\0\0\0\t\xff\0\0\x5\x9f\0\0\0\0\x2\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\t\xe7\0\0\x5\x65)
28-
29 [Troubleshooting]26 [Troubleshooting]
30 force_raster_widgets=127 force_raster_widgets=1
31 ignored_applications=@Invalid()28 ignored_applications=@Invalid()
.config/qt6ct/qt6ct.conf → .config/wallust/templates/qt6ct.confrenamed+2 -5
@@ -5,8 +5,8 @@ standard_dialogs=default
5 style=Fusion5 style=Fusion
6 6
7 [Fonts]7 [Fonts]
8-fixed="Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"8+fixed="Adwaita Mono,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
9-general="Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"9+general="Adwaita Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
10 10
11 [Interface]11 [Interface]
12 activate_item_on_single_click=112 activate_item_on_single_click=1
@@ -23,9 +23,6 @@ toolbutton_style=4
23 underline_shortcut=123 underline_shortcut=1
24 wheel_scroll_lines=324 wheel_scroll_lines=3
25 25
26-[SettingsWindow]
27-geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\t\xe7\0\0\x5\x65\0\0\0\0\0\0\0\0\0\0\t\xe7\0\0\x5\x65\0\0\0\0\x2\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\t\xe7\0\0\x5\x65)
28-
29 [Troubleshooting]26 [Troubleshooting]
30 force_raster_widgets=127 force_raster_widgets=1
31 ignored_applications=@Invalid()28 ignored_applications=@Invalid()
.config/wallust/wallust.tomlmodified+2 -0
@@ -56,6 +56,8 @@ gtk2 = { template = 'gtk2.gtkrc', target = '~/.gtkrc-2.0.mine' }
56 kdeglobals = { template = 'kdeglobals', target = '~/.config/kdeglobals' }56 kdeglobals = { template = 'kdeglobals', target = '~/.config/kdeglobals' }
57 qt5ct = { template = 'qt5ct-wallust.conf', target = '~/.config/qt5ct/colors/wallust.conf' }57 qt5ct = { template = 'qt5ct-wallust.conf', target = '~/.config/qt5ct/colors/wallust.conf' }
58 qt6ct = { template = 'qt6ct-wallust.conf', target = '~/.config/qt6ct/colors/wallust.conf' }58 qt6ct = { template = 'qt6ct-wallust.conf', target = '~/.config/qt6ct/colors/wallust.conf' }
59+qt5ct_conf = { template = 'qt5ct.conf', target = '~/.config/qt5ct/qt5ct.conf' }
60+qt6ct_conf = { template = 'qt6ct.conf', target = '~/.config/qt6ct/qt6ct.conf' }
59 niri = { template = 'niri-colors.sh', target = '~/.cache/wallust/niri-colors.sh' }61 niri = { template = 'niri-colors.sh', target = '~/.cache/wallust/niri-colors.sh' }
60 [hooks]62 [hooks]
61 # Resolve mix() and compute surface colors for GTK and QT63 # Resolve mix() and compute surface colors for GTK and QT
.gitignoremodified+2 -2
@@ -1,8 +1,8 @@
1 .config/nvim/lazy-lock.json1 .config/nvim/lazy-lock.json
2 2
3 # Wallust generated files3 # Wallust generated files
4-.config/qt5ct/colors/4+.config/qt5ct/
5-.config/qt6ct/colors/5+.config/qt6ct/
6 .config/gtk-3.0/gtk.css6 .config/gtk-3.0/gtk.css
7 .config/gtk-4.0/gtk.css7 .config/gtk-4.0/gtk.css
8 .config/gtk-4.0/gtk-dark.css8 .config/gtk-4.0/gtk-dark.css
README.mdmodified+0 -1
@@ -1,2 +1 @@
1 # dotfiles1 # dotfiles
2-