diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-10-03 23:21:15 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-10-03 23:21:15 +0200 |
| commit | fa5dd5f3c014a250b1748c340255d8b4d0b7d773 (patch) | |
| tree | b923aabfdfd4e46fe8c0a42164dc78ceb5435217 /sway/init.sh | |
| parent | 112a38a0d4f3debab29749352c61968bee98e477 (diff) | |
.
Diffstat (limited to 'sway/init.sh')
| -rwxr-xr-x | sway/init.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sway/init.sh b/sway/init.sh new file mode 100755 index 0000000..c854d80 --- /dev/null +++ b/sway/init.sh @@ -0,0 +1,29 @@ +#!/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 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 |
