forge
Explore
Log in

Don't you dare go Hollow

♻️ rearranging files

Browse files at this commit

9da73fe286d6248ab3006eb61100c0519d8f3168Ahmet Kaan GümüşParent: 6d21e09
  • refactor
    • ♻️ rearranging files
Show full message
refactor: ♻️ rearranging files
.config/eww/eww.yuckmodified+11 -11
@@ -17,24 +17,24 @@
1717
1818 ;; Music/Player info - using song_detail.sh script
1919 (defpoll music :interval "1s"
20- `bash ~/.config/scripts/song_detail.sh`)
20+ `bash ~/.config/scripts/shared/song_detail.sh`)
2121
2222 (defpoll music-status :interval "1s"
2323 `playerctl status 2>/dev/null || echo "Stopped"`)
2424
2525 ;; Privacy status - monitors screen sharing, audio input/output
2626 (defpoll privacy :interval "1s"
27- `bash ~/.config/scripts/privacy_status.sh status`)
27+ `bash ~/.config/scripts/eww/privacy_status.sh status`)
2828
2929 (defpoll privacy-details :interval "1s"
30- `bash ~/.config/scripts/privacy_status.sh details`)
30+ `bash ~/.config/scripts/eww/privacy_status.sh details`)
3131
3232 ;; CPU usage
3333 (defpoll cpu-usage :interval "1s"
3434 `top -bn1 2>/dev/null | grep "Cpu(s)" | awk '{print int($2)}' || echo "0"`)
3535
3636 (defpoll cpu-status :interval "1s"
37- `bash ~/.config/scripts/cpu_status.sh`)
37+ `bash ~/.config/scripts/eww/cpu_status.sh`)
3838
3939 ;; Memory usage
4040 (defpoll mem-usage :interval "1s"
@@ -44,7 +44,7 @@
4444 `free -b 2>/dev/null | awk 'NR==2 {printf "%.1f", $2/1073741824}' || echo "0"`)
4545
4646 (defpoll memory-status :interval "1s"
47- `bash ~/.config/scripts/memory_status.sh`)
47+ `bash ~/.config/scripts/eww/memory_status.sh`)
4848
4949 ;; Audio volume
5050 (defpoll volume :interval "500ms"
@@ -55,19 +55,19 @@
5555
5656 ;; Volume info - includes song details for tooltip
5757 (defpoll volume-info :interval "500ms"
58- `bash ~/.config/scripts/volume_info.sh`)
58+ `bash ~/.config/scripts/eww/volume_info.sh`)
5959
6060 ;; DateTime info - shows date/time and system uptime for tooltip
6161 (defpoll datetime-info :interval "1s"
62- `bash ~/.config/scripts/datetime_info.sh`)
62+ `bash ~/.config/scripts/eww/datetime_info.sh`)
6363
6464 ;; Network speed - shows current download/upload speeds for bar display
6565 (defpoll network-speed :interval "1s"
66- `bash ~/.config/scripts/network_speed.sh`)
66+ `bash ~/.config/scripts/eww/network_speed.sh`)
6767
6868 ;; Network status - shows network activity for tooltip
6969 (defpoll network-status :interval "1s"
70- `bash ~/.config/scripts/network_status.sh`)
70+ `bash ~/.config/scripts/eww/network_status.sh`)
7171
7272 ;; Battery
7373 (defpoll battery-capacity :interval "5s"
@@ -78,7 +78,7 @@
7878
7979 ;; Battery info - detailed tooltip
8080 (defpoll battery-info :interval "5s"
81- `bash ~/.config/scripts/battery_info.sh`)
81+ `bash ~/.config/scripts/eww/battery_info.sh`)
8282
8383 ;; Active workspace
8484 (defpoll active-ws :interval "0ms"
@@ -97,7 +97,7 @@
9797 ;; Music widget - click to play/pause, right-click to show cover
9898 (defwidget music-widget []
9999 (eventbox :onclick "playerctl play-pause"
100- :onrightclick "bash ~/.config/scripts/show_cover.sh"
100+ :onrightclick "bash ~/.config/scripts/shared/show_cover.sh"
101101 :class "music-box"
102102 (label :text music)))
103103
.config/hypr/hyprland.confmodified+2 -2
@@ -43,7 +43,7 @@ $menu_unsafe = mullvad-exclude rofi -show drun -show-icons
4343 $clipboard = cliphist list | rofi -dmenu -show-icons | cliphist decode | wl-copy
4444 $screenshot = grim "$HOME/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%S').png" | grim - | wl-copy
4545 $screenshot_with_area_selector = grim -g "$(slurp)" - | wl-copy
46-$power_menu = bash ~/.config/scripts/power_menu.sh
46+$power_menu = bash ~/.config/scripts/system/power_menu.sh
4747 $browser = flatpak run io.github.ungoogled_software.ungoogled_chromium --enable-features=MiddleClickAutoscroll
4848 $browser_unsafe = mullvad-exclude flatpak run com.brave.Browser --incognito --enable-features=MiddleClickAutoscroll
4949 $signal = flatpak run org.signal.Signal
@@ -104,7 +104,7 @@ bind = Alt, F4, killactive,
104104 bind = Alt, 4, killactive,
105105 bind = $mainMod $my_trigger, F4, exit,
106106 bind = $mainMod, H, exec, pkill -SIGUSR1 waybar
107-# bind = $mainMod, H, exec, ~/.config/scripts/toggle_eww.sh
107+# bind = $mainMod, H, exec, ~/.config/scripts/system/toggle_eww.sh
108108 binds {
109109 allow_workspace_cycles = true
110110 }
.config/hypr/hyprlock.confmodified+1 -1
@@ -56,7 +56,7 @@ input-field {
5656 # Music info label - displays current playing song with duration from song_detail.sh script
5757 label {
5858 monitor =
59- text = cmd[update:1000] echo "$(~/.config/scripts/song_detail.sh)"
59+ text = cmd[update:1000] echo "$(~/.config/scripts/shared/song_detail.sh)"
6060 color = rgba(180, 200, 215, 0.75)
6161 font_size = 18
6262 font_family = JetBrains Mono Nerd, SF Pro Display Bold
.config/scripts/battery_info.sh → .config/scripts/eww/battery_info.shrenamed+0 -0
.config/scripts/cpu_status.sh → .config/scripts/eww/cpu_status.shrenamed+0 -0
.config/scripts/datetime_info.sh → .config/scripts/eww/datetime_info.shrenamed+0 -0
.config/scripts/memory_status.sh → .config/scripts/eww/memory_status.shrenamed+0 -0
.config/scripts/network_speed.sh → .config/scripts/eww/network_speed.shrenamed+0 -0
.config/scripts/network_status.sh → .config/scripts/eww/network_status.shrenamed+0 -0
.config/scripts/privacy_status.sh → .config/scripts/eww/privacy_status.shrenamed+0 -0
.config/scripts/volume_info.sh → .config/scripts/eww/volume_info.shrenamed+0 -0
.config/scripts/show_cover.sh → .config/scripts/shared/show_cover.shrenamed+0 -0
.config/scripts/song_detail.sh → .config/scripts/shared/song_detail.shrenamed+0 -0
.config/scripts/power_menu.sh → .config/scripts/system/power_menu.shrenamed+0 -0
.config/scripts/toggle_eww.sh → .config/scripts/system/toggle_eww.shrenamed+0 -0
.config/scripts/waybar/camera_monitor.shadded+30 -0
@@ -0,0 +1,30 @@
1+#!/bin/bash
2+
3+# Camera privacy monitor for waybar
4+# Detects camera device access and shows app info in tooltip
5+
6+detect_camera() {
7+ if command -v lsof &> /dev/null; then
8+ if lsof /dev/video* 2>/dev/null | grep -qv "COMMAND"; then
9+ return 0
10+ fi
11+ fi
12+ return 1
13+}
14+
15+get_camera_apps() {
16+ if command -v lsof &> /dev/null; then
17+ lsof /dev/video* 2>/dev/null | awk 'NR>1 {print $1}' | sort -u | paste -sd ', ' -
18+ fi
19+}
20+
21+if detect_camera; then
22+ apps=$(get_camera_apps)
23+ if [ -n "$apps" ]; then
24+ # Output JSON with icon and tooltip containing app info
25+ tooltip_escaped=$(echo "$apps" | sed 's/"/\\"/g')
26+ echo "{\"text\": \"◉\", \"tooltip\": \"$tooltip_escaped\"}"
27+ else
28+ echo "{\"text\": \"◉\", \"tooltip\": \"Camera in use\"}"
29+ fi
30+fi
.config/waybar/configmodified+12 -4
@@ -79,15 +79,23 @@
7979
8080 "custom/music": {
8181 "format": "{}",
82- "exec": "bash ~/.config/scripts/song_detail.sh",
82+ "exec": "bash ~/.config/scripts/shared/song_detail.sh",
8383 "exec-if": "playerctl status &> /dev/null",
8484 "interval": 1,
8585 "on-click": "playerctl play-pause",
86- "on-click-right": "bash ~/.config/scripts/show_cover.sh",
86+ "on-click-right": "bash ~/.config/scripts/shared/show_cover.sh",
8787 "on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
8888 "on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
8989 },
9090
91+ "custom/camera": {
92+ "format": "{text}",
93+ "exec": "bash ~/.config/scripts/waybar/camera_monitor.sh bar",
94+ "interval": 1,
95+ "return-type": "json",
96+ "tooltip": true
97+ },
98+
9199 "wireplumber": {
92100 "format": "{icon} {volume}% ",
93101 "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
@@ -115,8 +123,7 @@
115123 "format": "{ifname}",
116124 "format-wifi": "{essid} ({signalStrength}%) ",
117125 "format-ethernet": "{ifname} ",
118- "format-disconnected": "", //An empty format will hide the module.
119- "format-disconnected": "",
126+ "format-disconnected": "",
120127 "tooltip-format": "{ifname}",
121128 "tooltip-format-wifi": "{essid} ({signalStrength}%) ",
122129 "tooltip-format-ethernet": "{ifname} ",
@@ -137,6 +144,7 @@
137144 "format": "{:%H:%M:%S | %A, %B %d, %Y }",
138145 "format-alt": "{:%H:%M:%S}",
139146 "tooltip-format": "<tt><small>{calendar}</small></tt>",
147+ "on-click-right": "gnome-calendar",
140148 "calendar": {
141149 "format": {
142150 "months": "<span color='#ffead3'><b>{}</b></span>",
.config/waybar/style.cssmodified+10 -0
@@ -44,3 +44,13 @@
4444 padding: 0;
4545 box-shadow: none;
4646 }
47+
48+#custom-camera {
49+ color: #ffffff;
50+ margin: 0;
51+ background-color: transparent;
52+ border: none;
53+ padding: 0;
54+ box-shadow: none;
55+ font-size: 16px;
56+}