Добавлен скрипт отображающий флаг раскладки при переключения через rofi
This commit is contained in:
27
config/bspwm/scripts/kblayout-notify
Executable file
27
config/bspwm/scripts/kblayout-notify
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
sleep 0.05
|
||||
|
||||
layout=$(xkb-switch)
|
||||
|
||||
case "$layout" in
|
||||
us) text="🇺🇸" ;;
|
||||
ru) text="🇷🇺" ;;
|
||||
*) text="$layout" ;;
|
||||
esac
|
||||
|
||||
timeout 0.7s rofi -e "$text" \
|
||||
-no-history \
|
||||
-theme-str '
|
||||
window {
|
||||
location: center;
|
||||
width: 220;
|
||||
height: 150;
|
||||
border: 0;
|
||||
}
|
||||
textbox {
|
||||
font: "Noto Color Emoji 48";
|
||||
padding: 13px 24px 24px 24px; /* top right bottom left */
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
'
|
||||
@@ -173,7 +173,7 @@ fade-out-step = 0.03;
|
||||
fade-exclude = [
|
||||
"class_g = 'VirtualBox Machine'",
|
||||
"name = 'Клон EndeavourOS [Работает] - Oracle VM VirtualBox'",
|
||||
"name = 'Opera'",
|
||||
"name = 'Opera'",
|
||||
];
|
||||
|
||||
# Do not fade on window open/close.
|
||||
|
||||
@@ -7,9 +7,9 @@ super + Return
|
||||
kitty
|
||||
|
||||
# Swich layout keyboard
|
||||
####ctrl + Shift_L
|
||||
#alt + space
|
||||
ctrl + Shift_L
|
||||
### ~/.config/bspwm/scripts/toogle_kb.sh
|
||||
~/.config/bspwm/scripts/kblayout-notify
|
||||
|
||||
# program launcher
|
||||
super + d
|
||||
|
||||
Reference in New Issue
Block a user