From dd659ada452d039501de5d18b97ce16b13db7282 Mon Sep 17 00:00:00 2001 From: MichelleDB <69michelledb@gmail.com> Date: Wed, 30 Apr 2025 15:34:35 +0200 Subject: fix: Fix ScreenShot.sh to check xdg-user-dir PICTURES --- config/hypr/scripts/ScreenShot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh index 90e2dfd2..0a37c7e4 100755 --- a/config/hypr/scripts/ScreenShot.sh +++ b/config/hypr/scripts/ScreenShot.sh @@ -4,7 +4,7 @@ # variables time=$(date "+%d-%b_%H-%M-%S") -dir="$(xdg-user-dir)/Pictures/Screenshots" +dir="$(xdg-user-dir PICTURES)/Screenshots" file="Screenshot_${time}_${RANDOM}.png" iDIR="$HOME/.config/swaync/icons" -- cgit v1.2.3 From 2c59d4521a9a610a590876db94b176afeb5b26d8 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 21 May 2025 00:07:51 +0900 Subject: some minor fixes on the user default --- config/hypr/UserConfigs/UserKeybinds.conf | 6 ++++-- config/hypr/scripts/WaybarScripts.sh | 3 +++ config/waybar/ModulesCustom | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 3358e07a..871f2ffb 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -7,10 +7,12 @@ # /* ---- ✴️ Variables ✴️ ---- */ # $mainMod = SUPER -$files = thunar -$term = kitty $scriptsDir = $HOME/.config/hypr/scripts $UserScripts = $HOME/.config/hypr/UserScripts +$UserConfigs = $HOME/.config/hypr/UserConfigs + +# settings for User defaults apps - set your default terminal and file manager on this file +source= $UserConfigs/01-UserDefaults.conf # common shortcuts #bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu diff --git a/config/hypr/scripts/WaybarScripts.sh b/config/hypr/scripts/WaybarScripts.sh index 32b43f02..24f54699 100755 --- a/config/hypr/scripts/WaybarScripts.sh +++ b/config/hypr/scripts/WaybarScripts.sh @@ -32,10 +32,13 @@ elif [[ "$1" == "--nmtui" ]]; then $term nmtui elif [[ "$1" == "--term" ]]; then $term & +elif [[ "$1" == "--files" ]]; then + $files & else echo "Usage: $0 [--btop | --nvtop | --nmtui | --term]" echo "--btop : Open btop in a new term" echo "--nvtop : Open nvtop in a new term" echo "--nmtui : Open nmtui in a new term" echo "--term : Launch a term window" + echo "--files : Launch a file manager" fi diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index bde9bbc2..088cea1c 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -19,7 +19,7 @@ "custom/file_manager": { "format": " ", - "on-click": "xdg-open . &", + "on-click": "$HOME/.config/hypr/scripts/WaybarScripts.sh --files", "tooltip": true, "tooltip-format": "File Manager", }, -- cgit v1.2.3 From c14722aa5ecce0783b82945646ffde87413caceb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 21 May 2025 00:07:39 +0900 Subject: some minor fixes on the user defaults --- config/hypr/UserConfigs/UserKeybinds.conf | 6 ++++-- config/hypr/scripts/WaybarScripts.sh | 5 ++++- config/waybar/ModulesCustom | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 3358e07a..871f2ffb 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -7,10 +7,12 @@ # /* ---- ✴️ Variables ✴️ ---- */ # $mainMod = SUPER -$files = thunar -$term = kitty $scriptsDir = $HOME/.config/hypr/scripts $UserScripts = $HOME/.config/hypr/UserScripts +$UserConfigs = $HOME/.config/hypr/UserConfigs + +# settings for User defaults apps - set your default terminal and file manager on this file +source= $UserConfigs/01-UserDefaults.conf # common shortcuts #bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu diff --git a/config/hypr/scripts/WaybarScripts.sh b/config/hypr/scripts/WaybarScripts.sh index 32b43f02..7b3aaba2 100755 --- a/config/hypr/scripts/WaybarScripts.sh +++ b/config/hypr/scripts/WaybarScripts.sh @@ -32,10 +32,13 @@ elif [[ "$1" == "--nmtui" ]]; then $term nmtui elif [[ "$1" == "--term" ]]; then $term & +elif [[ "$1" == "--files" ]]; then + $files & else echo "Usage: $0 [--btop | --nvtop | --nmtui | --term]" echo "--btop : Open btop in a new term" echo "--nvtop : Open nvtop in a new term" echo "--nmtui : Open nmtui in a new term" echo "--term : Launch a term window" -fi + echo "--files : Launch a file manager" +fi \ No newline at end of file diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index bde9bbc2..088cea1c 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -19,7 +19,7 @@ "custom/file_manager": { "format": " ", - "on-click": "xdg-open . &", + "on-click": "$HOME/.config/hypr/scripts/WaybarScripts.sh --files", "tooltip": true, "tooltip-format": "File Manager", }, -- cgit v1.2.3