♻️ refactor(hypr): change workspace number to 9 for hyprexpo plugin to work

adapt rules as well
This commit is contained in:
Sergio Laín 2024-04-25 18:20:44 +02:00
parent 1bee812f17
commit 4c5b90b90d
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
8 changed files with 106 additions and 125 deletions

View file

@ -17,8 +17,9 @@ bind = SUPER, O, exec, ~/.config/hypr/scripts/custom_app_launch obsidian
bind = SUPERSHIFT, O, exec, ~/.config/hypr/scripts/custom_app_launch office bind = SUPERSHIFT, O, exec, ~/.config/hypr/scripts/custom_app_launch office
bind = SUPERSHIFT, E,exec, ~/.config/hypr/scripts/custom_app_launch nemo bind = SUPERSHIFT, E,exec, ~/.config/hypr/scripts/custom_app_launch nemo
bind = SUPER, RETURN, exec, kitty bind = SUPER, RETURN, exec, kitty
bind = SUPERALT, RETURN, exec, kitty --class=center-float-large bind = SUPERSHIFT, RETURN, exec, kitty --class=center-float-large
bind = SUPERSHIFT, RETURN, exec, ~/.config/hypr/scripts/custom_app_launch kitty bind = SUPERALT, RETURN, exec, kitty --class=center-float
bind = SUPERCTRL, RETURN, exec, kitty --class=center-float-mini
bind = SUPER, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch nvim bind = SUPER, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch nvim
bind = SUPERSHIFT, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch codium bind = SUPERSHIFT, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch codium
@ -93,7 +94,6 @@ bind = SUPER, 6, exec, $workspace 6 switch
bind = SUPER, 7, exec, $workspace 7 switch bind = SUPER, 7, exec, $workspace 7 switch
bind = SUPER, 8, exec, $workspace 8 switch bind = SUPER, 8, exec, $workspace 8 switch
bind = SUPER, 9, exec, $workspace 9 switch bind = SUPER, 9, exec, $workspace 9 switch
bind = SUPER, 0, exec, $workspace 10 switch
# Moving windows to other workspaces # Moving windows to other workspaces
bind = SUPERSHIFT, 1, exec, $workspace 1 move bind = SUPERSHIFT, 1, exec, $workspace 1 move
@ -105,7 +105,6 @@ bind = SUPERSHIFT, 6, exec, $workspace 6 move
bind = SUPERSHIFT, 7, exec, $workspace 7 move bind = SUPERSHIFT, 7, exec, $workspace 7 move
bind = SUPERSHIFT, 8, exec, $workspace 8 move bind = SUPERSHIFT, 8, exec, $workspace 8 move
bind = SUPERSHIFT, 9, exec, $workspace 9 move bind = SUPERSHIFT, 9, exec, $workspace 9 move
bind = SUPERSHIFT, 0, exec, $workspace 10 move
# Moving windows to other workspaces (silent) # Moving windows to other workspaces (silent)
bind = SUPERALT, 1, exec, $workspace 1 silent bind = SUPERALT, 1, exec, $workspace 1 silent
@ -117,7 +116,6 @@ bind = SUPERALT, 6, exec, $workspace 6 silent
bind = SUPERALT, 7, exec, $workspace 7 silent bind = SUPERALT, 7, exec, $workspace 7 silent
bind = SUPERALT, 8, exec, $workspace 8 silent bind = SUPERALT, 8, exec, $workspace 8 silent
bind = SUPERALT, 9, exec, $workspace 9 silent bind = SUPERALT, 9, exec, $workspace 9 silent
bind = SUPERALT, 0, exec, $workspace 10 silent
# Moving to other workspace with mouse control # Moving to other workspace with mouse control
bind = SUPER, mouse_down, workspace, m-1 bind = SUPER, mouse_down, workspace, m-1

View file

