Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Variables
- # Logo key. Use Mod1 for Alt.
- set $mod Mod4
- set $left Left
- set $right Right
- set $up Up
- set $down Down
- # Your preferred terminal emulator
- set $term foot
- # Your preferred application launcher
- # Note: pass the final command to swaymsg so that the resulting window can be opened
- # on the original workspace that the command was run on.
- set $menu dmenu_path | wmenu | xargs swaymsg exec --
- ### Key bindings
- #
- # Basics:
- #
- # Start a terminal
- bindsym $mod+Return exec $term
- bindsym $mod+l exec swaylock -c 000000
- bindsym $mod+b exec firefox
- bindsym $mod+c exec code
- bindsym $mod+g exec gramps
- bindsym $mod+s exec steam
- bindsym $mod+p exec pavucontrol
- bindsym $mod+n exec nvidia-settings
- bindsym $mod+w exec gwe
- bindsym $mod+e exec thunar
- # Kill focused window
- bindsym $mod+Shift+q kill
- # Start your launcher
- bindsym $mod+d exec $menu
- # Drag floating windows by holding down $mod and left mouse button.
- # Resize them with right mouse button + $mod.
- # Despite the name, also works for non-floating windows.
- # Change normal to inverse to use left mouse button for resizing and right
- # mouse button for dragging.
- floating_modifier $mod normal
- # Reload the configuration file
- bindsym $mod+Shift+c reload
- # Exit sway (logs you out of your Wayland session)
- bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
- #
- # Moving around:
- #
- # Move your focus around
- bindsym $mod+$left focus left
- bindsym $mod+$down focus down
- bindsym $mod+$up focus up
- bindsym $mod+$right focus right
- # Move the focused window with the same, but add Shift
- bindsym $mod+Shift+$left move left
- bindsym $mod+Shift+$down move down
- bindsym $mod+Shift+$up move up
- bindsym $mod+Shift+$right move right
- # monitors
- set $monitor_main "DP-3"
- set $monitor_aux "DP-2"
- # Define names for default workspaces for which we configure key bindings later on.
- # We use variables to avoid repeating the names in multiple places.
- set $ws1 "1"
- set $ws2 "2"
- set $ws3 "3"
- set $ws4 "4"
- set $ws5 "5"
- set $ws6 "6"
- set $ws7 "7"
- set $ws8 "8"
- set $ws9 "9"
- set $ws10 "10"
- workspace $ws1 output $monitor_main
- workspace $ws2 output $monitor_main
- workspace $ws3 output $monitor_main
- workspace $ws4 output $monitor_main
- workspace $ws5 output $monitor_main
- workspace $ws6 output $monitor_aux
- workspace $ws7 output $monitor_aux
- workspace $ws8 output $monitor_aux
- workspace $ws9 output $monitor_aux
- workspace $ws10 output $monitor_aux
- # switch to workspace
- bindsym $mod+1 workspace $ws1
- bindsym $mod+2 workspace $ws2
- bindsym $mod+3 workspace $ws3
- bindsym $mod+4 workspace $ws4
- bindsym $mod+5 workspace $ws5
- bindsym $mod+6 workspace $ws6
- bindsym $mod+7 workspace $ws7
- bindsym $mod+8 workspace $ws8
- bindsym $mod+9 workspace $ws9
- bindsym $mod+0 workspace $ws10
- # cycle between workspaces
- bindsym $mod+Next workspace next
- bindsym $mod+Prior workspace prev
- # move focused container to workspace
- bindsym $mod+Shift+1 move container to workspace $ws1
- bindsym $mod+Shift+2 move container to workspace $ws2
- bindsym $mod+Shift+3 move container to workspace $ws3
- bindsym $mod+Shift+4 move container to workspace $ws4
- bindsym $mod+Shift+5 move container to workspace $ws5
- bindsym $mod+Shift+6 move container to workspace $ws6
- bindsym $mod+Shift+7 move container to workspace $ws7
- bindsym $mod+Shift+8 move container to workspace $ws8
- bindsym $mod+Shift+9 move container to workspace $ws9
- bindsym $mod+Shift+0 move container to workspace $ws10
- bindsym $mod+Shift+Next move container to workspace next
- bindsym $mod+Shift+Prior move container to workspace prev
- #
- # Layout stuff:
- #
- # You can "split" the current object of your focus with
- # $mod+b or $mod+v, for horizontal and vertical splits
- # respectively.
- bindsym $mod+h splith
- bindsym $mod+v splitv
- # Switch the current container between different layout styles
- # bindsym $mod+s layout stacking
- # bindsym $mod+w layout tabbed
- # bindsym $mod+e layout toggle split
- # Make the current focus fullscreen
- bindsym $mod+f fullscreen
- # Toggle the current focus between tiling and floating mode
- bindsym $mod+Shift+space floating toggle
- # Swap focus between the tiling area and the floating area
- bindsym $mod+space focus mode_toggle
- # Move focus to the parent container
- bindsym $mod+a focus parent
- #
- # Scratchpad:
- #
- # Sway has a "scratchpad", which is a bag of holding for windows.
- # You can send windows there and get them back later.
- # Move the currently focused window to the scratchpad
- bindsym $mod+Shift+minus move scratchpad
- # Show the next scratchpad window or hide the focused scratchpad window.
- # If there are multiple scratchpad windows, this command cycles through them.
- bindsym $mod+minus scratchpad show
- #
- # Resizing containers:
- #
- mode "resize" {
- # left will shrink the containers width
- # right will grow the containers width
- # up will shrink the containers height
- # down will grow the containers height
- bindsym $left resize shrink width 10px
- bindsym $down resize grow height 10px
- bindsym $up resize shrink height 10px
- bindsym $right resize grow width 10px
- # Return to default mode
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+r mode "resize"
- #multimedia keys
- bindsym XF86Tools exec spotify-launcher
- bindsym XF86AudioPlay exec --no-startup-id playerctl --player=spotify play
- bindsym XF86AudioPause exec --no-startup-id playerctl --player=spotify pause
- bindsym XF86AudioStop exec --no-startup-id playerctl --player=spotify stop
- bindsym XF86AudioNext exec --no-startup-id playerctl --player=spotify next
- bindsym XF86AudioPrev exec --no-startup-id playerctl --player=spotify previous
- bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
- bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.2
- bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2
- #
- # Status Bar:
- #
- # Read `man 5 sway-bar` for more information about this section.
- bar {
- position bottom
- # When the status_command prints a new line to stdout, swaybar updates.
- # The default just shows the current date and time.
- #status_command while date +'%Y-%m-%d %H:%M:%S'; do sleep 1; done
- status_command i3status --config ~/.config/i3status.conf
- colors {
- statusline #ffffff
- background #000000
- inactive_workspace #32323200 #32323200 #5c5c5c
- }
- }
- input type:keyboard
- {
- xkb_layout fi
- }
- input type:pointer
- {
- left_handed enabled
- }
- output $monitor_main adaptive_sync enabled
- output $monitor_aux disable
- output $monitor_main mode 1920x1080@144Hz pos 0 0 background /home/john/Pictures/hREDS.jpg fill #000000
- bindsym $mod+Delete output $monitor_aux disable ; output $monitor_main mode 1920x1080@144Hz pos 0 0 background /home/john/Pictures/hREDS.jpg fill #000000
- bindsym $mod+Insert output $monitor_aux enable mode 1920x1080@144Hz pos 0 0 transform 270 background /home/john/Pictures/HelsinkiReds.png center #000000 ; output $monitor_main mode 1920x1080@144Hz pos 1080 0 background /home/john/Pictures/hREDS.jpg fill #000000
- bindsym $mod+Home output * adaptive_sync enabled
- bindsym $mod+End output * adaptive_sync disabled
- focus_follows_mouse no
- default_border none
- include /etc/sway/config.d/*
- exec_always xrandr --output $monitor_main --primary
- exec mako
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement