mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 15:01:59 +01:00
fix .gitignore
This commit is contained in:
parent
7d8ab921ce
commit
e98a9d1548
4
hosts
Normal file
4
hosts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[cli]
|
||||||
|
[desktop]
|
||||||
|
osz ansible_connection=local
|
||||||
|
|
52
roles/sway/templates/hosts/sway/osz/config.j2
Normal file
52
roles/sway/templates/hosts/sway/osz/config.j2
Normal file
@ -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####################################################
|
28
roles/sway/templates/hosts/sway/work/config.j2
Normal file
28
roles/sway/templates/hosts/sway/work/config.j2
Normal file
@ -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####################################################
|
Loading…
Reference in New Issue
Block a user