initial commit
This commit is contained in:
commit
d3f34301de
10 changed files with 1181 additions and 0 deletions
170
.config/sway/config
Normal file
170
.config/sway/config
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
exec autotiling
|
||||
|
||||
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||
|
||||
### Variables
|
||||
#
|
||||
# Logo key. Use Mod1 for Alt.
|
||||
set $mod Mod4
|
||||
set $left j
|
||||
set $down k
|
||||
set $up i
|
||||
set $right l
|
||||
# Your preferred terminal emulator
|
||||
set $term alacritty
|
||||
# Your preferred application launcher
|
||||
set $menu wmenu-run
|
||||
|
||||
default_border pixel 1
|
||||
client.focused #252a2e #171717 #E9E9E9 #262626 #252a2e
|
||||
client.focused_inactive #252a2e #171717 #E9E9E9 #262626 #262626
|
||||
client.unfocused #252a2e #171717 #E9E9E9 #262626 #262626
|
||||
client.urgent #252a2e #171717 #E9E9E9 #262626 #262626
|
||||
client.placeholder #252a2e #171717 #E9E9E9 #262626 #262626
|
||||
|
||||
gaps inner 2
|
||||
gaps outer 2
|
||||
|
||||
input type:pointer {
|
||||
accel_profile "flat"
|
||||
pointer_accel 0.0
|
||||
}
|
||||
|
||||
output * bg #02060A solid_color
|
||||
|
||||
input type:keyboard {
|
||||
xkb_layout "us"
|
||||
xkb_variant "intl"
|
||||
xkb_options "caps:swapescape"
|
||||
}
|
||||
|
||||
floating_modifier $mod normal
|
||||
|
||||
bindsym $mod+Shift+c reload
|
||||
|
||||
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'
|
||||
|
||||
#
|
||||
# Workspaces mode:
|
||||
#
|
||||
mode "normal" {
|
||||
# Switch to workspace
|
||||
bindsym 1 workspace number 1; mode "default"
|
||||
bindsym 2 workspace number 2; mode "default"
|
||||
bindsym 3 workspace number 3; mode "default"
|
||||
bindsym 4 workspace number 4; mode "default"
|
||||
bindsym 5 workspace number 5; mode "default"
|
||||
bindsym 6 workspace number 6; mode "default"
|
||||
bindsym 7 workspace number 7; mode "default"
|
||||
bindsym 8 workspace number 8; mode "default"
|
||||
bindsym 9 workspace number 9; mode "default"
|
||||
bindsym 0 workspace number 10; mode "default"
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym Shift+1 move container to workspace number 1; mode "default"
|
||||
bindsym Shift+2 move container to workspace number 2; mode "default"
|
||||
bindsym Shift+3 move container to workspace number 3; mode "default"
|
||||
bindsym Shift+4 move container to workspace number 4; mode "default"
|
||||
bindsym Shift+5 move container to workspace number 5; mode "default"
|
||||
bindsym Shift+6 move container to workspace number 6; mode "default"
|
||||
bindsym Shift+7 move container to workspace number 7; mode "default"
|
||||
bindsym Shift+8 move container to workspace number 8; mode "default"
|
||||
bindsym Shift+9 move container to workspace number 9; mode "default"
|
||||
bindsym Shift+0 move container to workspace number 10; mode "default"
|
||||
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
# Move your focus
|
||||
bindsym left focus left; mode "default"
|
||||
bindsym down focus down; mode "default"
|
||||
bindsym up focus up; mode "default"
|
||||
bindsym right focus right; mode "default"
|
||||
|
||||
# Move the focused window
|
||||
bindsym Shift+left move left; mode "default"
|
||||
bindsym Shift+down move down; mode "default"
|
||||
bindsym Shift+up move up; mode "default"
|
||||
bindsym Shift+right move right; mode "default"
|
||||
|
||||
bindsym Return exec $term; mode "default"
|
||||
bindsym q kill; mode "default"
|
||||
|
||||
#
|
||||
# Layout stuff:
|
||||
#
|
||||
bindsym b splith; mode "default" # horizontal split
|
||||
bindsym v splitv; mode "default" # vertical split
|
||||
bindsym s layout stacking; mode "default"
|
||||
bindsym w layout tabbed; mode "default"
|
||||
bindsym e layout toggle split; mode "default"
|
||||
bindsym f fullscreen; mode "default"
|
||||
bindsym Shift+space floating toggle; mode "default"
|
||||
bindsym space focus mode_toggle; mode "default"
|
||||
bindsym a focus parent; mode "default"
|
||||
|
||||
bindsym d exec $menu; mode "default"
|
||||
|
||||
# Exit mode back to default
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
# Activate workspaces mode with Super+x
|
||||
bindsym $mod+x mode "normal"
|
||||
|
||||
#
|
||||
# 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
|
||||
|
||||
# Ditto, with arrow keys
|
||||
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 p exec shotman --capture window
|
||||
bindsym Shift+p exec shotman --capture region
|
||||
bindsym Ctrl+p exec shotman --capture output
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
#
|
||||
# Utilities:
|
||||
#
|
||||
# Special keys to adjust volume via PulseAudio
|
||||
bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
|
||||
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
|
||||
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
|
||||
bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle
|
||||
|
||||
# Special key to take a screenshot with grim
|
||||
bindsym $mod+z exec grim -g "$(slurp)"
|
||||
bindsym $mod+y exec grim - | wl-copy
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
#
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
bar {
|
||||
position top
|
||||
swaybar_command waybar
|
||||
}
|
||||
|
||||
output * {
|
||||
mode 1920x1080@120Hz
|
||||
}
|
||||
|
||||
include /usr/local/etc/sway/config.d/*
|
||||
Loading…
Add table
Add a link
Reference in a new issue