Add Kanshi

This commit is contained in:
2023-09-21 09:06:11 +02:00
parent 81126619d8
commit d03449b8dd
2 changed files with 23 additions and 2 deletions

15
.config/kanshi/config Normal file
View File

@@ -0,0 +1,15 @@
profile laptop {
output 'Unknown 0x0056 0x00000000' enable
}
profile work {
output 'Unknown 0x0056 0x00000000' enable scale 1.2 position 0,0
output 'Dell Inc. DELL P2419H 1857ZT2' enable position 1920,0
output 'Dell Inc. DELL P2419H HJ47ZT2' enable position 3840,0
}
profile work-no-laptop {
output 'Dell Inc. DELL P2419H 1857ZT2' enable position 1920,0
output 'Dell Inc. DELL P2419H HJ47ZT2' enable position 3840,0
}

View File

@@ -81,13 +81,19 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# Exit sway (logs you out of your Wayland session) # Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
### Laptop screen open / close
bindswitch --reload lid:on output eDP-1 disabel
bindswitch --reload lid:off output eDP-1 enable
exec kanshi
bar { bar {
swaybar_command waybar swaybar_command waybar
} }
#Wait 1s some icons don't appear otherwise #Wait 1s some icons don't appear otherwise
exec sleep 1s exec sleep 2s
exec nextcloud --background
exec blueman-applet exec blueman-applet
exec nm-applet --indicator exec nm-applet --indicator
exec nextcloud --background
exec rocketchat-desktop --start-hidden exec rocketchat-desktop --start-hidden