# variables set $mod Mod4 set $left h set $down j set $up k set $right l set $term alacritty -e 'tmux' set $term_no_tmux alacritty set $menu exec tofi-drun | xargs swaymsg exec -- font pango:Iosevka Nerd Font 9 # setting the solid. # output * bg #a89984 solid_color # use this if you are into wallpapers. output * bg $HOME/.config/sway/wallpaper.jpg fill # common bindings bindsym $mod+Return exec $term bindsym $mod+Shift+Return exec $term_no_tmux bindsym $mod+d exec $menu bindsym $mod+Shift+q kill bindsym $mod+Shift+c reload bindsym $mod+Shift+e exec swaynag -t warning -m 'Exit Sway?' -B 'Yes, exit sway' 'swaymsg exit' --font="Iosevka Nerd Font" floating_modifier $mod normal # more bindings bindsym $mod+$left focus left bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus right bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right bindsym $mod+Shift+$left move left bindsym $mod+Shift+$down move down bindsym $mod+Shift+$up move up bindsym $mod+Shift+$right move right bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right bindsym $mod+1 workspace number 1 bindsym $mod+2 workspace number 2 bindsym $mod+3 workspace number 3 bindsym $mod+4 workspace number 4 bindsym $mod+5 workspace number 5 bindsym $mod+6 workspace number 6 bindsym $mod+7 workspace number 7 bindsym $mod+8 workspace number 8 bindsym $mod+9 workspace number 9 bindsym $mod+0 workspace number 10 bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+2 move container to workspace number 2 bindsym $mod+Shift+3 move container to workspace number 3 bindsym $mod+Shift+4 move container to workspace number 4 bindsym $mod+Shift+5 move container to workspace number 5 bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+7 move container to workspace number 7 bindsym $mod+Shift+8 move container to workspace number 8 bindsym $mod+Shift+9 move container to workspace number 9 bindsym $mod+Shift+0 move container to workspace number 10 bindsym $mod+Shift+v floating toggle bindsym $mod+b splith bindsym $mod+v splitv bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split bindsym $mod+f fullscreen bindsym $mod+space focus mode_toggle bindsym $mod+a focus parent bindsym $mod+r mode "resize" bindsym XF86MonBrightnessUp exec "brightnessctl set +10%" bindsym XF86MonBrightnessDown exec "brightnessctl set 10%-" mode "resize" { bindsym $left resize shrink width 20px bindsym $down resize grow height 20px bindsym $up resize shrink height 20px bindsym $right resize grow width 20px bindsym Left resize shrink width 20px bindsym Down resize grow height 20px bindsym Up resize shrink height 20px bindsym Right resize grow width 20px bindsym Return mode "default" bindsym Escape mode "default" } bar { swaybar_command waybar } # startup executions # exec swww init default_border pixel 1 default_floating_border pixel 1 # Thin borders: smart_borders on smart_gaps off ## Window decoration #class border backgr text indicator child_border client.focused #333845 #333845 #ffffff #2e9ef4 #8fbcbb client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a client.unfocused #2f343a #222222 #888888 #333845 #333845 client.urgent #2f343a #900000 #ffffff #900000 #900000 client.placeholder #000000 #0c0c0c #ffffff #000000 #333845 client.background #ffffff # swayfx config blur enable blur_passes 3 blur_radius 5 layer_effects "waybar" shadows enable; corner_radius 12 default_dim_inactive 0.1 shadows enable # window gaps gaps inner 4 gaps outer 4 # includes include /etc/sway/config.d/* include $HOME/.config/sway/config.d/*