Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Variables
- set $mod Mod1
- set $term termite
- set $screenshot grim ~/Pictures/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png
- set $screenclip slurp | grim -g - ~/Pictures/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png
- set $menu wofi --show run --allow-images --exec-search --prompt "Run Command" | xargs swaymsg exec --
- set $appmenu wofi --show drun --prompt "Application Launcher" | xargs swaymsg exec --
- ### Output configuration
- output HDMI-A-1 bg /usr/share/backgrounds/sway/arch.png fill
- output HDMI-A-2 bg /usr/share/backgrounds/sway/arch.png fill
- output HDMI-A-1 resolution 1920x1080 position 1920,0 transform 90 subpixel rgb
- #output HDMI-A-2 resolution 3840x2160 position 3840,0 subpixel rgb
- ### Idle configuration
- exec swayidle -w \
- timeout 500 'swaylock -f -c 000000' \
- timeout 510 'swaymsg "output * dpms off"' \
- resume 'swaymsg "output * dpms on"' \
- before-sleep 'swaylock -f -c 000000'
- ### Input configuration
- input 9390:8211:RAPOO_Rapoo_2.4G_Wireless_Device {
- xkb_layout hu
- xkb_capslock disable
- }
- input 1133:8209:Logitech_K520 {
- xkb_model logicd
- xkb_layout hu
- xkb_capslock disable
- xkb_numlock enable
- }
- ### Key bindings
- ## Basics:
- # Start a terminal
- bindsym $mod+Return exec $term
- # Kill focused window
- bindsym $mod+Shift+q kill
- # Start your launcher
- bindsym $mod+d exec $menu
- bindsym $mod+Shift+d exec $appmenu
- # Reload the configuration file
- bindsym $mod+Shift+c reload
- # Log out, Reboot, Poweroff
- mode "(L)ogout, (R)eboot, (P)oweroff" {
- bindsym l exit
- bindsym r exec systemctl reboot
- bindsym p exec systemctl poweroff
- # Return to default mode
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+Shift+e mode "(L)ogout, (R)eboot, (P)oweroff"
- ## 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
- ## Workspaces:
- # Switch to workspace
- 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
- # Move focused container to workspace
- 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
- # Orientation for new workspaces
- default_orientation vertical
- ## Layout stuff
- # You can "split" the current object of your focus with
- bindsym $mod+b 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 floating/tiling
- bindsym $mod+t floating toggle
- # 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
- # Floating modifier
- floating_modifier $mod normal
- ## Window config
- #for_window [app_id=pcmanfm] floating enable
- for_window [app_id=pavucontrol] floating enable
- for_window [title="feh"] floating enable
- for_window [title="imv"] floating enable
- #for_window [app_id=".*"] border pixel
- ## Scratchpad
- # 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.
- bindsym $mod+minus scratchpad show
- ## Resizing containers
- # Resize window
- mode "resize" {
- # Resizing 1 px
- bindsym $mod+Ctrl+Right resize shrink width 10 px
- bindsym $mod+Ctrl+Up resize grow height 10 px
- bindsym $mod+Ctrl+Down resize shrink height 10 px
- bindsym $mod+Ctrl+Left resize grow width 10 px
- # Resizing 10 px
- bindsym $mod+Ctrl+Shift+Right resize shrink width 1 px
- bindsym $mod+Ctrl+Shift+Up resize grow height 1 px
- bindsym $mod+Ctrl+Shift+Down resize shrink height 1 px
- bindsym $mod+Ctrl+Shift+Left resize grow width 1 px
- # Return to default mode
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+r mode "resize"
- ## Status Bar
- bar {
- swaybar_command waybar
- }
- ### Appearance
- ## Color
- # class border bground text indicator child_border
- client.focused #6272A4 #6272A4 #F8F8F2 #6272A4 #6272A4
- client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A
- client.unfocused #282A36 #282A36 #BFBFBF #282A36 #282A36
- client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555
- client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
- client.background #F8F8F2
- ## Font
- font pango:Hack 10
- ## Theme
- set $gnome-schema org.gnome.desktop.interface
- exec_always {
- gsettings set $gnome-schema gtk-theme 'Dracula'
- gsettings set $gnome-schema icon-theme 'Dracula'
- gsettings set $gnome-schema cursor-theme 'Your cursor Theme'
- gsettings set $gnome-schema font-name 'Roboto 10'
- }
- ## Borders
- default_border pixel 2
- default_floating_border pixel 2
- hide_edge_borders smart
- smart_borders on
- ## Gaps
- gaps inner 6
- gaps outer 6
- ### Modes
- ## Screenshot
- bindsym $mod+P exec $screenshot
- bindsym $mod+Shift+P exec $screenclip
- ## Run services
- exec wl-paste -t text --watch clipman store
- #exec mako
- ## Multimedia
- bindsym --locked XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') +5%
- bindsym --locked XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') -5%
- bindsym --locked XF86AudioMute exec --no-startup-id pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle
- bindsym --locked XF86AudioPlay exec playerctl play-pause
- bindsym --locked XF86AudioNext exec playerctl next
- bindsym --locked XF86AudioPrev exec playerctl previous
- ## Custom keybindings
- bindsym $mod+F1 exec chromium
- #xwayland disabled
- include /etc/sway/config.d/*
Advertisement
Add Comment
Please, Sign In to add comment