diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-06-05 18:32:12 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-06-05 18:32:12 +0800 |
| commit | c991d35a4d3529d7b4f0a400acc948b5e406e3e9 (patch) | |
| tree | 7095756ac33fa203ed9c4712d10ab2d717cbd422 /dot-config | |
| parent | 5c56e6572830a7b668322de8dd7a9a6a845b334a (diff) | |
bump: dot-config
Diffstat (limited to 'dot-config')
| -rwxr-xr-x | dot-config/Thunar/accels.scm | 2 | ||||
| -rw-r--r-- | dot-config/dconf/user | bin | 75699 -> 76668 bytes | |||
| -rw-r--r-- | dot-config/hypr/autostart.conf | 9 | ||||
| -rw-r--r-- | dot-config/hypr/binds.conf | 22 | ||||
| -rw-r--r-- | dot-config/hypr/hyprland.conf | 9 | ||||
| -rw-r--r-- | dot-config/hypr/hyprlandd.conf | 12 | ||||
| -rw-r--r-- | dot-config/hypr/rules.conf | 20 | ||||
| -rw-r--r-- | dot-config/kitty/kitty.conf | 4 | ||||
| -rw-r--r-- | dot-config/waybar/modules.jsonc | 689 |
9 files changed, 407 insertions, 360 deletions
diff --git a/dot-config/Thunar/accels.scm b/dot-config/Thunar/accels.scm index 4a5fca89..97624bc6 100755 --- a/dot-config/Thunar/accels.scm +++ b/dot-config/Thunar/accels.scm @@ -2,7 +2,6 @@ ; this file is an automated accelerator map dump ; ; (gtk_accel_path "<Actions>/ThunarBookmarks/25078f7c4b1b447498db786655330d9f" "") -; (gtk_accel_path "<Actions>/ThunarDetailsView/expandable-folders" "") ; (gtk_accel_path "<Actions>/ThunarStandardView/sort-by-type" "") ; (gtk_accel_path "<Actions>/ThunarStatusBar/toggle-last-modified" "") ; (gtk_accel_path "<Actions>/Thunarwindow/menu" "") @@ -95,7 +94,6 @@ ; (gtk_accel_path "<Actions>/ThunarWindow/view-as-icons" "<Primary>1") ; (gtk_accel_path "<Actions>/ThunarActionManager/delete-2" "<Shift>Delete") ; (gtk_accel_path "<Actions>/ThunarWindow/zoom-in" "<Primary>plus") -; (gtk_accel_path "<Actions>/ThunarStandardView/configure-columns" "") ; (gtk_accel_path "<Actions>/ThunarStandardView/rename" "F2") ; (gtk_accel_path "<Actions>/ThunarBookmarks/269652eb42aca936b9f6c0740d553c7d" "") ; (gtk_accel_path "<Actions>/ThunarWindow/open-location" "<Primary>l") diff --git a/dot-config/dconf/user b/dot-config/dconf/user Binary files differindex 3c01ad5e..e3fb945f 100644 --- a/dot-config/dconf/user +++ b/dot-config/dconf/user diff --git a/dot-config/hypr/autostart.conf b/dot-config/hypr/autostart.conf index e218682c..678c01a2 100644 --- a/dot-config/hypr/autostart.conf +++ b/dot-config/hypr/autostart.conf @@ -45,6 +45,7 @@ exec-once = fcitx5 -d # exec-once = wl-paste --watch cliphist store exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store +exec-once = clipsync # exec-once = wl-clip-persist --clipboard regular # Notification agent @@ -73,12 +74,12 @@ exec-once = $HOME/scripts/hyprsunset.sh exec-once = udiskie exec-once = bitwarden-desktop # exec-once = kdeconnectd -exec-once = killall input-leap input-leaps; input-leap # works with https://github.com/3l0w/Hyprland/tree/feat/input-capture-impl +# exec-once = killall input-leap input-leaps; input-leap # works with https://github.com/3l0w/Hyprland/tree/feat/input-capture-impl exec-once = nextcloud --background exec-once = [noinitialfocus; workspace, special] localsend --hidden exec-once = [workspace 6 silent; noinitialfocus] vesktop-bin --start-minimized exec-once = beeper $waylandarg --no-sandbox --hidden --default-frame --enable-wayland-ime -# exec-once = echo 'ddcci 0x37' | sudo tee /sys/bus/i2c/devices/i2c-13/new_device +exec-once = bash -c "echo 'ddcci 0x37' | sudo tee /sys/bus/i2c/devices/i2c-13/new_device" # Notify if stuff is already started exec-once = warp-cli status | grep Connect && notify-send 'warp-vpn' 'connected' @@ -105,5 +106,5 @@ exec-once = while true; do thunar --daemon; done # exec-once = [workspace, special] ghostty # backlight -exec-once = wf-recorder --muxer=v4l2 --codec=rawvideo --file=/dev/video9 -x yuv420p -exec-once = sleep 3 && hyperhdr +# exec-once = wf-recorder --muxer=v4l2 --codec=rawvideo --file=/dev/video9 -x yuv420p +# exec-once = sleep 3 && hyperhdr diff --git a/dot-config/hypr/binds.conf b/dot-config/hypr/binds.conf index 6e24ebb2..9398a745 100644 --- a/dot-config/hypr/binds.conf +++ b/dot-config/hypr/binds.conf @@ -80,10 +80,10 @@ bind = $mod, Pause, execr, hyprfreeze -s -a bind = ,Print, execr, $HOME/scripts/hyprshot --now # Brightness -# bind = ,XF86MonBrightnessUp, execr, $HOME/scripts/sysutil.sh brightness --inc -# bind = ,XF86MonBrightnessDown, execr, $HOME/scripts/sysutil.sh brightness --dec -binde = ,XF86MonBrightnessUp, execr, hyprctl hyprsunset gamma +5 -binde = ,XF86MonBrightnessDown, execr, hyprctl hyprsunset gamma -5 +bind = ,XF86MonBrightnessUp, execr, $HOME/scripts/sysutil.sh brightness --inc +bind = ,XF86MonBrightnessDown, execr, $HOME/scripts/sysutil.sh brightness --dec +# binde = ,XF86MonBrightnessUp, execr, hyprctl hyprsunset gamma +5 +# binde = ,XF86MonBrightnessDown, execr, hyprctl hyprsunset gamma -5 @@ -128,12 +128,12 @@ binde = $mod shift, j, movewindow, d # binde = ctrl shift, up, resizeactive, 0 -20 # binde = ctrl shift, up, moveactive, 0 20 # binde = ctrl shift, down, resizeactive, 0 -20 -binde = ctrl $mod, left, resizeactive, 20 0 -binde = ctrl $mod, left, moveactive, -20 0 -binde = ctrl $mod, right, resizeactive, 20 0 -binde = ctrl $mod, up, resizeactive, 0 20 -binde = ctrl $mod, up, moveactive, 0 -20 -binde = ctrl $mod, down, resizeactive, 0 20 +# binde = ctrl $mod, left, resizeactive, 20 0 +# binde = ctrl $mod, left, moveactive, -20 0 +# binde = ctrl $mod, right, resizeactive, 20 0 +# binde = ctrl $mod, up, resizeactive, 0 20 +# binde = ctrl $mod, up, moveactive, 0 -20 +# binde = ctrl $mod, down, resizeactive, 0 20 binde = ctrl $mod alt, space, setfloating, 1 binde = ctrl $mod alt, space, centerwindow, 1 binde = shift alt, left, moveactive, -20 0 @@ -160,6 +160,8 @@ binde = $mod, h, movefocus, l binde = $mod, l, movefocus, r binde = $mod, k, movefocus, u binde = $mod, j, movefocus, d +bind = ctrl $mod, k, focuswindow, floating +bind = ctrl $mod, j, focuswindow, tiled # vim binds # binde = $mod, h, movefocus, l # binde = $mod, l, movefocus, r diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index ebb43f08..318c2418 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -70,6 +70,7 @@ general { layout = dwindle snap { enabled = true + respect_gaps = true # border_overlap = false } } @@ -174,6 +175,7 @@ dwindle { pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = true # You probably want this force_split = 3 + precise_mouse_move = true } master { @@ -393,12 +395,17 @@ source = ~/.config/hypr/binds.conf source = ~/.config/hypr/autostart.conf debug { - # disable_logs = false + disable_logs = false # overlay = true # show fps # suppress_errors = true + # pass = true error_position = 1 + # log_damage = true + # damage_blink = true full_cm_proto = true } experimental:xx_color_management_v4 = true + +plugin:kill-intercept:window = class:BeeperTexts, hide diff --git a/dot-config/hypr/hyprlandd.conf b/dot-config/hypr/hyprlandd.conf index 41d72abe..4e633781 100644 --- a/dot-config/hypr/hyprlandd.conf +++ b/dot-config/hypr/hyprlandd.conf @@ -12,8 +12,8 @@ monitor=,highres@highrr,auto,auto,bitdepth,10 ################### # Program defaults -$terminal = kitty -$termfloat = [float; size 40% 40%; workspace +0] kitty +$terminal = alacritty +$termfloat = [global; float; size 40% 40%; workspace +0] alacritty msg create-window $editor = lvim # $browser = thorium-browser $browser = zen-browser @@ -360,9 +360,17 @@ debug { } bind = ctrl shift, k, exec, $terminal +bind = ctrl shift, j, exec, $termfloat bind = ctrl shift, ;, pin bind = ctrl shift, ', fullscreen layerrule = animation slide 45% in, rofi layerrule = animation popin 45% in, rofi + +bindm = super, mouse:272, movewindow +bindm = super, mouse:273, resizewindow + +general:snap:respect_gaps = true + +general:float_gaps = -1 diff --git a/dot-config/hypr/rules.conf b/dot-config/hypr/rules.conf index d0f94e3f..5610db58 100644 --- a/dot-config/hypr/rules.conf +++ b/dot-config/hypr/rules.conf @@ -92,7 +92,7 @@ windowrule = tag +terminal, class:^(Alacritty|Xfce4-terminal|Kitty|$term|com.mit windowrule = tag +web, class:^($browser|Brave-browser|chromium|firefox|thorium|zen)$ # File managers -windowrule = tag +file, class:^($fileManager|Pcmanfm|Thunar|qBittorrent|Caja)$ +windowrule = tag +file, class:^($fileManager|Pcmanfm|thunar|qBittorrent|Caja)$ # Code editors windowrule = tag +code, class:^(code|code-url-handler|cursor-url-handler|code-oss|Code - OSS|install4j-burp-StartBurp|burp-StartBurp|Unity|jetbrains-pycharm-ce|Postman|jetbrains-clion)$ @@ -157,8 +157,10 @@ windowrule = tag +fakefullscreen, class:^(thorium-mdpkiolbdkhdjpekfbkbmhigcaggja # Full screen applications # time-sensitive app rules windowrule = tag +time-sensitive, class:^(polkit-gnome-authentication-agent-1|hyprland-share-picker.*|gcr-prompter|io.missioncenter.MissionCenter|hyprpolkitagent|hyprland-dialog|.*pinentry.*)$ -windowrule = tag +popup, title:^(Open File|Open|Select a File|Choose wallpaper|Open Folder|Save As|Save File|Library|File Upload|.*- Properties|Enter name of file to save to.*)$ +windowrule = tag +popup, title:^(Open File|Open|Select a File|Choose wallpaper|Open Folder|Save As|Save File|Open Files|File Operation Progress|Library|File Upload|.*- Properties|Enter name of file to save to.*)$ windowrule = tag +popup, class:^(xdg-desktop-portal.*|.*.portal..*)$ +windowrule = tag +popup, class:^thunar$, title:^Rename.* + windowrule = dimaround, tag:time-sensitive # rofi @@ -272,20 +274,16 @@ permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, a permission = /var/cache/hyprpm/system/dynamic-cursors/dynamic-cursors.so, plugin, allow -permission = .*, keyboard, ask -permission = ^wooting-wooting-two-he-(arm)$, keyboard, allow -permission = ^wooting-wooting-two-he-(arm)-consumer-control-1$, keyboard, allow -permission = ^wooting-wooting-two-he-(arm)-mouse$, keyboard, allow -permission = ^company--usb-device--1$, keyboard, allow -permission = ^company--usb-device--keyboard-1$, keyboard, allow +permission = ^wooting-wooting-two-he-\(arm\)$, keyboard, allow permission = ^power-button$, keyboard, allow permission = ^video-bus$, keyboard, allow permission = ^power-button-1$, keyboard, allow permission = ^sleep-button$, keyboard, allow -permission = ^wooting-wooting-two-he-(arm)$, keyboard, allow -permission = ^wooting-wooting-two-he-(arm)-system-control$, keyboard, allow -permission = ^wooting-wooting-two-he-(arm)-consumer-control$, keyboard, allow +permission = ^wooting-wooting-two-he-\(arm\)-system-control$, keyboard, allow +permission = ^wooting-wooting-two-he-\(arm\)-consumer-control$, keyboard, allow permission = ^company--usb-device-$, keyboard, allow permission = ^company--usb-device--keyboard$, keyboard, allow permission = ^logitech-brio-consumer-control$, keyboard, allow permission = ^hp-wmi-hotkeys$, keyboard, allow +permission = ^hl-virtual-keyboard$, keyboard, allow +permission = .*, keyboard, ask diff --git a/dot-config/kitty/kitty.conf b/dot-config/kitty/kitty.conf index 3e34b6fe..a90156b1 100644 --- a/dot-config/kitty/kitty.conf +++ b/dot-config/kitty/kitty.conf @@ -1,4 +1,4 @@ -background_opacity 0.5 +background_opacity 0.6 text_fg_override_threshold 4.5 ratio input_delay 0 @@ -26,7 +26,7 @@ cursor_trail_start_threshold 0 # scrollback_pager_history_size -1 resize_debounce_time 0 0 -placement_strategy top-left +# placement_strategy top-left # socket allow_remote_control socket-only diff --git a/dot-config/waybar/modules.jsonc b/dot-config/waybar/modules.jsonc index 99f50a76..bf24775f 100644 --- a/dot-config/waybar/modules.jsonc +++ b/dot-config/waybar/modules.jsonc @@ -1,247 +1,274 @@ { - // Modules configuration - "clock": { - "format": " {:%I:%M:%S}", - "tooltip": true, - "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", - "calendar": { - "mode": "month", - "weeks-pos" : "right", - "on-scroll" : 1, - "format": { - "days": "<span color='#FFF'><b>{}</b></span>", - "weeks": "<span color='#99ffdd'><b>W{}</b></span>", - "weekdays": "<span color='#ffcc66'><b>{}</b></span>", - "today": "<span color='#ff6699'><b><u>{}</u></b></span>" - } - }, - "format-alt": " {:%A %d/%m}", - "on-click-right": "swaync-client -t -sw", - "interval": 1 - }, - "hyprland/workspaces": { - "active-only": false, - "all-outputs": true, - "disable-scroll": false, - "on-scroll-up": "if [[ $(hyprctl activeworkspace -j | jq '.id') == 1 ]]; then hyprctl dispatch workspace 10; else hyprctl dispatch workspace -1; fi", - "on-scroll-down": "if [[ $(hyprctl activeworkspace -j | jq '.id') == 10 ]]; then hyprctl dispatch workspace 1; else hyprctl dispatch workspace +1; fi", - "on-click-middle": "hyprctl dispatch overview:toggle", - "format": "{icon}", - "on-click": "activate", - "format-icons": { - "1": "", - "2": "", - "3": "", - "4": "", - "5": "", - "6": "", - "7": "", - "8": "", - "9": "", - "urgent": "", - // "active": "", - "default": " ", - "sort-by-number": true - }, - // "format-icons": { - // "default": "", - // "active": " ", - // }, - - "persistent-workspaces": { - "*": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], - } - }, - "mpris": { - "format": "{status_icon} {dynamic}", - "format-paused": "{status_icon} <i>{dynamic}</i>", - "tooltip-format": "{title} by {artist} - {album} {position}/{length}", - "dynamic-order": ["title", "position", "length"], - "player": "spotify", - // "player-icons": { - // "default": "▶", - // }, - "status-icons": { - "playing": "⏸", - "paused": "▶" - }, - "dynamic-len": 75, - "interval": 1, - }, - "group/musicworkspace": { - "orientation": "horizontal", - "modules": ["hyprland/workspaces", "custom/minimized-counter", "mpris"], - }, - - "memory": { - "format": " {}%", - "format-alt": " {used}/{total} GiB", - "tooltip-format": "swap: {swapPercentage}%", - "interval": 1 - }, - - "cpu": { - "format": "{icon} {usage}%", - "format-alt": "{icon} {avg_frequency} GHz", - "format-icons": [ - "<span></span>", - "<span></span>", - "<span></span>", - "<span></span>", - "<span color='#ffffa5'></span>", - "<span color='#ffffa5'></span>", - "<span color='#ff9977'></span>", - "<span color='#dd532e'></span>" - ], - "interval": 1 - }, - - "network": { - "format-wifi": "{icon} {bandwidthDownBytes} {bandwidthUpBytes}", - "format-ethernet": " {ifname}: Ethernet", - "format-linked": " {ifname} (No IP)", - "format-disconnected": "", - "format-alt": " {ifname}: {ipaddr}/{cidr}", - "format-icons": ["", "", "", "", ""], - "tooltip-format": "Strength: {signalStrength}%", - // "on-click-right": "nm-connection-editor", - "on-click-right": "nmd", - "interval": 1 - }, - - "tray": { - "icon-size": 16, - "spacing": 5 - }, - // "custom/launcher": { - // "format": "", - // // "on-click": "bash $HOME/.config/rofi/launcher.sh", - // // "on-click": "wofi --show drun -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css", - // // "on-click-right": "bash $HOME/.config/rofi/run.sh" - // // "on-click-right": "wofi --show run -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css" - // "on-click": "pkill rofi || $HOME/.config/rofi/scripts/rofi_launcher", - // }, - "custom/minimized-counter": { - "format": "{}", - "exec": "hyprctl workspaces -j | jq '.[] | select(.name == \"special:minimized\") | .windows'", - "on-click": "hyprctl dispatch togglespecialworkspace minimized", - "interval": "once", - "signal": 5, - }, - "hyprland/window": { - // "on-click": "hyprctl dispatch focuswindow 'title:{title}'", - "rewrite": { - "(.*) - Thorium": "$1", - "(.*) — Zen Browser": "$1", - "(.*) - Visual Studio Code": "$1", - }, - "separate-outputs": true, - "tooltip-format": "{class}", - "tooltip": true, - }, - "custom/gpu": { - "format": " {}%", - "format-alt": " {}°C", - "tooltip": false, - // "exec-if": "nvidia-smi", - "exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits", - "exec-alt": "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits", - // "return-type": "json", - // "tooltip": false, - "interval": 3 - }, - "temperature": { - "format": " {}°C", - "tooltip": false, - "critical-threshold": 70, - "interval": 1 - }, - "custom/warp-vpn": { - "format": "{}", - "interval": "once", - "tooltip": false, - "exec": "$HOME/scripts/warp-vpn.sh status", - // "on-click": "warp-cli status | grep -q 'Connected' && $HOME/scripts/warp-vpn.sh connect || $HOME/scripts/warp-vpn.sh disconnect", - "on-click": "$HOME/scripts/warp-vpn.sh toggle", - "signal": 4 - }, - // "custom/indicator": { - // "format": "{}", - // "exec": "$HOME/scripts/hyprindicator subscribe", - // "return-type": "json", - // }, - "privacy": { - "icon-spacing": 4, - "icon-size": 18, - "transition-duration": 250, - "modules": [ - { - "type": "screenshare", - "tooltip": true, - "tooltip-icon-size": 24 - }, - // { - // "type": "audio-out", - // "tooltip": true, - // "tooltip-icon-size": 24 - // }, - { - "type": "audio-in", - "tooltip": true, - "tooltip-icon-size": 24 - }, - ], - "interval": 1 - }, - // "cava": { -// "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf", - // "framerate": 30, - // "autosens": 1, - // "sensitivity": 100, - // "bars": 14, - // "lower_cutoff_freq": 50, - // "higher_cutoff_freq": 10000, - // "method": "pipewire", - // "source": "auto", - // "stereo": true, - // "reverse": false, - // "bar_delimiter": 0, - // "monstercat": false, - // "waves": false, - // "noise_reduction": 0.77, - // "input_delay": 2, - // "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], - // "actions": { - // "on-click-right": "mode" - // } - // }, - "group/small-utils": { - "modules": ["custom/gpu-screen-recorder", "custom/toggle-mic", "custom/toggle-cam", "custom/warp-vpn", "custom/disable-sound", "tray"], - // "click-to-reveal": true, - "orientation": "horizontal", - "drawer": {} - }, - "custom/notification": { - "tooltip": false, - "format": "{icon}", - "format-icons": { - "notification": "<span foreground='red'><sup></sup></span>", - "none": "", - "dnd-notification": "<span foreground='red'><sup></sup></span>", - "dnd-none": "", - "inhibited-notification": "<span foreground='red'><sup></sup></span>", - "inhibited-none": "", - "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", - "dnd-inhibited-none": "" - }, - "return-type": "json", - "exec-if": "which swaync-client", - "exec": "swaync-client -swb", - "on-click": "swaync-client -t -sw", - "on-click-right": "swaync-client -d -sw", - "escape": true - }, - "custom/wf-recorder": { + // Modules configuration + "clock": { + "format": " {:%I:%M:%S}", + "tooltip": true, + "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", + "calendar": { + "mode": "month", + "weeks-pos": "right", + "on-scroll": 1, + "format": { + "days": "<span color='#FFF'><b>{}</b></span>", + "weeks": "<span color='#99ffdd'><b>W{}</b></span>", + "weekdays": "<span color='#ffcc66'><b>{}</b></span>", + "today": "<span color='#ff6699'><b><u>{}</u></b></span>" + } + }, + "format-alt": " {:%A %d/%m}", + "on-click-right": "swaync-client -t -sw", + "interval": 1 + }, + "hyprland/workspaces": { + "active-only": false, + "all-outputs": true, + "disable-scroll": false, + "on-scroll-up": "if [[ $(hyprctl activeworkspace -j | jq '.id') == 1 ]]; then hyprctl dispatch workspace 10; else hyprctl dispatch workspace -1; fi", + "on-scroll-down": "if [[ $(hyprctl activeworkspace -j | jq '.id') == 10 ]]; then hyprctl dispatch workspace 1; else hyprctl dispatch workspace +1; fi", + "on-click-middle": "hyprctl dispatch overview:toggle", + "format": "{icon}", + "on-click": "activate", + "format-icons": { + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + "6": "", + "7": "", + "8": "", + "9": "", + "urgent": "", + // "active": "", + "default": " ", + "sort-by-number": true + }, + // "format-icons": { + // "default": "", + // "active": " ", + // }, + "persistent-workspaces": { + "*": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + } + }, + "mpris": { + "format": "{status_icon} {dynamic}", + "format-paused": "{status_icon} <i>{dynamic}</i>", + "tooltip-format": "{title} by {artist} - {album} {position}/{length}", + "dynamic-order": [ + "title", + "position", + "length" + ], + "player": "spotify", + // "player-icons": { + // "default": "▶", + // }, + "status-icons": { + "playing": "⏸", + "paused": "▶" + }, + "dynamic-len": 75, + "interval": 1, + }, + "group/musicworkspace": { + "orientation": "horizontal", + "modules": [ + "hyprland/workspaces", + "custom/minimized-counter", + "mpris" + ], + }, + "memory": { + "format": " {}%", + "format-alt": " {used}/{total} GiB", + "tooltip-format": "swap: {swapPercentage}%", + "interval": 1 + }, + "cpu": { + "format": "{icon} {usage}%", + "format-alt": "{icon} {avg_frequency} GHz", + "format-icons": [ + "<span></span>", + "<span></span>", + "<span></span>", + "<span></span>", + "<span color='#ffffa5'></span>", + "<span color='#ffffa5'></span>", + "<span color='#ff9977'></span>", + "<span color='#dd532e'></span>" + ], + "interval": 1 + }, + "network": { + "format-wifi": "{icon} {bandwidthDownBytes} {bandwidthUpBytes}", + "format-ethernet": " {ifname}: Ethernet", + "format-linked": " {ifname} (No IP)", + "format-disconnected": "", + "format-alt": " {ifname}: {ipaddr}/{cidr}", + "format-icons": [ + "", + "", + "", + "", + "" + ], + "tooltip-format": "Strength: {signalStrength}%", + // "on-click-right": "nm-connection-editor", + "on-click-right": "$HOME/scripts/nmd", + "interval": 1 + }, + "tray": { + "icon-size": 16, + "spacing": 5 + }, + // "custom/launcher": { + // "format": "", + // // "on-click": "bash $HOME/.config/rofi/launcher.sh", + // // "on-click": "wofi --show drun -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css", + // // "on-click-right": "bash $HOME/.config/rofi/run.sh" + // // "on-click-right": "wofi --show run -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css" + // "on-click": "pkill rofi || $HOME/.config/rofi/scripts/rofi_launcher", + // }, + "custom/minimized-counter": { + "format": "{}", + "exec": "hyprctl workspaces -j | jq '.[] | select(.name == \"special:minimized\") | .windows'", + "on-click": "hyprctl dispatch togglespecialworkspace minimized", + "interval": "once", + "signal": 5, + }, + "hyprland/window": { + // "on-click": "hyprctl dispatch focuswindow 'title:{title}'", + "rewrite": { + "(.*) - Thorium": "$1", + "(.*) — Zen Browser": "$1", + "(.*) - Visual Studio Code": "$1", + }, + "separate-outputs": true, + "tooltip-format": "{class}", + "tooltip": true, + }, + "custom/gpu": { + "format": " {}%", + "format-alt": " {}°C", + "tooltip": false, + // "exec-if": "nvidia-smi", + "exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits", + "exec-alt": "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits", + // "return-type": "json", + // "tooltip": false, + "interval": 3 + }, + "temperature": { + "format": " {}°C", + "tooltip": false, + "critical-threshold": 70, + "interval": 1 + }, + "custom/warp-vpn": { + "format": "{}", + "interval": "once", + "tooltip": false, + "exec": "$HOME/scripts/warp-vpn.sh status", + // "on-click": "warp-cli status | grep -q 'Connected' && $HOME/scripts/warp-vpn.sh connect || $HOME/scripts/warp-vpn.sh disconnect", + "on-click": "$HOME/scripts/warp-vpn.sh toggle", + "signal": 4 + }, + // "custom/indicator": { + // "format": "{}", + // "exec": "$HOME/scripts/hyprindicator subscribe", + // "return-type": "json", + // }, + "privacy": { + "icon-spacing": 4, + "icon-size": 18, + "transition-duration": 250, + "modules": [ + { + "type": "screenshare", + "tooltip": true, + "tooltip-icon-size": 24 + }, + // { + // "type": "audio-out", + // "tooltip": true, + // "tooltip-icon-size": 24 + // }, + { + "type": "audio-in", + "tooltip": true, + "tooltip-icon-size": 24 + }, + ], + "interval": 1 + }, + // "cava": { + // "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf", + // "framerate": 30, + // "autosens": 1, + // "sensitivity": 100, + // "bars": 14, + // "lower_cutoff_freq": 50, + // "higher_cutoff_freq": 10000, + // "method": "pipewire", + // "source": "auto", + // "stereo": true, + // "reverse": false, + // "bar_delimiter": 0, + // "monstercat": false, + // "waves": false, + // "noise_reduction": 0.77, + // "input_delay": 2, + // "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], + // "actions": { + // "on-click-right": "mode" + // } + // }, + "group/small-utils": { + "modules": [ + "custom/gpu-screen-recorder", + "custom/toggle-mic", + "custom/toggle-cam", + "custom/warp-vpn", + "custom/disable-sound", + "tray" + ], + // "click-to-reveal": true, + "orientation": "horizontal", + "drawer": {} + }, + "custom/notification": { + "tooltip": false, + "format": "{icon}", + "format-icons": { + "notification": "<span foreground='red'><sup></sup></span>", + "none": "", + "dnd-notification": "<span foreground='red'><sup></sup></span>", + "dnd-none": "", + "inhibited-notification": "<span foreground='red'><sup></sup></span>", + "inhibited-none": "", + "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", + "dnd-inhibited-none": "" + }, + "return-type": "json", + "exec-if": "which swaync-client", + "exec": "swaync-client -swb", + "on-click": "swaync-client -t -sw", + "on-click-right": "swaync-client -d -sw", + "escape": true + }, + "custom/wf-recorder": { "format": "{}", "interval": "once", "exec": "if pgrep wf-recorder >/dev/null; then echo ''; else echo ''; fi", @@ -249,89 +276,95 @@ "on-click": "$HOME/scripts/wf-record", "on-click-right": "$HOME/scripts/wf-record -s", "signal": 3 - }, - "custom/toggle-mic": { - "format": "{}", - "interval": "once", - "exec": "pactl get-source-mute @DEFAULT_SOURCE@ | grep 'Mute: yes' >/dev/null && echo '' || echo ''", - "on-click": "pactl set-source-mute @DEFAULT_SOURCE@ toggle && pkill -RTMIN+4 waybar", - "tooltip": false, - "signal": 4 - }, - "custom/toggle-cam": { - "format": "{}", - "interval": "once", - "exec": "modprobe uvcvideo && echo '' || echo ''", - "on-click": "pkexec modprobe -r uvcvideo || zenity --password | sudo -S modprobe uvcvideo; pkill -RTMIN+4 waybar", - "tooltip": false, - "signal": 4 - }, - "custom/gpu-screen-recorder": { - "format": "{}", - "interval": "once", - "exec": "$HOME/scripts/rec.sh status", - "tooltip": false, - "on-click": "$HOME/scripts/rec.sh recorder", - "on-click-right": "$HOME/scripts/rec.sh pause", - "signal": 3 - }, - "group/misc": { - "orientation": "horizontal", - "modules": ["group/misc-wrapper", "privacy"], - }, - "group/misc-wrapper": { - "orientation": "horizontal", - "modules": ["clock", "group/small-utils"], - "drawer": {} - }, - "custom/dpms": { - "format": "", - "tooltip": false, - "on-click": "notify-send -e 'Hyprland' 'Click again to Turn off monitor'", - "on-double-click": "hyprctl dispatch dpms off" - }, - "custom/lock": { - "format": "", - "tooltip": false, - "on-click": "notify-send -e 'Hyprland' 'Click again to Lock'", - "on-double-click": "loginctl lock-session" - }, - "custom/quit": { - "format": "", - "tooltip": false, - "on-click": "notify-send -e 'Hyprland' 'Click again to Exit'", - "on-double-click": "hyprctl dispatch exit" - }, - "custom/suspend": { - "format": "", - "tooltip": false, - "on-click": "notify-send -e 'Hyprland' 'Click again to Suspend'", - "on-double-click": "systemctl suspend" - }, - "custom/shutdown": { - "format": "", - "tooltip": false, - "on-click": "notify-send -e 'Hyprland' 'Click again to Shutdown'", - "on-double-click": "shutdown now" - }, - "custom/reboot": { - "format": "", - "tooltip": false, - "on-click": "notify-send -e 'Hyprland' 'Click again to Reboot'", - "on-double-click": "reboot" - }, - "group/power": { - "orientation": "inherit", - "drawer": { - "transition-duration": 500, - "children-class": "not-shutdown", - }, - "modules": [ - "custom/shutdown", - "custom/dpms", - "custom/lock", - "custom/suspend", - "custom/reboot", - ] - }, + }, + "custom/toggle-mic": { + "format": "{}", + "interval": "once", + "exec": "pactl get-source-mute @DEFAULT_SOURCE@ | grep 'Mute: yes' >/dev/null && echo '' || echo ''", + "on-click": "pactl set-source-mute @DEFAULT_SOURCE@ toggle && pkill -RTMIN+4 waybar", + "tooltip": false, + "signal": 4 + }, + "custom/toggle-cam": { + "format": "{}", + "interval": "once", + "exec": "modprobe uvcvideo && echo '' || echo ''", + "on-click": "pkexec modprobe -r uvcvideo || zenity --password | sudo -S modprobe uvcvideo; pkill -RTMIN+4 waybar", + "tooltip": false, + "signal": 4 + }, + "custom/gpu-screen-recorder": { + "format": "{}", + "interval": "once", + "exec": "$HOME/scripts/rec.sh status", + "tooltip": false, + "on-click": "$HOME/scripts/rec.sh recorder", + "on-click-right": "$HOME/scripts/rec.sh pause", + "signal": 3 + }, + "group/misc": { + "orientation": "horizontal", + "modules": [ + "group/misc-wrapper", + "privacy" + ], + }, + "group/misc-wrapper": { + "orientation": "horizontal", + "modules": [ + "clock", + "group/small-utils" + ], + "drawer": {} + }, + "custom/dpms": { + "format": "", + "tooltip": false, + "on-click": "notify-send -e 'Hyprland' 'Click again to Turn off monitor'", + "on-double-click": "hyprctl dispatch dpms off" + }, + "custom/lock": { + "format": "", + "tooltip": false, + "on-click": "notify-send -e 'Hyprland' 'Click again to Lock'", + "on-double-click": "loginctl lock-session" + }, + "custom/quit": { + "format": "", + "tooltip": false, + "on-click": "notify-send -e 'Hyprland' 'Click again to Exit'", + "on-double-click": "hyprctl dispatch exit" + }, + "custom/suspend": { + "format": "", + "tooltip": false, + "on-click": "notify-send -e 'Hyprland' 'Click again to Suspend'", + "on-double-click": "systemctl suspend" + }, + "custom/shutdown": { + "format": "", + "tooltip": false, + "on-click": "notify-send -e 'Hyprland' 'Click again to Shutdown'", + "on-double-click": "shutdown now" + }, + "custom/reboot": { + "format": "", + "tooltip": false, + "on-click": "notify-send -e 'Hyprland' 'Click again to Reboot'", + "on-double-click": "reboot" + }, + "group/power": { + "orientation": "inherit", + "drawer": { + "transition-duration": 500, + "children-class": "not-shutdown", + }, + "modules": [ + "custom/shutdown", + "custom/dpms", + "custom/lock", + "custom/suspend", + "custom/reboot", + ] + }, } |
