feat(hypr): new rules and some dispatchers added to open nemo in some apps

This commit is contained in:
Sergio Laín 2023-11-19 12:24:05 +01:00
parent 61217e6904
commit b6a7cc9550
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
6 changed files with 21 additions and 16 deletions

View file

@ -47,7 +47,7 @@ case $app in
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 13] kitty hyprctl dispatch exec [workspace 13] kitty
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec "[workspace 24] kitty --class center-float" hyprctl dispatch exec "[workspace 24] kitty --class center-float-large"
else else
kitty kitty
fi fi

View file

@ -1,7 +1,12 @@
## Base Rules ## Base Rules
$center-float = class:^(center-float)$|^(.*file-roller.*)$|^(Geeqie)$|^(.*celluloid.*)$ $center-float-large = class:^(center-float-large)$|^(Geeqie)$|^(.*celluloid.*)$
windowrulev2 = float,$center-float-large
windowrulev2 = size 70% 70%,$center-float-large
windowrulev2 = center 1,$center-float-large
$center-float = class:^(center-float)$|^(.*file-roller.*)$
windowrulev2 = float,$center-float windowrulev2 = float,$center-float
windowrulev2 = size 70% 70%,$center-float windowrulev2 = size 50% 50%,$center-float
windowrulev2 = center 1,$center-float windowrulev2 = center 1,$center-float
$center-float-mini = class:^(center-float-mini)$|^(.*galculator.*)$|^(.*ytdlp-gui.*)$ $center-float-mini = class:^(center-float-mini)$|^(.*galculator.*)$|^(.*ytdlp-gui.*)$

View file

@ -1935,7 +1935,7 @@ map kitty_mod+x open_url_with_hints
#: Open with file manager #: Open with file manager
map kitty_mod+e launch --type=background --cwd=current sh -c "nemo $(pwd)" map kitty_mod+e launch --type=background --cwd=current sh -c 'hyprctl dispatch exec "[float; size 60% 60%; center 1] nemo" $(pwd)'
#: Insert selected path #: Insert selected path

View file

@ -43,8 +43,8 @@
}, },
"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": "kitty --class center-float yay -Syu", "on-click": "kitty --class center-float-large yay -Syu",
"on-click-right": "kitty --class center-float topgrade" "on-click-right": "kitty --class center-float-large topgrade"
}, },
"custom/arch": { "custom/arch": {
"format": "  ", "format": "  ",
@ -199,7 +199,7 @@
"source": "auto", "source": "auto",
"stereo": true, "stereo": true,
"waves": false, "waves": false,
"on-click": "kitty --class center-float-mini cava", "on-click": "kitty --class center-float-large-mini cava",
"on-click-right": "qpwgraph" "on-click-right": "qpwgraph"
}, },
"custom/music": { "custom/music": {
@ -425,27 +425,27 @@
"sort-by-number": true "sort-by-number": true
}, },
"cpu": { "cpu": {
"on-click": "kitty --class center-float 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 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 btop", "on-click": "kitty --class center-float-large btop",
"tooltip": true, "tooltip": true,
"interval": 2 "interval": 2
}, },
"temperature": { "temperature": {
"critical-threshold": 80, "critical-threshold": 80,
"on-click": "kitty --class center-float btop", "on-click": "kitty --class center-float-large btop",
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"format-critical": "{icon} {temperatureC}°C", "format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
@ -455,7 +455,7 @@
}, },
"custom/gpu-temp": { "custom/gpu-temp": {
"exec": "cat /sys/class/hwmon/hwmon1/temp1_input | cut -b 1-2", "exec": "cat /sys/class/hwmon/hwmon1/temp1_input | cut -b 1-2",
"on-click": "kitty --class center-float nvtop", "on-click": "kitty --class center-float-large nvtop",
"format": " {}°C", "format": " {}°C",
"return-type": "", "return-type": "",
"interval": 2 "interval": 2

View file

@ -36,8 +36,8 @@ syntect_theme = "~/.config/bat/themes/Catppuccin-macchiato.tmTheme"
# : Status {{{ # : Status {{{
[status] [status]
separator_open = "" separator_open = ""
separator_close = "" separator_close = ""
separator_style = { fg = "#494d64", bg = "#494d64" } separator_style = { fg = "#494d64", bg = "#494d64" }
# Mode # Mode

View file

@ -14,7 +14,7 @@ cache_dir = ""
[opener] [opener]
folder = [ folder = [
{ exec = 'hyprctl dispatch exec "[float] nemo" "$@"', desc = "Open in GUI File Manager" }, { exec = 'hyprctl dispatch exec "[float; size 60% 60%; center 1] nemo" "$@"', desc = "Open in GUI File Manager" },
{ exec = '$EDITOR "$@"' }, { exec = '$EDITOR "$@"' },
] ]
archive = [{ exec = 'file-roller "$1"', desc = "Extract here" }] archive = [{ exec = 'file-roller "$1"', desc = "Extract here" }]