aboutsummaryrefslogtreecommitdiff
path: root/env/.config/.profile
diff options
context:
space:
mode:
Diffstat (limited to 'env/.config/.profile')
-rwxr-xr-xenv/.config/.profile4
1 files changed, 4 insertions, 0 deletions
diff --git a/env/.config/.profile b/env/.config/.profile
index 18fa1ef..6c51c38 100755
--- a/env/.config/.profile
+++ b/env/.config/.profile
@@ -79,6 +79,10 @@ alias astro="astroterm --color --constellations --speed 10000 --fps 64 --unicode
alias anim="hyprctl keyword animations:enabled "
alias swap="hyprctl keyword input:kb_options caps:swapescape"
alias nswap="hyprctl keyword input:kb_options null"
+if [ "$XDG_CURRENT_DESKTOP" = "sway:wlroots" ]; then
+ alias swap="swaymsg 'input \"type:keyboard\" xkb_options \"caps:swapescape\"'"
+ alias nswap="swaymsg 'input \"type:keyboard\" xkb_options \"\"'"
+fi
# mounting
alias umsu="fukn umount u"