From 99d880a797367026b9a416e5731ecf778695a527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 20 Dec 2023 16:40:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(rofi):=20add=20th?= =?UTF-8?q?eme=20to=20the=20default=20so=20it=20can=20be=20called=20by=20d?= =?UTF-8?q?efault=20using=20only=20the=20rofi=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/configs/binds.conf | 4 ++-- .config/hypr/scripts/rofi/keybindings | 2 +- .config/hypr/scripts/rofi/recording | 4 ++-- .config/hypr/scripts/rofi/screenshots_selection | 2 +- .config/hypr/scripts/wallpaper | 2 +- .config/rofi/config.rasi | 1 + 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.config/hypr/configs/binds.conf b/.config/hypr/configs/binds.conf index 4c2f16cc..0891a796 100644 --- a/.config/hypr/configs/binds.conf +++ b/.config/hypr/configs/binds.conf @@ -23,7 +23,7 @@ bind = SUPER, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch nvim bind = SUPERSHIFT, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch neovide # Launchers -bind = SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab +bind = SUPER, 23, exec, rofi -show drun # Tab # Scratchpads bind = SUPER, V, exec, pypr toggle volume @@ -41,7 +41,7 @@ bind = CTRL, INSERT, exec, hyprshot -m region -o ~/Imagenes/Capturas/PC -f captu bind = ALT, INSERT, exec, ~/.config/hypr/scripts/rofi/screenshots_selection # Clipboard -bind = SUPER, Y, exec, cliphist list | rofi -dmenu -theme ~/.config/rofi/style.rasi | cliphist decode | wl-copy +bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy # Logout menu bind = SUPER, ESCAPE, exec, wleave diff --git a/.config/hypr/scripts/rofi/keybindings b/.config/hypr/scripts/rofi/keybindings index 25cbab34..aad1d81d 100755 --- a/.config/hypr/scripts/rofi/keybindings +++ b/.config/hypr/scripts/rofi/keybindings @@ -1,4 +1,4 @@ #!/usr/bin/bash -CONFIG=$(rofi -show file-browser-extended -theme ~/.config/rofi/style.rasi -file-browser-stdout -file-browser-dir "$HOME"/.config/keyb/bindings) +CONFIG=$(rofi -show file-browser-extended -file-browser-stdout -file-browser-dir "$HOME"/.config/keyb/bindings) hyprctl dispatch exec "[float;size 35% 80%;center 1] kitty keyb -k '$CONFIG'" diff --git a/.config/hypr/scripts/rofi/recording b/.config/hypr/scripts/rofi/recording index 8778199c..d3096f07 100755 --- a/.config/hypr/scripts/rofi/recording +++ b/.config/hypr/scripts/rofi/recording @@ -13,9 +13,9 @@ wf-recorder_check() { wf-recorder_check -SCREEN=$(echo "$(hyprctl monitors | awk '/^Monitor/ {print $2} END { print "selection" }')" | rofi -dmenu -theme ~/.config/rofi/style.rasi) +SCREEN=$(echo "$(hyprctl monitors | awk '/^Monitor/ {print $2} END { print "selection" }')" | rofi -dmenu) -AUDIO=$(echo "$(pactl list sources | grep Name | grep -v easyeffects | awk -F ": " '{print $2}' | awk '{$1=$1};1')" | rofi -dmenu -theme ~/.config/rofi/style.rasi) +AUDIO=$(echo "$(pactl list sources | grep Name | grep -v easyeffects | awk -F ": " '{print $2}' | awk '{$1=$1};1')" | rofi -dmenu) VID="$HOME/Videos/Escritorio/$(date +%Y-%m-%d-%s).mp4" diff --git a/.config/hypr/scripts/rofi/screenshots_selection b/.config/hypr/scripts/rofi/screenshots_selection index 92edac17..c23d1ed3 100755 --- a/.config/hypr/scripts/rofi/screenshots_selection +++ b/.config/hypr/scripts/rofi/screenshots_selection @@ -2,6 +2,6 @@ IMAGE_DIR="$HOME/Imagenes/Capturas/PC/" -SELECTION=$(ls -t "$IMAGE_DIR" | rofi -show file-browser-extended -file-browser-stdin -theme ~/.config/rofi/style.rasi -file-browser-stdout -file-browser-dir "$IMAGE_DIR") +SELECTION=$(ls -t "$IMAGE_DIR" | rofi -show file-browser-extended -file-browser-stdin -file-browser-stdout -file-browser-dir "$IMAGE_DIR") swappy -f "$SELECTION" diff --git a/.config/hypr/scripts/wallpaper b/.config/hypr/scripts/wallpaper index 98252789..98d2bac3 100755 --- a/.config/hypr/scripts/wallpaper +++ b/.config/hypr/scripts/wallpaper @@ -8,7 +8,7 @@ if [ "$mode" = "" ]; then fi if [ "$mode" == "select" ]; then - IMAGE=$(rofi -show file-browser-extended -theme ~/.config/rofi/style.rasi -file-browser-stdout -file-browser-dir "$HOME"/.config/hypr/themes/luna/walls/) + IMAGE=$(rofi -show file-browser-extended -file-browser-stdout -file-browser-dir "$HOME"/.config/hypr/themes/luna/walls/) if [ "$IMAGE" = "" ]; then exit 1 diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index d8eef07c..486cacbf 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -85,3 +85,4 @@ configuration { delay: 0; } } +@theme "style"