Initial commit
This commit is contained in:
commit
ce17800973
3 changed files with 231 additions and 0 deletions
132
sway/config
Normal file
132
sway/config
Normal file
|
@ -0,0 +1,132 @@
|
|||
# Variables
|
||||
set $mod Mod1
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
set $menu wmenu-run
|
||||
|
||||
# Idle
|
||||
for_window [class=".*"] inhibit_idle fullscreen
|
||||
for_window [app_id=".*"] inhibit_idle fullscreen
|
||||
exec swayidle timeout 300 'swaylock'
|
||||
|
||||
# Start
|
||||
output * bg /usr/share/backgrounds/Black.jpg fill
|
||||
exec waybar
|
||||
exec wl-paste --watch cliphist store
|
||||
exec wlsunset -l "38.25" -L "-85.75"
|
||||
|
||||
# Input
|
||||
input type:touchpad {
|
||||
dwt disabled
|
||||
tap enabled
|
||||
natural_scroll enabled
|
||||
middle_emulation enabled
|
||||
}
|
||||
#input type:keyboard {
|
||||
# xkb_layout us
|
||||
# xkb_variant colemak
|
||||
#}
|
||||
|
||||
# Basics
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+e exit
|
||||
|
||||
# Moving around
|
||||
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
|
||||
|
||||
# Workspaces
|
||||
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
|
||||
bindgesture swipe:right workspace prev
|
||||
bindgesture swipe:left workspace next
|
||||
|
||||
# Shortcuts
|
||||
bindsym $mod+Return exec foot
|
||||
bindsym $mod+d exec wmenu-run
|
||||
bindsym $mod+y exec 'yt "$(wl-paste)"'
|
||||
bindsym $mod+p exec foot -T "$(wl-paste)" -e sh -c 'yt_music "$(wl-paste -n)"'
|
||||
bindsym $mod+s exec 'grim -g "$(slurp -d)" - | wl-copy'
|
||||
bindsym Print exec 'grim - | swayimg -f -'
|
||||
bindsym Mod4+e exec thunar
|
||||
bindsym Mod4+f exec firefox
|
||||
|
||||
bindsym --locked XF86AudioMute exec amixer sset -M Master toggle
|
||||
bindsym --locked XF86AudioLowerVolume exec amixer -M sset Master 5%-
|
||||
bindsym --locked XF86AudioRaiseVolume exec amixer -M sset Master 5%+
|
||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl s 1%-
|
||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl s 1%+
|
||||
|
||||
bindsym XF86PowerOff exec swaylock
|
||||
bindswitch lid:on exec swaylock
|
||||
bindgesture hold:4 exec swaylock
|
||||
|
||||
bindsym --locked XF86AudioPrev exec playerctl previous
|
||||
bindsym --locked XF86AudioPlay exec playerctl play-pause
|
||||
bindsym --locked XF86AudioNext exec playerctl next
|
||||
bindsym --locked Mod4+space exec playerctl play-pause
|
||||
bindsym --locked Mod4+up exec playerctl next
|
||||
bindsym --locked Mod4+down exec playerctl previous
|
||||
bindsym --locked Mod4+left exec playerctl position 10-
|
||||
bindsym --locked Mod4+right exec playerctl position 10+
|
||||
|
||||
# Layout
|
||||
bindsym $mod+n split none
|
||||
bindsym $mod+v split toggle
|
||||
bindsym $mod+b border toggle
|
||||
bindsym $mod+f fullscreen
|
||||
bindsym $mod+e layout toggle splith splitv tabbed
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# Scratchpad
|
||||
bindsym $mod+Shift+minus move scratchpad
|
||||
bindsym $mod+minus scratchpad show
|
||||
|
||||
# Resizing
|
||||
bindsym $mod+r mode "resize"
|
||||
mode "resize" {
|
||||
bindsym $left resize shrink width 10px
|
||||
bindsym $down resize grow height 10px
|
||||
bindsym $up resize shrink height 10px
|
||||
bindsym $right resize grow width 10px
|
||||
bindsym Left resize shrink width 10px
|
||||
bindsym Down resize grow height 10px
|
||||
bindsym Up resize shrink height 10px
|
||||
bindsym Right resize grow width 10px
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
xwayland disable
|
||||
|
||||
floating_modifier $mod normal
|
||||
default_border none
|
||||
include /etc/sway/config.d/*
|
Loading…
Add table
Add a link
Reference in a new issue