diff options
| -rw-r--r-- | .config/hypr/hyprland.conf | 5 | ||||
| -rwxr-xr-x | .local/bin/chooseprofile | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 247bd65..d626647 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,5 +1,5 @@ -monitor = DP-3, 3840x2160@165, 0x0, 1.5, bitdepth, 10 -# monitor = DP-3, 3840x2160@165, 0x0, 1.5 +# monitor = DP-3, 3840x2160@165, 0x0, 1.5, bitdepth, 10 +monitor = DP-3, 3840x2160@165, 0x0, 1.5 monitor = DP-2, 2560x1440@165, -2560x0, 1 $terminal = footclient @@ -191,6 +191,7 @@ bind = $mainMod SHIFT, minus, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-; bind = $mainMod, equal, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; pkill -RTMIN+10 waybar bind = $mainMod SHIFT, equal, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+; pkill -RTMIN+10 waybar bind = $mainMod SHIFT, M, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; pkill -RTMIN+10 waybar +bind = $mainMod, Tab, exec, chooseprofile bind = $mainMod, F1, exec, singboxwrap menu bind = $mainMod, F2, exec, killall waybar & hyprctl dispatch exec waybar bind = $mainMod, F4, exec, $terminal -e pulsemixer diff --git a/.local/bin/chooseprofile b/.local/bin/chooseprofile new file mode 100755 index 0000000..083c263 --- /dev/null +++ b/.local/bin/chooseprofile @@ -0,0 +1,12 @@ +#!/bin/sh + +profiles=$(awk -F= '/^\[Profile/ {profile=$1} /Name/ && !/default/ {print $2}' ~/.mozilla/icecat/profiles.ini) + +profile=$(echo "$profiles" | mew -p "Select IceCat Profile" -l 10) + +if [ -z "$profile" ] || ! echo "$profiles" | rg -q "^$profile$"; then + echo "Invalid selection or no profile selected. Exiting." + exit 1 +fi + +hyprctl dispatch exec "icecat -P $profile" |