From: Amin Bandali Date: Sat, 21 Jul 2018 23:04:02 +0000 (-0400) Subject: [rc] add s script for launching sway with customizations X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/ec00205049a7e8d4c3634b209833c00cf9155ebf [rc] add s script for launching sway with customizations TODO: later might want to check for hostname to decide what to do on plasma and enigma (currently, i'm only using it on plasma) --- diff --git a/rc.org b/rc.org index a63d391..2c54071 100644 --- a/rc.org +++ b/rc.org @@ -4827,6 +4827,20 @@ val=$(rofi -dmenu -mesg "light $cur" -p "light -S " -l 0 -width 12) light -S $val #+end_src +** s (run sway) +:PROPERTIES: +:header-args+: :tangle ~/.local/bin/s :shebang "#!/bin/bash" +:END: + +#+begin_src bash +export XKB_DEFAULT_OPTIONS=ctrl:nocaps,altwin:swap_alt_win,ctrl:rctrl_ralt +export _JAVA_AWT_WM_NONREPARENTING=1 +export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true' +light -Scrs "intel_backlight" 2 +source $HOME/.zprofile +sway +#+end_src + ** toggle-layout :PROPERTIES: :header-args+: :tangle ~/.local/bin/toggle-layout :shebang "#!/bin/bash"