@ -8,10 +8,10 @@ workspace = 6, monitor:DP-1
workspace = 7, monitor:DP-1 workspace = 7, monitor:DP-1
workspace = 8, monitor:DP-1, rounding:false, decorate:false, gapsin:0, gapsout:0, border:false, decorate:false # Gaming Workspace workspace = 8, monitor:DP-1, rounding:false, decorate:false, gapsin:0, gapsout:0, border:false, decorate:false # Gaming Workspace
workspace = 9, monitor:DP-1 workspace = 9, monitor:DP-1
workspace = 10, monitor:DP-1
# Second Monitor # Second Monitor
workspace = 11, monitor:DP-3, default:true workspace = 10, monitor:DP-3, default:true
workspace = 11, monitor:DP-3
workspace = 12, monitor:DP-3 workspace = 12, monitor:DP-3
workspace = 13, monitor:DP-3 workspace = 13, monitor:DP-3
workspace = 14, monitor:DP-3 workspace = 14, monitor:DP-3
@ -19,17 +19,14 @@ workspace = 15, monitor:DP-3
workspace = 16, monitor:DP-3 workspace = 16, monitor:DP-3
workspace = 17, monitor:DP-3 workspace = 17, monitor:DP-3
workspace = 18, monitor:DP-3 workspace = 18, monitor:DP-3
workspace = 19, monitor:DP-3
workspace = 20, monitor:DP-3
# Third Monitor # Third Monitor
workspace = 21, monitor:HDMI-A-1, default:true workspace = 19, monitor:HDMI-A-1, default:true
workspace = 20, monitor:HDMI-A-1
workspace = 21, monitor:HDMI-A-1
workspace = 22, monitor:HDMI-A-1 workspace = 22, monitor:HDMI-A-1
workspace = 23, monitor:HDMI-A-1 workspace = 23, monitor:HDMI-A-1
workspace = 24, monitor:HDMI-A-1 workspace = 24, monitor:HDMI-A-1
workspace = 25, monitor:HDMI-A-1 workspace = 25, monitor:HDMI-A-1
workspace = 26, monitor:HDMI-A-1 workspace = 26, monitor:HDMI-A-1
workspace = 27, monitor:HDMI-A-1 workspace = 27, monitor:HDMI-A-1
workspace = 28, monitor:HDMI-A-1
workspace = 29, monitor:HDMI-A-1
workspace = 30, monitor:HDMI-A-1

View file

@ -25,8 +25,8 @@ exec-once = hyprpm reload -n
# source = ~/.config/hypr/plugins/hyprtrails.conf # source = ~/.config/hypr/plugins/hyprtrails.conf
# Hyprexpo # Hyprexpo
# exec-once = hyprpm enable hyprexpo exec-once = hyprpm enable hyprexpo
# source = ~/.config/hypr/plugins/hyprexpo.conf source = ~/.config/hypr/plugins/hyprexpo.conf
# Hyprbars # Hyprbars
# exec-once = hyprpm enable hyprbars # exec-once = hyprpm enable hyprbars

View file

@ -6,7 +6,7 @@ plugin {
columns = 3 columns = 3
gap_size = 6 gap_size = 6
bg_col = rgb($surface0Alpha) bg_col = rgb($surface0Alpha)
workspace_method = center current workspace_method = first 1
enable_gesture = true enable_gesture = true
gesture_distance = 300 gesture_distance = 300

View file

@ -2,7 +2,7 @@
monitors=($(hyprctl monitors -j | jq -r '.[].id')) monitors=($(hyprctl monitors -j | jq -r '.[].id'))
ws_per_monitor=10 ws_per_monitor=9
monitor=$(hyprctl activeworkspace -j | jq -r '.monitorID') monitor=$(hyprctl activeworkspace -j | jq -r '.monitorID')

View file

@ -14,49 +14,38 @@ case $app in
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 4] nemo & hyprctl dispatch exec [workspace 4] nemo &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 14] nemo & hyprctl dispatch exec [workspace 13] nemo &
else else
nemo & nemo &
fi fi
;; ;;
"obsidian") "obsidian")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 10] obsidian & hyprctl dispatch exec [workspace 9] obsidian &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 20] obsidian & hyprctl dispatch exec [workspace 18] obsidian &
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec [workspace 30] obsidian & hyprctl dispatch exec [workspace 27] obsidian &
else else
obsidian & obsidian &
fi fi
;; ;;
"office") "office")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 10] libreoffice & hyprctl dispatch exec [workspace 9] libreoffice &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 20] libreoffice & hyprctl dispatch exec [workspace 18] libreoffice &
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec [workspace 30] libreoffice & hyprctl dispatch exec [workspace 27] libreoffice &
else else
libreoffice & libreoffice &
fi fi
;; ;;
"kitty")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 3] kitty &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 13] kitty &
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec "[workspace 24] kitty --class center-float-large" &
else
kitty &
fi
;;
"nvim") "nvim")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 2] kitty nvim & hyprctl dispatch exec [workspace 2] kitty nvim &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 12] kitty nvim & hyprctl dispatch exec [workspace 11] kitty nvim &
else else
kitty nvim & kitty nvim &
fi fi
@ -65,7 +54,7 @@ case $app in
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch workspace 2 && codium & hyprctl dispatch workspace 2 && codium &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch workspace 12 && codium & hyprctl dispatch workspace 11 && codium &
else else
codium codium
fi fi
@ -74,9 +63,9 @@ case $app in
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch workspace 1 && librewolf & # Had to to this because it didnt work the other way hyprctl dispatch workspace 1 && librewolf & # Had to to this because it didnt work the other way
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch workspace 11 && librewolf & hyprctl dispatch workspace 10 && librewolf &
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch workspace 25 && librewolf & hyprctl dispatch workspace 23 && librewolf &
else else
librewolf & librewolf &
fi fi

