Created
August 7, 2021 19:41
-
-
Save Eraden/f40ef64bfe33f209405e12840f368ca6 to your computer and use it in GitHub Desktop.
Sway
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .config/sway/config | |
set $mod Mod4 | |
set $left h | |
set $down j | |
set $up k | |
set $right l | |
set $term alacritty | |
set $menu BEMENU_BACKEND=wayland bemenu-run --fn $uifont -b -p "▶" --tf "$prompt" --hf "$highlight" --sf "$highlight" --scf "$highlight" | xargs swaymsg exec | |
bindsym $mod+d exec $menu | |
bindsym $mod+Return exec $term | |
bindsym $mod+Shift+q kill | |
bar { | |
position bottom | |
status_command i3status-rs | |
} | |
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" | |
} | |
for_window [app_id="firefoxdeveloperedition"] border none | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound | |
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- | |
bindsym XF86MonBrightnessUp exec brightnessctl set +5% | |
bindsym XF86AudioPlay exec playerctl play-pause | |
bindsym XF86AudioNext exec playerctl next | |
bindsym XF86AudioPrev exec playerctl previous | |
bindsym XF86Search exec bemenu-run | |
bindsym Print exec 'grim -g "$(slurp)" - | wl-copy' | |
bindsym $mod+r mode "resize" | |
bindsym $mod+l exec swaylock -e -f -c 000000 -i ~/Pictures/Background/arch-lock.png -t | |
input * { | |
xkb_layout "pl,us" | |
} | |
# notifications | |
exec mako & | |
# pulseaudio applet - I'm using pipewire with compatibility for pulseaudio | |
exec pasystray & | |
# autolock | |
exec swayidle -w before-sleep 'swaylock -e -f -c 000000 -i ~/Pictures/Background/arch-lock.png -t' after-resume 'swaymsg "output * dpms on"' | |
# network applet | |
exec nm-applet --indicator & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .config/i3status-rust/config.toml | |
theme = "solarized-dark" | |
icons = "awesome" | |
[[block]] | |
block = "net" | |
[[block]] | |
block = "pacman" | |
aur_command = "yay" | |
[[block]] | |
block = "disk_space" | |
path = "/" | |
alias = "root" | |
info_type = "available" | |
unit = "GB" | |
interval = 20 | |
warning = 20.0 | |
alert = 10.0 | |
format = "Root {available}" | |
[[block]] | |
block = "disk_space" | |
path = "/home" | |
alias = "User" | |
info_type = "available" | |
unit = "GB" | |
interval = 20 | |
warning = 20.0 | |
alert = 10.0 | |
format = "User {available}" | |
[[block]] | |
block = "disk_space" | |
path = "/var/lib/docker" | |
alias = "docker" | |
info_type = "available" | |
unit = "GB" | |
interval = 20 | |
warning = 20.0 | |
alert = 10.0 | |
format = "Docker {available}" | |
[[block]] | |
block = "memory" | |
display_type = "memory" | |
[[block]] | |
block = "cpu" | |
interval = 1 | |
[[block]] | |
block = "load" | |
interval = 1 | |
format = "{1m}" | |
[[block]] | |
block = "sound" | |
[[block]] | |
block = "temperature" | |
collapsed = false | |
[[block]] | |
block = "time" | |
interval = 60 | |
format = "%a %d/%m %R" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swaylock | |
swayidle | |
alacritty | |
grim | |
slurp | |
wl-copy | |
i3status-rust |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment