(sway/bar) added keybinding & display for keymaps

This commit is contained in:
zegonix
2025-06-11 23:02:02 +02:00
parent 0389ba6559
commit 9139126295
3 changed files with 21 additions and 5 deletions

View File

@@ -50,8 +50,12 @@ for_window [class="steam_app.*"] inhibit_idle open
exec nm-applet
### configuring input
input * accel_profile flat
input * pointer_accel 0.53
input type:keyboard {
xkb_layout "us,us(intl)"
}
input type:pointer accel_profile flat
input type:pointer pointer_accel 0.53
### configuring keybindings
@@ -152,6 +156,9 @@ bindsym $mod+i move workspace to output down
bindsym $mod+o move workspace to output up
bindsym $mod+p move workspace to output right
# switch keyboard layout
bindsym $mod+Shift+n exec swaymsg input type:keyboard xkb_switch_layout next
## take screenshots
#bindsym $mod+s exec maim -su | xclip -selection clipboard -t image/png
#bindsym $mod+Shift+s exec maim -su "${HOME}/Pictures/screenshots/$(date '+%Y%m%d_%H%M%S').png"

View File

@@ -8,7 +8,7 @@
"spacing": 16,
"reload_style_on_change": true,
"modules-left": ["sway/workspaces", "sway/window"],
"modules-right": ["cpu", "pulseaudio", "clock#date", "clock#time"],
"modules-right": ["sway/language", "cpu", "pulseaudio", "clock#date", "clock#time"],
"sway/workspaces": {
"format": "{name}",
@@ -22,13 +22,17 @@
"sway/window": {
"max-length": 50
},
"sway/language": {
"format": " {short} {variant}",
"tooltip": true
},
"cpu": {
"format": " {load}%",
"format": " {usage:3}%",
"tooltip": false,
"interval": 5
},
"pulseaudio": {
"format": " {volume}%",
"format": " {volume}%",
"format-bluetooth": " {volume}%",
"format-muted": " ",
"tooltip": false

View File

@@ -50,6 +50,11 @@ window#waybar {
padding: 0 30px;
}
#language {
padding: 0 30px;
color: @--lighter-grey;
}
#cpu {
color: @--lighter-grey;
}