View file

@ -25,28 +25,28 @@ windowrule = float, xfce-polkit|wleave|title:branchdialog|nwg-look|nm-connection
# Workspace Rules # Workspace Rules
# System # System
windowrulev2 = workspace 9, class:^(.*virt-manager.*)$|(.*PikaBackup.*)$ windowrulev2 = workspace 8, class:^(.*virt-manager.*)$|(.*PikaBackup.*)$
windowrulev2 = workspace 19, class:^(.*GParted.*)$|(.*clamtk.*)$|(.*gnome.Logs.*)$ windowrulev2 = workspace 17, class:^(.*GParted.*)$|(.*clamtk.*)$|(.*gnome.Logs.*)$
# Gaming # Gaming
windowrulev2 = workspace 8, class:^(.*steam_app.*)$|(.*gamescope.*)$|(.*atlauncher.*)$|(.*Minecraft.*)$ windowrulev2 = workspace 8, class:^(.*steam_app.*)$|(.*gamescope.*)$|(.*atlauncher.*)$|(.*Minecraft.*)$
windowrulev2 = workspace 18, class:^(steam)$|(.*heroic.*)$ windowrulev2 = workspace 16, class:^(steam)$|(.*heroic.*)$
windowrulev2 = workspace 8, class:^(.*Ryujinx.*)$|(.*cemu.*)$|(.*dolphin.*)$|(.*RetroArch.*)$|(.*xemu.*)$|(.*duckstation.*)$|(.*rpcs3.*)$ windowrulev2 = workspace 8, class:^(.*Ryujinx.*)$|(.*cemu.*)$|(.*dolphin.*)$|(.*RetroArch.*)$|(.*xemu.*)$|(.*duckstation.*)$|(.*rpcs3.*)$
# Media # Media
windowrulev2 = workspace 7, class:^(.*kdenlive.*)$ windowrulev2 = workspace 7, class:^(.*kdenlive.*)$
windowrulev2 = workspace 23 silent, class:^(.*thunderbird.*)$ windowrulev2 = workspace 21 silent, class:^(.*thunderbird.*)$
windowrulev2 = workspace 24 silent, class:^(.*btop.*)$ windowrulev2 = workspace 22 silent, class:^(.*btop.*)$
windowrulev2 = workspace 24 silent, class:^(.*nvtop.*)$ windowrulev2 = workspace 22 silent, class:^(.*nvtop.*)$
windowrulev2 = workspace 21 silent, class:^(.*Spotify.*)$ windowrulev2 = workspace 19 silent, class:^(.*Spotify.*)$
windowrulev2 = workspace 22 silent, class:^(.*discord.*)$|(.*vesktop.*)$|(.*WebCord.*)$ windowrulev2 = workspace 20 silent, class:^(.*discord.*)$|(.*vesktop.*)$|(.*WebCord.*)$
windowrulev2 = workspace 17, class:^(.*obsproject.*)$ windowrulev2 = workspace 16, class:^(.*obsproject.*)$
windowrulev2 = workspace 16, class:^(.*easyeffects.*)$|^(.*qpwgraph.*)$ windowrulev2 = workspace 15, class:^(.*easyeffects.*)$|^(.*qpwgraph.*)$
windowrulev2 = workspace 6, class:^(.*vital.*)$|(.*fl64.*)$ windowrulev2 = workspace 5, class:^(.*vital.*)$|(.*fl64.*)$
windowrulev2 = workspace 5, class:^(.*pinta.*)$|(.*krita.*)$|(.*blender.*)$|(.*Upscayl.*)$ windowrulev2 = workspace 4, class:^(.*pinta.*)$|(.*krita.*)$|(.*blender.*)$|(.*Upscayl.*)$
# Productivity/Dev # Productivity/Dev
windowrulev2 = workspace 10 silent, class:^(.*obsidian.*)$ windowrulev2 = workspace 9 silent, class:^(.*obsidian.*)$
windowrulev2 = workspace 2, class:^(.*Code.*)$|(.*codium.*)$|(.*VSCodium.*) windowrulev2 = workspace 2, class:^(.*Code.*)$|(.*codium.*)$|(.*VSCodium.*)

