25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

xsession.reload.fish.j2 810B

3 년 전
3 년 전
3 년 전
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/usr/bin/fish
  2. {{ansible_managed|comment}}
  3. # reset keyboard state
  4. numlockx off
  5. if [ (xset -q | sed -n 's/^.*Caps Lock:\s*\(\S*\).*$/\1/p') = "on" ]
  6. xdotool key Caps_Lock
  7. end
  8. # keymap
  9. setxkbmap de
  10. xmodmap ~/.Xmodmap
  11. setxkbmap -option caps:hyper
  12. xmodmap ~/.Xmodmap
  13. xkbset nullify lock
  14. # background
  15. xsetroot -solid black
  16. {{background_command}}
  17. # Xresources
  18. xrdb -merge ~/.Xresources
  19. # rofi
  20. rofi -theme ~/.config/rofi/theme -dump-xresources > ~/.config/rofi/config
  21. # screensaver settings
  22. xset s on
  23. xset +dpms
  24. xset s {{ lockscreen_timeout | int }} {{ lockscreen_locktime | int }}
  25. # DPMS options
  26. xset dpms {{ display_sleeptime | int }} {{ display_sleeptime | int }} {{ display_sleeptime | int }}
  27. # allow hosts
  28. {% for xhost in home_xhosts_allow %}
  29. xhost +{{xhost}}
  30. {% endfor %}
  31. # disable bell
  32. xset b off