1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 06:08:35 +01:00

fix .gitignore

This commit is contained in:
eoli3n 2023-07-07 19:43:14 +02:00
parent 7d8ab921ce
commit e98a9d1548
3 changed files with 84 additions and 0 deletions

4
hosts Normal file

@ -0,0 +1,4 @@
[cli]
[desktop]
osz ansible_connection=local

@ -0,0 +1,52 @@
#INCLUDE####################################################
# output configuration
set $laptop "{{ (displays | selectattr('name', 'eq', 'laptop')).0.id }}"
set $screen1 "{{ (displays | selectattr('name', 'eq', 'screen1')).0.id }}"
set $screen2 "{{ (displays | selectattr('name', 'eq', 'screen2')).0.id }}"
# toggle proj
bindsym --no-repeat $mod+p output $screen2 toggle
bindsym --no-repeat $mod+Shift+p output $screen2 toggle; output $laptop toggle
# start kanshi
exec_always "pkill kanshi; kanshi"
# dpms
output * dpms on
# turn of screen when laptop closed
bindswitch --reload lid:on output $laptop disable
bindswitch --reload lid:off output $laptop enable
# assign workspace to screens
workspace $tag1 output $screen1
workspace $tag2 output $screen1
workspace $tag3 output $screen1
workspace $tag4 output $laptop
workspace $tag5 output $screen1
workspace $tag6 output $laptop
workspace $tag7 output $laptop
workspace $tag8 output $laptop
workspace $tag9 output $laptop
workspace $tag10 output $laptop
# laptop bindsyms
bindsym XF86AudioRaiseVolume exec pamixer -ui 5 && \
pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86AudioLowerVolume exec pamixer -ud 5 && \
pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86AudioMute exec pamixer --toggle-mute && \
( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || \
pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86AudioMicMute exec amixer set Capture toggle
bindsym XF86MonBrightnessUp exec brightnessctl set +10% && \
brightnessctl -m | cut -d',' -f4 | tr -d '%' > $SWAYSOCK.wob
bindsym XF86MonBrightnessDown exec brightnessctl set 10%- && \
brightnessctl -m | cut -d',' -f4 | tr -d '%' > $SWAYSOCK.wob
# autostart per host
# syncthing
exec_always bash -c "pgrep -x syncthing || syncthing"
# pipewire
exec_always bash -c "pgrep -x pipewire || pipewire"
#INCLUDE####################################################

@ -0,0 +1,28 @@
#INCLUDE####################################################
# output configuration
set $laptop "{{ (displays | selectattr('name', 'eq', 'laptop')).0.id }}"
set $screen1 "{{ (displays | selectattr('name', 'eq', 'screen1')).0.id }}"
set $screen2 "{{ (displays | selectattr('name', 'eq', 'screen2')).0.id }}"
# dpms
output * dpms on
# turn of screen when laptop closed
bindswitch --reload lid:on output $laptop disable
bindswitch --reload lid:off output $laptop enable
# assign workspace to screens
workspace $tag1 output $screen1
workspace $tag2 output $screen1
workspace $tag3 output $screen2
workspace $tag4 output $laptop
workspace $tag5 output $screen2
workspace $tag6 output $screen2
workspace $tag7 output $screen1
workspace $tag8 output $screen1
workspace $tag9 output $laptop
workspace $tag10 output $laptop
# syncthing
exec_always bash -c "pgrep -x syncthing || syncthing"
#INCLUDE####################################################