View file

@ -15,7 +15,7 @@
"custom/arch", "custom/arch",
"hyprland/workspaces", "hyprland/workspaces",
"cava", "cava",
"custom/wf-recorder" "custom/wf-recorder",
], ],
"modules-center": ["custom/music"], "modules-center": ["custom/music"],
"modules-right": [ "modules-right": [
@ -24,7 +24,7 @@
"custom/weather", "custom/weather",
"clock", "clock",
"pulseaudio", "pulseaudio",
"custom/notifications" "custom/notifications",
], ],
"custom/wf-recorder": { "custom/wf-recorder": {
"format": "{}", "format": "{}",
@ -33,25 +33,25 @@
"tooltip": "false", "tooltip": "false",
"exec-if": "pgrep 'wf-recorder'", "exec-if": "pgrep 'wf-recorder'",
"on-click": "exec $HOME/.config/hypr/scripts/rofi/recording", "on-click": "exec $HOME/.config/hypr/scripts/rofi/recording",
"signal": 8 "signal": 8,
}, },
"custom/updates": { "custom/updates": {
"format": "{} {icon}", "format": "{} {icon}",
"return-type": "json", "return-type": "json",
"format-icons": { "format-icons": {
"has-updates": "󱍷", "has-updates": "󱍷",
"updated": "󰂪" "updated": "󰂪",
}, },
"exec-if": "which waybar-module-pacman-updates", "exec-if": "which waybar-module-pacman-updates",
"exec": "waybar-module-pacman-updates", "exec": "waybar-module-pacman-updates",
"on-click": "pypr toggle topgrade-system", "on-click": "pypr toggle topgrade-system",
"on-click-right": "pypr toggle topgrade-all" "on-click-right": "pypr toggle topgrade-all",
}, },
"custom/arch": { "custom/arch": {
"format": "  ", "format": "  ",
"tooltip": false, "tooltip": false,
"on-click": "sleep 0.1 && rofi -show drun", "on-click": "sleep 0.1 && rofi -show drun",
"on-click-right": "wleave" "on-click-right": "wleave",
}, },
"custom/weather": { "custom/weather": {
"exec": "wttrbar --location Alicante", "exec": "wttrbar --location Alicante",
@ -61,7 +61,7 @@
"return-type": "json", "return-type": "json",
"on-click": "kitty --hold --class center-float wttr Alicante", "on-click": "kitty --hold --class center-float wttr Alicante",
"on-click-right": "kitty --hold --class center-float wttr -v2 Alicante", "on-click-right": "kitty --hold --class center-float wttr -v2 Alicante",
"on-click-middle": "xdg-open https://wttr.in/alicante" "on-click-middle": "xdg-open https://wttr.in/alicante",
}, },
"custom/notifications": { "custom/notifications": {
"tooltip": false, "tooltip": false,
@ -74,14 +74,14 @@
"inhibited-notification": "<span foreground='red'><sup></sup></span>", "inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "", "inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": "" "dnd-inhibited-none": "",
}, },
"return-type": "json", "return-type": "json",
"exec-if": "which swaync-client", "exec-if": "which swaync-client",
"exec": "swaync-client -swb", "exec": "swaync-client -swb",
"on-click": "sleep 0.1 && swaync-client -t -sw", "on-click": "sleep 0.1 && swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw", "on-click-right": "swaync-client -d -sw",
"escape": true "escape": true,
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
@ -91,25 +91,24 @@
"format-icons": { "format-icons": {
"1": "󰇧", "1": "󰇧",
"2": "", "2": "",
"3": "🖵", "3": "",
"4": "", "4": "",
"5": "", "5": "🎜",
"6": "🎜", "6": "",
"7": "", "7": "",
"8": "", "8": "",
"9": "", "9": "",
"10": ""
}, },
"on-scroll-up": "hyprctl dispatch workspace r-1", "on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1", "on-scroll-down": "hyprctl dispatch workspace r+1",
"on-click": "activate", "on-click": "activate",
"sort-by-number": true "sort-by-number": true,
}, },
"hyprland/language": { "hyprland/language": {
"format": "{}", "format": "{}",
"format-en": " US", "format-en": " US",
"format-es": " ES", "format-es": " ES",
"on-click": "hyprctl switchxkblayout evision-usb-device next" "on-click": "hyprctl switchxkblayout evision-usb-device next",
}, },
"clock": { "clock": {
"tooltip-format": "<tt><small>{calendar}</small></tt>", "tooltip-format": "<tt><small>{calendar}</small></tt>",
@ -124,8 +123,8 @@
"days": "<span color='#cad3f5'><b>{}</b></span>", "days": "<span color='#cad3f5'><b>{}</b></span>",
"weeks": "<span color='#8aadf4'><b>W{}</b></span>", "weeks": "<span color='#8aadf4'><b>W{}</b></span>",
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>", "weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
"today": "<span color='#ed8796'><b><u>{}</u></b></span>" "today": "<span color='#ed8796'><b><u>{}</u></b></span>",
} },
}, },
"interval": 1, "interval": 1,
"format": "{:%H:%M:%OS}  ", "format": "{:%H:%M:%OS}  ",
@ -135,9 +134,9 @@
"on-click-forward": "tz_up", "on-click-forward": "tz_up",
"on-click-backward": "tz_down", "on-click-backward": "tz_down",
"on-scroll-up": "shift_up", "on-scroll-up": "shift_up",
"on-scroll-down": "shift_down" "on-scroll-down": "shift_down",
}, },
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23" "on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
}, },
"pulseaudio": { "pulseaudio": {
"format": "{icon} {volume}% {format_source}", "format": "{icon} {volume}% {format_source}",
@ -153,14 +152,14 @@
"phone": " ", "phone": " ",
"portable": " ", "portable": " ",
"car": " ", "car": " ",
"default": [" ", " ", " "] "default": [" ", " ", " "],
}, },
"tooltip-format": "{desc}, {volume}%", "tooltip-format": "{desc}, {volume}%",
"on-click": "swayosd-client --output-volume mute-toggle", "on-click": "swayosd-client --output-volume mute-toggle",
"on-click-right": "swayosd-client --input-volume mute-toggle", "on-click-right": "swayosd-client --input-volume mute-toggle",
"on-click-middle": "pypr toggle volume", "on-click-middle": "pypr toggle volume",
"on-scroll-up": "swayosd-client --output-volume +1", "on-scroll-up": "swayosd-client --output-volume +1",
"on-scroll-down": "swayosd-client --output-volume -1" "on-scroll-down": "swayosd-client --output-volume -1",
}, },
"cava": { "cava": {
"autosens": 1, "autosens": 1,
@ -174,7 +173,7 @@
"<span foreground='#89b4fa'>▅</span>", "<span foreground='#89b4fa'>▅</span>",
"<span foreground='#89b4fa'>▆</span>", "<span foreground='#89b4fa'>▆</span>",
"<span foreground='#89b4fa'>▇</span>", "<span foreground='#89b4fa'>▇</span>",
"<span foreground='#89b4fa'>█</span>" "<span foreground='#89b4fa'>█</span>",
], ],
"framerate": 75, "framerate": 75,
"higher_cutoff_freq": 10000, "higher_cutoff_freq": 10000,
@ -188,7 +187,7 @@
"waves": false, "waves": false,
"on-click": "pypr toggle cava", "on-click": "pypr toggle cava",
"on-click-right": "qpwgraph", "on-click-right": "qpwgraph",
"on-click-middle": "easyeffects" "on-click-middle": "easyeffects",
}, },
"custom/music": { "custom/music": {
"format": "{icon} {}", "format": "{icon} {}",
@ -196,14 +195,14 @@
"max-length": 100, "max-length": 100,
"format-icons": { "format-icons": {
"spotify": " ", "spotify": " ",
"default": " " "default": " ",
}, },
"escape": true, "escape": true,
"exec": "$HOME/.config/waybar/scripts/mediaplayer.py 2> /dev/null", "exec": "$HOME/.config/waybar/scripts/mediaplayer.py 2> /dev/null",
"on-click": "playerctl --player=spotify play-pause", "on-click": "playerctl --player=spotify play-pause",
"on-scroll-up": "playerctl --player=spotify next", "on-scroll-up": "playerctl --player=spotify next",
"on-scroll-down": "playerctl --player=spotify previous" "on-scroll-down": "playerctl --player=spotify previous",
} },
}, },
{ {
"height": 50, "height": 50,
@ -225,7 +224,7 @@
"temperature#cpu", "temperature#cpu",
"custom/gpu-usage", "custom/gpu-usage",
"temperature#gpu", "temperature#gpu",
"custom/notifications" "custom/notifications",
], ],
"hyprland/window": { "hyprland/window": {
"format": "{}", "format": "{}",
@ -233,15 +232,15 @@
"rewrite": { "rewrite": {
"(.*) — LibreWolf": "󰇧 $1", "(.*) — LibreWolf": "󰇧 $1",
"(.*) - Discord": "󰙯 $1", "(.*) - Discord": "󰙯 $1",
"(.*) - fish": "> [$1]" "(.*) - fish": "> [$1]",
}, },
"separate-outputs": false "separate-outputs": false,
}, },
"custom/arch": { "custom/arch": {
"format": "  ", "format": "  ",
"tooltip": false, "tooltip": false,
"on-click": "sleep 0.1 && rofi -show drun", "on-click": "sleep 0.1 && rofi -show drun",
"on-click-right": "wleave" "on-click-right": "wleave",
}, },
"custom/notifications": { "custom/notifications": {
"tooltip": false, "tooltip": false,
@ -254,14 +253,14 @@
"inhibited-notification": "<span foreground='red'><sup></sup></span>", "inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "", "inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": "" "dnd-inhibited-none": "",
}, },
"return-type": "json", "return-type": "json",
"exec-if": "which swaync-client", "exec-if": "which swaync-client",
"exec": "swaync-client -swb", "exec": "swaync-client -swb",
"on-click": "sleep 0.1 && swaync-client -t -sw", "on-click": "sleep 0.1 && swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw", "on-click-right": "swaync-client -d -sw",
"escape": true "escape": true,
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
@ -270,40 +269,39 @@
"enable-bar-scroll": true, "enable-bar-scroll": true,
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"11": "󰇧", "10": "󰇧",
"12": "", "11": "",
"13": "🖵", "12": "",
"14": "", "13": "",
"15": "", "14": "🎜",
"16": "🎜", "15": "",
"17": "", "16": "",
"18": "", "17": "",
"19": "", "18": "",
"20": ""
}, },
"on-scroll-up": "hyprctl dispatch workspace r-1", "on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1", "on-scroll-down": "hyprctl dispatch workspace r+1",
"on-click": "activate", "on-click": "activate",
"sort-by-number": true "sort-by-number": true,
}, },
"cpu": { "cpu": {
"on-click": "kitty --class center-float-large btop", "on-click": "kitty --class center-float-large btop",
"format": "CPU: {usage}%", "format": "CPU: {usage}%",
"tooltip": false, "tooltip": false,
"interval": 2 "interval": 2,
}, },
"custom/gpu-usage": { "custom/gpu-usage": {
"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent", "exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
"on-click": "kitty --class center-float-large nvtop", "on-click": "kitty --class center-float-large nvtop",
"format": "GPU: {}%", "format": "GPU: {}%",
"return-type": "", "return-type": "",
"interval": 2 "interval": 2,
}, },
"memory": { "memory": {
"format": "{}%  ", "format": "{}%  ",
"on-click": "kitty --class center-float-large btop", "on-click": "kitty --class center-float-large btop",
"tooltip": true, "tooltip": true,
"interval": 2 "interval": 2,
}, },
"temperature#cpu": { "temperature#cpu": {
"critical-threshold": 90, "critical-threshold": 90,
@ -313,7 +311,7 @@
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""], "format-icons": ["", "", ""],
"tooltip": true, "tooltip": true,
"interval": 2 "interval": 2,
}, },
"temperature#gpu": { "temperature#gpu": {
"critical-threshold": 80, "critical-threshold": 80,
@ -323,8 +321,8 @@
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""], "format-icons": ["", "", ""],
"tooltip": true, "tooltip": true,
"interval": 2 "interval": 2,
} },
}, },
{ {
"height": 50, "height": 50,
@ -345,7 +343,7 @@
"format": "  ", "format": "  ",
"tooltip": false, "tooltip": false,
"on-click": "sleep 0.1 && rofi -show drun", "on-click": "sleep 0.1 && rofi -show drun",
"on-click-right": "wleave" "on-click-right": "wleave",
}, },
"custom/notifications": { "custom/notifications": {
"tooltip": false, "tooltip": false,
@ -358,14 +356,14 @@
"inhibited-notification": "<span foreground='red'><sup></sup></span>", "inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "", "inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": "" "dnd-inhibited-none": "",
}, },
"return-type": "json", "return-type": "json",
"exec-if": "which swaync-client", "exec-if": "which swaync-client",
"exec": "swaync-client -swb", "exec": "swaync-client -swb",
"on-click": "sleep 0.1 && swaync-client -t -sw", "on-click": "sleep 0.1 && swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw", "on-click-right": "swaync-client -d -sw",
"escape": true "escape": true,
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
@ -373,24 +371,23 @@
"enable-bar-scroll": true, "enable-bar-scroll": true,
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"21": "", "19": "",
"22": "󰍨", "20": "󰍨",
"23": "✉", "21": "✉",
"24": "🖵", "22": "🖵",
"25": "󰇧", "23": "󰇧",
"24": "",
"25": "",
"26": "", "26": "",
"27": "", "27": "",
"28": "",
"29": "",
"30": ""
}, },
"on-scroll-up": "hyprctl dispatch workspace r-1", "on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1", "on-scroll-down": "hyprctl dispatch workspace r+1",
"on-click": "activate", "on-click": "activate",
"sort-by-number": true "sort-by-number": true,
}, },
"tray": { "tray": {
"spacing": 10 "spacing": 10,
}, },
"clock#cl2": { "clock#cl2": {
"tooltip-format": "<tt><small>{calendar}</small></tt>", "tooltip-format": "<tt><small>{calendar}</small></tt>",
@ -405,8 +402,8 @@
"days": "<span color='#cad3f5'><b>{}</b></span>", "days": "<span color='#cad3f5'><b>{}</b></span>",
"weeks": "<span color='#8aadf4'><b>W{}</b></span>", "weeks": "<span color='#8aadf4'><b>W{}</b></span>",
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>", "weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
"today": "<span color='#ed8796'><b><u>{}</u></b></span>" "today": "<span color='#ed8796'><b><u>{}</u></b></span>",
} },
}, },
"format": "{:%H:%M  - %A, %B %d, %Y  }", "format": "{:%H:%M  - %A, %B %d, %Y  }",
"actions": { "actions": {
@ -414,9 +411,9 @@
"on-click-forward": "tz_up", "on-click-forward": "tz_up",
"on-click-backward": "tz_down", "on-click-backward": "tz_down",
"on-scroll-up": "shift_up", "on-scroll-up": "shift_up",
"on-scroll-down": "shift_down" "on-scroll-down": "shift_down",
},
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
},
}, },
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23"
}
}
] ]