From 51e9bd706830e920bc375983ab8599335a4ae37b Mon Sep 17 00:00:00 2001 From: GrafMonteCarlo <53829166+vailrahmatulin@users.noreply.github.com> Date: Tue, 21 May 2024 18:47:30 +0700 Subject: Update UserKeybinds.conf Assigning the Alt+Shift keys to trigger the script SwitchKeyboardLayouts.sh --- config/hypr/UserConfigs/UserKeybinds.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/UserConfigs/UserKeybinds.conf') diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index eede1669..7026084d 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -27,7 +27,7 @@ bind = $mainMod, Z, exec, pypr zoom # Toggle Zoom # User Added Keybinds bind = $mainMod SHIFT, O, exec, $UserScripts/ZshChangeTheme.sh # Change oh-my-zsh theme - +bindn = ALT_L, SHIFT_L, exec, $scriptsDir/SwitchKeyboardLayout.sh # For passthrough keyboard into a VM # bind = $mainMod ALT, P, submap, passthru #submap = passthru -- cgit v1.2.3 From 543ac255b7387dd0d45d9b1dd8cbef78d49263dc Mon Sep 17 00:00:00 2001 From: GrafMonteCarlo <53829166+vailrahmatulin@users.noreply.github.com> Date: Tue, 21 May 2024 18:49:21 +0700 Subject: Update UserKeybinds.conf Assigning the Alt+Shift keys to trigger the script SwitchKeyboardLayouts.sh --- config/hypr/UserConfigs/UserKeybinds.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/hypr/UserConfigs/UserKeybinds.conf') diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 7026084d..9858558f 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -27,7 +27,8 @@ bind = $mainMod, Z, exec, pypr zoom # Toggle Zoom # User Added Keybinds bind = $mainMod SHIFT, O, exec, $UserScripts/ZshChangeTheme.sh # Change oh-my-zsh theme -bindn = ALT_L, SHIFT_L, exec, $scriptsDir/SwitchKeyboardLayout.sh +bindn = ALT_L, SHIFT_L, exec, $scriptsDir/SwitchKeyboardLayout.sh # Changing the keyboard layout + # For passthrough keyboard into a VM # bind = $mainMod ALT, P, submap, passthru #submap = passthru -- cgit v1.2.3 From 877fd77aa557e036989bfa191e634b25089fecf1 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 23 May 2024 12:59:18 +0900 Subject: Move rofi-qalculate to userconfigs - keybinds --- config/hypr/UserConfigs/UserKeybinds.conf | 4 +++- config/hypr/UserConfigs/WindowRules.conf | 1 + config/hypr/configs/Keybinds.conf | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'config/hypr/UserConfigs/UserKeybinds.conf') diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 9858558f..f3d03df8 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -19,7 +19,9 @@ bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,r bind = $mainMod, A, exec, pkill rofi || true && ags -t 'overview' bind = $mainMod, Return, exec, $term # Launch terminal -bind = $mainMod, T, exec, $files +bind = $mainMod, T, exec, $files # Launch file manager + +bind = $mainMod ALT, C, exec, $scriptsDir/RofiCalc.sh # calculator (qalculate) # pyprland bind = $mainMod SHIFT, Return, exec, pypr toggle term # Dropdown terminal diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index 65e44e98..3a04ba3b 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -43,6 +43,7 @@ windowrulev2 = float, class:^(file-roller|org.gnome.FileRoller)$ # archive manag windowrulev2 = float, class:^([Bb]aobab|org.gnome.[Bb]aobab)$ # Disk usage analyzer windowrulev2 = float, title:(Kvantum Manager) windowrulev2 = float, class:^([Ss]team)$,title:^((?![Ss]team).*|[Ss]team [Ss]ettings)$ +windowrulev2 = float, class:^([Qq]alculate-gtk)$ # windowrule v2 - position windowrulev2 = center, class:([Tt]hunar), title:(File Operation Progress) diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 16155903..142de86a 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -23,7 +23,6 @@ bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh # Small help file bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh # emoji -bind = $mainMod ALT, C, exec, $scriptsDir/RofiCalc.sh # calculator (qalculate) bind = $mainMod, S, exec, $scriptsDir/RofiSearch.sh # Google search from Rofi bind = $mainMod SHIFT, B, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh # animations ON/OFF -- cgit v1.2.3 From 57121a4bddf834545613b38dfa8510a1e7060d3c Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 23 May 2024 20:27:41 +0900 Subject: RofiCalc script moved to UserScripts --- config/hypr/UserConfigs/UserKeybinds.conf | 2 +- config/hypr/UserScripts/RofiCalc.sh | 31 +++++++++++++++++++++++++++++++ config/hypr/scripts/RofiCalc.sh | 31 ------------------------------- 3 files changed, 32 insertions(+), 32 deletions(-) create mode 100755 config/hypr/UserScripts/RofiCalc.sh delete mode 100755 config/hypr/scripts/RofiCalc.sh (limited to 'config/hypr/UserConfigs/UserKeybinds.conf') diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index f3d03df8..85f3c1c3 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -21,7 +21,7 @@ bind = $mainMod, A, exec, pkill rofi || true && ags -t 'overview' bind = $mainMod, Return, exec, $term # Launch terminal bind = $mainMod, T, exec, $files # Launch file manager -bind = $mainMod ALT, C, exec, $scriptsDir/RofiCalc.sh # calculator (qalculate) +bind = $mainMod ALT, C, exec, $UserScripts/RofiCalc.sh # calculator (qalculate) # pyprland bind = $mainMod SHIFT, Return, exec, pypr toggle term # Dropdown terminal diff --git a/config/hypr/UserScripts/RofiCalc.sh b/config/hypr/UserScripts/RofiCalc.sh new file mode 100755 index 00000000..355130de --- /dev/null +++ b/config/hypr/UserScripts/RofiCalc.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ +# /* Calculator (using qalculate) and rofi */ +# /* Submitted by: https://github.com/JosephArmas */ + +rofi_config="$HOME/.config/rofi/config-calc.rasi" + +# Kill Rofi if already running before execution +if pgrep -x "rofi" >/dev/null; then + pkill rofi + exit 0 +fi + +# main function + +while true; do + result=$( + rofi -i -dmenu \ + -config "$rofi_config" \ + -mesg "$result = $calc_result" + ) + + if [ $? -ne 0 ]; then + exit + fi + + if [ -n "$result" ]; then + calc_result=$(qalc -t "$result") + echo "$calc_result" | wl-copy + fi +done diff --git a/config/hypr/scripts/RofiCalc.sh b/config/hypr/scripts/RofiCalc.sh deleted file mode 100755 index 355130de..00000000 --- a/config/hypr/scripts/RofiCalc.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ -# /* Calculator (using qalculate) and rofi */ -# /* Submitted by: https://github.com/JosephArmas */ - -rofi_config="$HOME/.config/rofi/config-calc.rasi" - -# Kill Rofi if already running before execution -if pgrep -x "rofi" >/dev/null; then - pkill rofi - exit 0 -fi - -# main function - -while true; do - result=$( - rofi -i -dmenu \ - -config "$rofi_config" \ - -mesg "$result = $calc_result" - ) - - if [ $? -ne 0 ]; then - exit - fi - - if [ -n "$result" ]; then - calc_result=$(qalc -t "$result") - echo "$calc_result" | wl-copy - fi -done -- cgit v1.2.3