Update sway config

This commit is contained in:
Tim Schubert 2021-01-30 15:15:35 +01:00
parent 2c2ce07568
commit bfc765f031
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
3 changed files with 13 additions and 31 deletions

View file

@ -10,6 +10,7 @@ let
"kitty" "kitty"
"keyring" "keyring"
"ssh" "ssh"
"sway"
"syncthing" "syncthing"
"tmux" "tmux"
"xdg" "xdg"

View file

@ -1,4 +1,3 @@
set $wallpaper ~/.config/nixpkgs/modules/sway/wallpaper
set $foreground #a3a3a3ff set $foreground #a3a3a3ff
set $background #1f2022e5 set $background #1f2022e5
set $dark_black #1f2022ff set $dark_black #1f2022ff
@ -32,7 +31,7 @@ bindsym $mod+Shift+r restart
# the font to be used for i3bar and window decorations # the font to be used for i3bar and window decorations
font pango:Source Code Pro 8 font pango:Source Code Pro 8
bindsym $mod+Return exec termite bindsym $mod+Return exec kitty
bindsym $mod+Space exec bemenu-run bindsym $mod+Space exec bemenu-run
# switch keyboard to neo # switch keyboard to neo
@ -107,13 +106,13 @@ workspace_layout tabbed
workspace_auto_back_and_forth yes workspace_auto_back_and_forth yes
# messaging # messaging
workspace 2 output LVDS-1 #workspace 2 output LVDS-1
# web and doc # web and doc
workspace 1 output VGA-1 #workspace 1 output VGA-1
# editor and IDE # editor and IDE
workspace 3 output DP-2 #workspace 3 output DP-2
# change focus # change focus
bindsym $mod+h focus left bindsym $mod+h focus left
@ -197,7 +196,7 @@ mode "$mode_move" {
} }
# lock the screen # lock the screen
bindsym $mod+equal exec ~/bin/lock-session bindsym $mod+equal exec lock-session
# control volume # control volume
bindsym --locked XF86AudioRaiseVolume exec amixer set 'Master' 5%+ && pkill -RTMIN+10 i3blocks bindsym --locked XF86AudioRaiseVolume exec amixer set 'Master' 5%+ && pkill -RTMIN+10 i3blocks
@ -220,7 +219,7 @@ bindsym --locked XF86MonBrightnessDown exec brightnessctl set -d intel_backlight
# Basic bar configuration using the Base16 variables. # Basic bar configuration using the Base16 variables.
bar { bar {
id bar id bar
status_command i3blocks status_command i3status
mode dock mode dock
modifier $mod modifier $mod
position bottom position bottom
@ -265,22 +264,6 @@ input 2:7:SynPS/2_Synaptics_TouchPad {
events disabled events disabled
} }
output VGA-1 {
background $wallpaper fill
pos 0 0
}
output DP-2 {
background $wallpaper fill
pos 1280 0
}
output LVDS-1 {
background $wallpaper fill
pos 3840 0
}
seat * { seat * {
hide_cursor 5000 hide_cursor 5000
} }
@ -298,9 +281,3 @@ assign [app_id="org.keepassxc.KeePassXC"] workspace 10
exec xset s off exec xset s off
exec mako exec mako
#exec swayidle -w timeout 300 '$HOME/bin/lock-session' timeout 240 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep '$HOME/bin/lock-session' lock '$HOME/bin/lock-session'
#exec redshift
#exec keepassxc
#exec firefox
#exec thunderbird
#exec riot-desktop

View file

@ -14,11 +14,15 @@ in
xwayland xwayland
mako mako
kanshi kanshi
i3blocks kitty
termite i3status
kitty
bemenu bemenu
xss-lock xss-lock
swaylock swaylock
brightnessctl
playerctl
dadadaScripts
]; ];
wayland.windowManager.sway = { wayland.windowManager.sway = {