Compare commits

...

3 Commits

Author SHA1 Message Date
8115035302 README.md 2025-08-12 15:28:07 +02:00
2eeff86faa .config/i3/scripts/get_lang.sh 2025-08-12 15:27:53 +02:00
b5be64a202 .config/i3/config 2025-08-12 15:27:40 +02:00
4 changed files with 30 additions and 1 deletions

View File

@ -268,6 +268,10 @@ mode "resize" {
bindsym $mod+r mode "resize"
# Input layout
#exec --no-startup-id setxkbmap us
exec --no-startup-id setxkbmap es
# Start i3bar to display a workspace bar
bar {
position top

13
.config/i3/scripts/get_lang.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
if [ -f /usr/bin/setxkbmap ] ; then
get_lang=$(setxkbmap -query 2> /dev/null | grep "layout:" | tr -s " " | cut -d ":" -f 2)
if [ -z ${get_lang} ] ; then
echo " us "
else
echo "${get_lang} "
fi
else
echo " us "
fi

View File

@ -8,7 +8,8 @@ while [ ${status_bar} -eq 0 ] ; do
cpuinfo=$(~/.config/i3/scripts/cpu_info.sh)
meminfo=$(~/.config/i3/scripts/mem_info.sh)
volume=$(~/.config/i3/scripts/get_volume.sh)
lang=$(~/.config/i3/scripts/get_lang.sh)
date=$(~/.config/i3/scripts/current_date.sh)
echo "${updates} ${kernel} ${cpuinfo} ${meminfo} ${volume} ${date}"
echo "${updates} ${kernel} ${cpuinfo} ${meminfo} ${volume} ${lang} ${date}"
sleep 2
done

View File

@ -108,6 +108,17 @@ i3-wm - My tiling i3 configuration for Debian
tray_output HDMI-A-0
````
* **`Layout:`**
* By default, the config load my spanish layout.:
* Edit `~/.config/i3/config` for set your configuration:
```shell
# Input layout
#exec --no-startup-id setxkbmap us
exec --no-startup-id setxkbmap es
````
### Keys configuration:
My list of extra combinations: