From bf19581164b3968888bbb5229962cc2c3fc3d88f Mon Sep 17 00:00:00 2001 From: zloy_linux Date: Wed, 7 Jan 2026 11:22:21 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B0=D1=8E=D1=89=D0=B8=D0=B9=20?= =?UTF-8?q?=D1=84=D0=BB=D0=B0=D0=B3=20=D1=80=D0=B0=D1=81=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=BA=D0=B8=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=87?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B7=20rofi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/bspwm/scripts/kblayout-notify | 27 +++++++++++++++++++++++++++ config/compfy.conf | 2 +- config/sxhkd/sxhkdrc | 4 ++-- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100755 config/bspwm/scripts/kblayout-notify diff --git a/config/bspwm/scripts/kblayout-notify b/config/bspwm/scripts/kblayout-notify new file mode 100755 index 0000000..39ba64b --- /dev/null +++ b/config/bspwm/scripts/kblayout-notify @@ -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; + } + ' diff --git a/config/compfy.conf b/config/compfy.conf index 2e77408..0b3fe02 100644 --- a/config/compfy.conf +++ b/config/compfy.conf @@ -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. diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index 38e7d1f..9a0e0c1 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -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