From d03449b8dd66721ea756b4891b27f68957309b03 Mon Sep 17 00:00:00 2001 From: Florestan Bredow Date: Thu, 21 Sep 2023 09:06:11 +0200 Subject: [PATCH] Add Kanshi --- .config/kanshi/config | 15 +++++++++++++++ .config/sway/config | 10 ++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .config/kanshi/config diff --git a/.config/kanshi/config b/.config/kanshi/config new file mode 100644 index 0000000..0fab1f1 --- /dev/null +++ b/.config/kanshi/config @@ -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 +} diff --git a/.config/sway/config b/.config/sway/config index ce65fab..57306d8 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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) 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 { swaybar_command waybar } #Wait 1s some icons don't appear otherwise -exec sleep 1s +exec sleep 2s +exec nextcloud --background exec blueman-applet exec nm-applet --indicator -exec nextcloud --background exec rocketchat-desktop --start-hidden