From 2a3dda49dfd0faae1cbe9dbea14bf0d40623bd6a Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Wed, 3 May 2023 23:18:40 +0200 Subject: . --- sway/init.sh | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'sway/init.sh') diff --git a/sway/init.sh b/sway/init.sh index da76f9c..c01f216 100755 --- a/sway/init.sh +++ b/sway/init.sh @@ -1,31 +1,5 @@ #!/bin/sh -mod=Mod4 -primary=eDP-1 -secondary=$(swaymsg -t get_outputs -r | - jq "map(select(.name != \"$primary\") | .name)[0]" 2> /dev/null | - tr -d "\"") - -swaymsg output $primary pos 0 0 res 1920x1080 bg ~/.pictures/bg1.jpg stretch -[ ! -z "$secondary" ] && swaymsg output $secondary pos 1920 0 bg ~/.pictures/bg2.jpg stretch - -swaymsg workspace 1:1 output $primary -swaymsg workspace 2:2 output $primary -swaymsg workspace 3:3 output $primary -swaymsg workspace 4:4 output $primary -swaymsg workspace 5:a output ${secondary:-$primary} -swaymsg workspace 6:s output ${secondary:-$primary} -swaymsg workspace 7:d output ${secondary:-$primary} -swaymsg workspace 8:f output ${secondary:-$primary} - -swaymsg input type:touchpad tap enable - -swaymsg font "pango:Inter Medium 12" -swaymsg floating_modifier $mod -swaymsg default_border pixel 4 - -swaymsg assign "[app_id=\"^tmux_term\$\"]" 9:term - # export GDK_DPI_SCALE=0.95 gsettings set org.gnome.desktop.interface scaling-factor 1 gsettings set org.gnome.desktop.interface text-scaling-factor 1 @@ -41,3 +15,9 @@ systemctl --user import-environment \ dbus-update-activation-environment --systemd --all systemctl --user restart plasma-kactivitymanagerd.service + +~/.config/sway/swayidle.sh & + +kanshi & + +waybar -c ~/.config/waybar/sway.conf & -- cgit v1.2.3-70-g09d2