Add all sway relevant config

This commit is contained in:
Vladan Popovic 2021-06-17 09:39:49 +02:00
parent 483f435ef8
commit 284dd752dc
12 changed files with 399 additions and 2 deletions

View file

@ -17,7 +17,8 @@ set $right l
set $term alacritty
# Your preferred application launcher
# Note: it's recommended that you pass the final command to sway
set $menu wofi -c $HOME/.config/wofi/config -s $HOME/.config/wofi/style.css | xargs swaymsg exec --
# set $menu wofi -c $HOME/.config/wofi/config -s $HOME/.config/wofi/style.css | xargs swaymsg exec --
set $menu ~/src/wldash/target/release/wldash
### Output configuration
#
@ -62,6 +63,16 @@ input * xkb_layout "us,mk"
input * xkb_variant "typewriter"
input * xkb_options "grp:caps_toggle"
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound
bindsym XF86AudioMicMute exec pactl set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo toggle # mute mic
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec brightnessctl -q s +10%
bindsym XF86MonBrightnessDown exec brightnessctl -q s 10%-
### Key bindings
#
# Basics:
@ -222,8 +233,11 @@ bindsym Shift+Print exec grim -g "$(slurp)" /tmp/screen.png
# Remove title from windows
default_border pixel 1
default_floating_border normal
bindsym $mod+t border toggle
hide_edge_borders smart
# Background
set $bg #232425
# Background active
@ -235,7 +249,7 @@ set $fa #eff1f5
# Foreground inactive
set $fi #646464
# Border active
set $bra #7a7a7a
set $bra #5a5a5a
# Border inactive
set $bri #000000
@ -252,3 +266,7 @@ gaps outer 0
#smart_gaps on
include /etc/sway/config.d/*
include apps
exec "~/.config/sway/keyboard-layout-per-window.py"
exec "systemctl --user import-environment ; systemctl --user start sway-session.target"