This commit is contained in:
2024-06-12 13:49:42 +02:00
commit b8e15ff09c
390 changed files with 37206 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# key_layout
Display the current keyboard layout using setxkbmap.
![](key_layout.png)
![](key_layout_variant.png)
# Installation
Use the following in your i3blocks config:
```ini
[key_layout]
command=$SCRIPT_DIR/key_layout
label=Layout
interval=30
```

View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Copyright 2016 Patrick Haun
# Edited: Denis Kadyshev
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
setxkbmap -query | awk '
BEGIN{layout="";variant=""}
/^layout/{layout=$2}
/^variant/{variant=" ("$2")"}
END{printf("%s%s",layout,variant)}'

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB