Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set the modkey.
- set $mod Mod1
- # Set the font.
- font pango:DejaVa Sans Mono 13
- # Set the floating modifier.
- floating_modifier $mod
- # Set the terminal.
- bindsym $mod+Return exec alacritty
- # Kill the focused window.
- bindsym $mod+Shift+q kill
- # Set the program launcher to dmenu.
- bindsym $mod+d exec dmenu_run
- # Lock the screen.
- bindsym $mod+Pause exec ricelock
- # Screenshot.
- bindsym Print exec grim -g "$(slurp)" - | wl-copy
- # Change the focus.
- bindsym $mod+h focus left
- bindsym $mod+j focus down
- bindsym $mod+k focus up
- bindsym $mod+l focus right
- # Move the focused window.
- bindsym $mod+Shift+h move left
- bindsym $mod+Shift+j move down
- bindsym $mod+Shift+k move up
- bindsym $mod+Shift+l move right
- # Split in horitizontal orientation.
- bindsym $mod+b split h
- # Split in vertical orientation.
- bindsym $mod+v split v
- # Enter fullscreen mode for the focused container.
- bindsym $mod+f fullscreen toggle
- # Change container layout.
- bindsym $mod+s layout stacking
- bindsym $mod+w layout tabbed
- bindsym $mod+e layout toggle split
- # Toggle between tiling and floating.
- bindsym $mod+Shift+space floating toggle
- # Change focus between tiling and floating windows.
- bindsym $mod+space focus mode_toggle
- # Focus the parent container.
- bindsym $mod+a focus parent
- # Switch to workspace.
- bindsym $mod+1 workspace 1
- bindsym $mod+2 workspace 2
- bindsym $mod+3 workspace 3
- bindsym $mod+4 workspace 4
- bindsym $mod+5 workspace 5
- bindsym $mod+6 workspace 6
- bindsym $mod+7 workspace 7
- bindsym $mod+8 workspace 8
- bindsym $mod+9 workspace 9
- bindsym $mod+0 workspace 10
- # Move focused container to workspace.
- bindsym $mod+Shift+1 move container to workspace 1
- bindsym $mod+Shift+2 move container to workspace 2
- bindsym $mod+Shift+3 move container to workspace 3
- bindsym $mod+Shift+4 move container to workspace 4
- bindsym $mod+Shift+5 move container to workspace 5
- bindsym $mod+Shift+6 move container to workspace 6
- bindsym $mod+Shift+7 move container to workspace 7
- bindsym $mod+Shift+8 move container to workspace 8
- bindsym $mod+Shift+9 move container to workspace 9
- bindsym $mod+Shift+0 move container to workspace 10
- # Auto load applications in certain workspaces.
- assign [class="Firefox"] 1
- assign [class="keepassxc"] 2
- # Reload the configuration file.
- bindsym $mod+Shift+c reload
- # Restart sway inplace.
- bindsym $mod+Shift+r reload
- # Exit sway.
- bindsym $mod+Shift+e exit
- # Resize window.
- bindsym $mod+r mode "resize"
- mode "resize" {
- bindsym l resize shrink width 10 px or 10 ppt
- bindsym k resize grow height 10 px or 10 ppt
- bindsym j resize shrink height 10 px or 10 ppt
- bindsym h resize grow width 10 px or 10 ppt
- bindsym $mod+r mode "default"
- }
- # Bar.
- bar {
- tray_output none
- status_command i3blocks -c ~/projects/arch_rice/sway/i3blocks.conf
- colors {
- background "#2f343f"
- }
- }
- # Alsa audio controls.
- bindsym XF86AudioRaiseVolume exec amixer -q sset Master 5%+
- bindsym XF86AudioLowerVolume exec amixer -q sset Master 5%-
- bindsym XF86AudioMute exec amixer -q sset Master toggle
- # Sreen brightness controls.
- bindsym XF86MonBrightnessUp exec light -A 5
- bindsym XF86MonBrightnessDown exec light -U 5
- # Set background.
- output * background ~/pictures/wallpaper.png fill
- # Disable window titlebars.
- default_border none
- # TODO: is this bad?
- # Enable numlock.
- input * xkb_numlock enabled
- # Enable tap to click.
- input * tap enabled
- # Gaps.
- gaps inner 15
- # Enable lock on sleep.
- exec xss-lock ricelock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement