update sway config

This commit is contained in:
dalahast 2020-09-07 17:55:24 +02:00
parent 74567d5e23
commit 6eb54a8c8b
Signed by: dalahast
GPG Key ID: 504A02165E7FA6B2

@ -14,11 +14,11 @@ set {
$menu wofi --show drun | xargs swaymsg exec -- $menu wofi --show drun | xargs swaymsg exec --
$runmenu wofi --show run | xargs swaymsg exec -- $runmenu wofi --show run | xargs swaymsg exec --
$gnome-schema org.gnome.desktop.interface $gnome-schema org.gnome.desktop.interface
$gtk_theme "Adapta-Nokto-Eta" $gtk_theme "Matcha-dark-azul"
$icon_theme "Papirus-Dark" $icon_theme "Papirus-Dark"
$bg ~/Pictures/drain.jpg $bg ~/Pictures/drain.jpg
#$lockscreen exec '~/.local/bin/lockscreen' $lockscreen exec '~/.local/bin/lockscreen'
$lockscreen 'swaylock --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 10 --effect-blur 7x5 --effect-vignette 0.4:0.4 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2' #$lockscreen 'swaylock --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 10 --effect-blur 7x5 --effect-vignette 0.4:0.4 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2'
# Heads # Heads
$primary eDP-1 $primary eDP-1
} }
@ -28,20 +28,27 @@ set {
# #
exec_always --no-startup-id { exec_always --no-startup-id {
pkill flashfocus pkill flashfocus
pkill autotiling
pkill play-with-mpv
eval $(/usr/bin/gnome-keyring-daemon --start --components=ssh)
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
gsettings set $gnome-schema gtk-theme $gtk_theme gsettings set $gnome-schema gtk-theme $gtk_theme
gsettings set $gnome-schema icon-theme $icon_theme gsettings set $gnome-schema icon-theme $icon_theme
gsettings set $gnome-schema font-name 'Cantarell 10' gsettings set $gnome-schema font-name 'Cantarell 10'
gsettings set $gnome-schema monospace-font-name 'Anka/Coder 11' gsettings set $gnome-schema monospace-font-name 'Anka/Coder 11'
mako --anchor top-right > /tmp/mako.log 2>&1 mako --anchor top-right > /tmp/mako.log 2>&1
flashfocus flashfocus
autotiling
play-with-mpv
evolution evolution
telegram-desktop Telegram
swaymsg focus output $primary swaymsg focus output $primary
swaymsg input 2:7:SynPS/2_Synaptics_TouchPad events disabled swaymsg input 2:7:SynPS/2_Synaptics_TouchPad events disabled
swayidle -w timeout 1200 exec $lockscreen\ }
timeout 1201 'swaymsg "output * dpms off"'\
resume 'swaymsg "output * dpms on"'\ exec_always {
before-sleep exec $lockscreen swayidle -w timeout 1200 "$lockscreen"\
before-sleep "$lockscreen"
} }
# #
@ -85,10 +92,10 @@ output * bg $bg fill
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# 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 'Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Shift+e exec wlogout #swaynag -t warning -m 'Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
#Lock the session #Lock the session
bindsym Control+Shift+l exec $lockscreen bindsym Control+Alt+l $lockscreen
# #
# Program shortcuts # Program shortcuts
@ -141,7 +148,7 @@ bindsym {
bindsym $mod+9 workspace 9 bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10 bindsym $mod+0 workspace 10
bindsym $mod+t workspace comm bindsym $mod+t workspace 11:comm
bindsym $mod+m workspace M bindsym $mod+m workspace M
# Move focused container to workspace # Move focused container to workspace
@ -175,8 +182,9 @@ bindsym {
# Assign programs to workspaces # Assign programs to workspaces
assign [app_id="evolution"] comm assign [app_id="evolution"] 11:comm
assign [instance="telegram-desktop"] comm assign [app_id="telegramdesktop"] 11:comm
assign [instance="Telegram"] 11:comm
assign [title="nmtui"] net assign [title="nmtui"] net
# #
@ -204,6 +212,7 @@ assign [title="nmtui"] net
# Move focus to the parent container # Move focus to the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
bindsym $mod+Shift+a focus child
# #
# Media keys and screenshots # Media keys and screenshots
@ -306,6 +315,7 @@ bar {
# Window settings # Window settings
# #
for_window [class="Brave-browser"] inhibit_idle focus; layout tabbed for_window [class="Brave-browser"] inhibit_idle focus; layout tabbed
for_window [app_id="firefox"] inhibit_idle focus; layout tabbed
# #
# Floating windows # Floating windows
# #
@ -318,13 +328,13 @@ for_window [title="ImageMagick.*"] {
border normal $border border normal $border
title_format " %title" title_format " %title"
} }
#for_window [title="nmtui"] { for_window [title="nmtui"] {
# border normal $border border normal $border
# resize set width 882 resize set width 882
# resize set height 600 resize set height 600
# floating enable floating enable
#} }
for_window [class="TelegramDesktop"] { for_window [app_id="telegramdesktop"] {
resize set width 600px resize set width 600px
} }
for_window [app_id="nm-connection-editor"] { for_window [app_id="nm-connection-editor"] {
@ -337,7 +347,7 @@ for_window [app_id="pavucontrol"] {
resize set width 882px resize set width 882px
resize set height 600px resize set height 600px
} }
for_window [title="Calculator"] floating enable; border pixel 2 for_window [title="Calculator"] floating enable; border pixel 2