Formating

This commit is contained in:
lelgenio 2020-10-21 03:52:40 -03:00
parent a054533388
commit 7eeadeca2a
1 changed files with 128 additions and 135 deletions

View File

@ -15,8 +15,6 @@
set $up {{@@ key.up @@}}
set $right {{@@ key.right @@}}
set $menu s
set $suspend b
set $kill x
set $mus r
set $term terminal
@ -24,11 +22,11 @@
# set $menu bmenu run $term
font {{@@ font.interface @@}} 14px
{%@@ if color.type == 'dark' @@%}
#{%@@ if color.type == 'dark' @@%}#
set $wallPath ~/.local/share/wallpapers/assembly.png
{%@@ else @@%}
#{%@@ else @@%}#
set $wallPath ~/.local/share/wallpapers/austria.jpg
{%@@ endif @@%}
#{%@@ endif @@%}#
# }}}
# Output configuration {{{
@ -80,174 +78,164 @@
# }}}
# Key bindings: {{{
# Basic {{{
# Start a terminal
bindsym $mod+Return exec $term
# mouse button for dragging.
floating_modifier $mod normal
#start web browser
bindsym $mod+b exec qutebrowser
bindsym {
# Basic {{{
#start file manager
bindsym $mod+m exec thunar
# Start a terminal
$mod+Return exec $term
bindsym $mod+j exec emoji
#start web browser
$mod+b exec qutebrowser
# Kill focused window
bindsym $mod+$kill kill
#start file manager
$mod+m exec thunar
# Start your launcher
bindsym $mod+$menu exec launcher
$mod+j exec emoji
# Fill passwords
bindsym $mod+p exec wpass
# Kill focused window
$mod+x kill
# mouse button for dragging.
floating_modifier $mod normal
# Start your launcher
$mod+$menu exec launcher
# Reload the configuration file
bindsym $mod+Shift+c reload
# Fill passwords
$mod+p exec wpass
# Lock Sway
bindsym $mod+Control+$suspend exec loginctl suspend || systemctl suspend
# Reload the configuration file
$mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+q exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit'
# Lock Sway
$mod+Control+z exec loginctl suspend || systemctl suspend
bindsym Control+Shift+BackSpace exit
# Exit sway (logs you out of your Wayland session)
$mod+Shift+q exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit'
# }}}
# Moving around: {{{
Control+Shift+BackSpace exit
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# }}}
# Moving around: {{{
# 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
# Move your focus around
#{%@@ for d in "up,down,left,right".split(',') @@%}#
$mod+${{@@ d @@}} focus {{@@ d @@}}
$mod+{{@@ d.capitalize() @@}} focus {{@@ d @@}}
$mod+Shift+${{@@ d @@}} move {{@@ d @@}}
#{%@@ endfor @@%}#
bindsym $mod+Shift+{{@@ key.tabL @@}} move workspace prev
bindsym $mod+Shift+{{@@ key.tabR @@}} move workspace next
$mod+Shift+{{@@ key.tabL @@}} move workspace prev
$mod+Shift+{{@@ key.tabR @@}} move workspace next
# Resizing containers:
bindsym $mod+Control+$left resize shrink width 10px
bindsym $mod+Control+$down resize grow height 10px
bindsym $mod+Control+$up resize shrink height 10px
bindsym $mod+Control+$right resize grow width 10px
# Resizing containers:
$mod+Control+$left resize shrink width 20px
$mod+Control+$down resize grow height 20px
$mod+Control+$up resize shrink height 20px
$mod+Control+$right resize grow width 20px
#}}}
# Workspaces: {{{
#}}}
# Workspaces: {{{
bindsym $mod+{{@@ key.tabL @@}} workspace prev
bindsym $mod+{{@@ key.tabR @@}} workspace next
$mod+{{@@ key.tabL @@}} workspace prev
$mod+{{@@ key.tabR @@}} workspace next
# Switch to workspace
# Move focused container to workspace
{%@@ for i in range(1,11) @@%}
bindsym $mod+{{@@ i % 10 @@}} workspace {{@@ i @@}}
bindsym $mod+Shift+{{@@ i % 10 @@}} move container to workspace {{@@ i @@}}
{%@@ endfor @@%}
# Switch to workspace
# Move focused container to workspace
#{%@@ for i in range(1,11) @@%}#
$mod+{{@@ i % 10 @@}} workspace {{@@ i @@}}
$mod+Shift+{{@@ i % 10 @@}} move container to workspace {{@@ i @@}}
#{%@@ endfor @@%}#
# }}}
# Layout stuff: {{{
#
# Splits
# bindsym $mod+b splith
bindsym $mod+v splitv
# }}}
# Layout stuff: {{{
#
# Splits
# bindsym $mod+b splith
$mod+v splitv
# Layout styles
bindsym $mod+t layout tabbed
bindsym $mod+r layout toggle split
# Layout styles
$mod+t layout tabbed
$mod+r layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Make the current focus fullscreen
$mod+f fullscreen
# Floating
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
# Floating
$mod+Shift+space floating toggle
$mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
bindsym $mod+z focus child
# Move focus to the parent container
$mod+a focus parent
$mod+z focus child
# }}}
# Screenshots: {{{
#
# }}}
# Screenshots: {{{
# Screens to file
bindsym Print exec screenshotsh def
# Screens to file
Print exec screenshotsh def
# Screen area to file
bindsym Shift+Print exec screenshotsh area
# Screen area to file
Shift+Print exec screenshotsh area
# Screen area to clipboard
bindsym Control+Shift+Print exec screenshotsh area-clip
# Screen area to clipboard
Control+Shift+Print exec screenshotsh area-clip
# Focused monitor to clipboard
bindsym Control+Print exec screenshotsh clip
# Focused monitor to clipboard
Control+Print exec screenshotsh clip
# Screen recorder
bindsym Control+Alt+Shift+r exec wf-recorder -a
# Screen recorder
Control+Alt+Shift+r exec wf-recorder -a
# Mirror selection as window
bindsym $mod+Alt+r exec sssway
# Mirror selection as window
$mod+Alt+r exec sssway
# Color picker
bindsym $mod+c exec color-picker
# Color picker
$mod+c exec color-picker
# show keys being pressed
bindsym $mod+k exec showkeys
# show keys being pressed
$mod+k exec showkeys
# }}}
# Audio: {{{
#
bindsym Control+$mod+p exec pulse-sink
for_window [app_id="pavucontrol"] floating enable
# }}}
# Audio: {{{
#
Control+$mod+p exec pulse-sink
# Volume controll
# script in dotfiles
bindsym --locked XF86AudioRaiseVolume exec volumesh -i 10
bindsym --locked XF86AudioLowerVolume exec volumesh -d 10
bindsym --locked XF86AudioMute exec volumesh -t
# Volume controll
# script in dotfiles
--locked XF86AudioRaiseVolume exec volumesh -i 10
--locked XF86AudioLowerVolume exec volumesh -d 10
--locked XF86AudioMute exec volumesh -t
# Media player controls
{%@@ if exists_in_path ( 'playerctl' ) @@%}
# playerctl for notifications
bindsym --locked XF86AudioPlay exec playerctl -p mpd play-pause
bindsym --locked XF86AudioNext exec playerctl -p mpd next
bindsym --locked XF86AudioPrev exec playerctl -p mpd previous
{%@@ else @@%}
bindsym --locked XF86AudioPlay exec mpc toggle
bindsym --locked XF86AudioNext exec mpc next
bindsym --locked XF86AudioPrev exec mpc prev
{%@@ endif @@%}
bindsym $mod+Shift+$mus exec musmenu delete
bindsym $mod+Control+$mus exec musmenu search
bindsym $mod+Control+Shift+$mus exec dzadd
# Media player controls
--locked XF86AudioPlay exec mpc toggle
--locked XF86AudioNext exec mpc next
--locked XF86AudioPrev exec mpc prev
# }}}
# Special Keys{{{
$mod+Shift+$mus exec musmenu delete
$mod+Control+$mus exec musmenu search
$mod+Control+Shift+$mus exec dzadd
bindsym XF86Calculator exec $term ipython
bindsym XF86Mail exec $term neomutt
bindsym XF86Explorer exec thunar
bindsym XF86HomePage exec xdg-open http://start.duckduckgo.com
# }}}
# Special Keys{{{
mode Passthrough {
bindsym $mod+escape mode default
}
bindsym $mod+escape mode Passthrough
XF86Calculator exec $term ipython
XF86Mail exec $term neomutt
XF86Explorer exec thunar
XF86HomePage exec xdg-open http://start.duckduckgo.com
# }}}
# }}}
}
# Modes {{{
mode Passthrough {
bindsym $mod+escape mode default
}
bindsym $mod+escape mode Passthrough
# }}}
# }}}
# Visual: {{{
#
@ -268,6 +256,7 @@
bar swaybar_command waybar
{%@@ else @@%}
# I rarely use this
bar {
position {{@@ bar_pos @@}}
# status_command i3blocks
@ -307,7 +296,9 @@
}
# }}}
# Assigns to workspaces {{{
# Assigns {{{
for_window [app_id=pavucontrol] floating enable
assign [app_id=qutebrowser] workspace 2
assign [class=qutebrowser] workspace 2
@ -322,7 +313,9 @@
# Daemons {{{
#
# start dbusd just in case
exec 'dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus'
#Notification Daemon
exec mako
# Block device Mounter to /run/media/<username>
@ -342,13 +335,13 @@
exec pidof mpd || mpd
exec pgrep -f mpDris2|| mpDris2
# lock screen after a period of inactivity execp for fullscreen
# Prevent the screen from locking if fullscreen
for_window [class=.*] inhibit_idle fullscreen
# Lock configuration
set $lock swaylock -f \
--image $wallPath \
--font 'Inter' \
--font '{{@@ font.interface @@}}' \
set $screenReload \
pkill kanshi; \