diff --git a/.config/background_videos/Kanchanaburi.mp4 b/.config/background_videos/Kanchanaburi.mp4 index bd7949e..f053359 100755 Binary files a/.config/background_videos/Kanchanaburi.mp4 and b/.config/background_videos/Kanchanaburi.mp4 differ diff --git a/.config/backgrounds/Study-table.png b/.config/backgrounds/Study-table.png new file mode 100644 index 0000000..a953bc0 --- /dev/null +++ b/.config/backgrounds/Study-table.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ed2fe80346028ee25b16fc13fe0274ede49928c9931010ed0902cab30fdca20 +size 15219546 diff --git a/.config/hyprpanel/config.json b/.config/hyprpanel/config.json index ddadc77..65b22c0 100644 --- a/.config/hyprpanel/config.json +++ b/.config/hyprpanel/config.json @@ -15,7 +15,8 @@ "bar.layouts": { "0": { "left": [ - "media" + "media", + "custom/wifi" ], "middle": [ "workspaces" @@ -31,7 +32,8 @@ }, "1": { "left": [ - "media" + "media", + "custom/wifi" ], "middle": [ "workspaces" diff --git a/.config/hyprpanel/modules.json b/.config/hyprpanel/modules.json index 7a73a41..1a82a3e 100644 --- a/.config/hyprpanel/modules.json +++ b/.config/hyprpanel/modules.json @@ -1,2 +1,20 @@ { + "custom/wifi": { + "icon": "󰖩", + "label": "{status}", + "tooltip": "{status}", + "truncationSize": -1, + "execute": "/home/nathan/dotfiles/.config/hyprpanel/wifi.sh", + "executeOnAction": "", + "interval": 1000, + "hideOnEmpty": true, + "scrollThreshold": 1, + "actions": { + "onLeftClick": "", + "onRightClick": "", + "onMiddleClick": "", + "onScrollUp": "", + "onScrollDown": "" + } + } } \ No newline at end of file diff --git a/.config/hyprpanel/modules.scss b/.config/hyprpanel/modules.scss index e69de29..dc69d7c 100644 --- a/.config/hyprpanel/modules.scss +++ b/.config/hyprpanel/modules.scss @@ -0,0 +1,18 @@ +/* ################################## + * # Custom Wi-Fi Module Styling # + * ################################## */ +@include styleModule( + // class name + 'cmodule-wifi', + // styling properties + ( + 'text-color': #FFFFFF, + 'icon-color': #FFFFFF, + 'icon-background': #090909, + 'label-background': #090909, + 'inner-spacing': 0.5em, + 'border-enabled': false, + 'border-color': #FFFFFF, + 'icon-size': 1.2em + ) +); \ No newline at end of file diff --git a/.config/hyprpanel/wifi.sh b/.config/hyprpanel/wifi.sh new file mode 100755 index 0000000..f2d3efd --- /dev/null +++ b/.config/hyprpanel/wifi.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Get the current Wi-Fi network name +wifi_name=$(iwgetid -r) +# Output the Wi-Fi network name, or "Disconnected" if not connected +if [ -z "$wifi_name" ]; then + echo '{"status":"Disconnected"}' +else + echo "{\"status\":\"$wifi_name\"}" +fi \ No newline at end of file