improve readability

This commit is contained in:
Sencyy 2024-08-13 19:03:52 -03:00
parent f9c110b057
commit 7b30c813c7
No known key found for this signature in database
GPG key ID: 956AB8FEF9FD53F6

View file

@ -8,17 +8,21 @@
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# 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 --
# Define browser command
set $browser librewolf
@ -44,6 +48,7 @@ seat seat0 xcursor_theme $cursor
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# Example configuration:
#
@ -57,7 +62,7 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
exec swayidle -w \
timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
timeout 60 'swaylock -f -c 000000'' \
timeout 60 'swaylock -f -c 000000' \
before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
@ -65,18 +70,6 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
input * {
xkb_layout "br"
@ -87,13 +80,12 @@ input type:pointer {
}
### Key bindings
#
# Basics:
#
# Take screenshot
bindsym Print exec slurp | grim -g - - | wl-copy
bindsym $mod+Shift+s exec slurp | grim -g - - | wl-copy
# Start a terminal
# Start a terminal
bindsym $mod+Return exec $term
# Start browser
@ -125,6 +117,7 @@ input type:pointer {
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
@ -136,6 +129,7 @@ input type:pointer {
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
@ -155,6 +149,7 @@ input type:pointer {
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# 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