Comments (3)
After much searching, setxkbmap can only show you the layout rules, not the actual layout. Thus in order for this script to work as expected, you will have to have i3 symbind CTRL+ALT to a script that toggles between the layouts e.g. like the one here: https://superuser.com/questions/505466/2-and-more-keyboard-layout-groups-in-linux-changed-by-different-hot-keys
Sorry for this, I don't see any way to fix it at this time. Don't close the issue.
from i3blocks-contrib.
For what it's worth, this works perfectly (for me):
in .i3blocks.conf
:
[key_layout]
interval=once
command=~/.i3blocks/key_layout
signal=11
in .i3/config
:
bindsym $mod+z exec --no-startup-id "~/.i3blocks/changeLayout && pkill -RTMIN+11 i3blocks"
and this changeLayout
file is:
#!/usr/bin/env bash
LO=$(~/.i3blocks/key_layout)
if [ "$LO" == 'us' ]
then
setxkbmap -layout se
else
setxkbmap -layout us
fi
from i3blocks-contrib.
key_layout's functionality is now duplicated in the kbdd_layout script. key_layout works if you are switching between simple layouts (i.e. "us" is ok but not "us,se") , whereas kbdd_layout works when using group toggling.
from i3blocks-contrib.
Related Issues (20)
- i3-focusedwindow using too much cpu and overheating device. HOT 2
- taskw blocklet doesn't work well with deleted tasks HOT 1
- volume-pulseaudio doesn't work with pipewire-pulse HOT 3
- Time config error HOT 1
- volume-pipewire is not able to forward default sink when clicked on HOT 1
- confusing formatting in rofi-calendar
- bandwidth2: missing dependency
- temperature block shows wrong temperature
- The cpu_usage2 blocklet isn't working HOT 1
- The blocklet battery-poly isn't working HOT 2
- only appears the clock with date
- key_layout doesn't work because it doesn't output a \n at the end HOT 1
- Root Makefile errors
- Using Font Awesome 6 instead of Font Awesome 5 for dunst
- apt-upgrades
- Issue with Icons in volume-pipewire
- The memory2 block uses incorrect math to calculate ram usage HOT 1
- volume-pulseaudio higher than 100%
- calendar: calendar display at wrong position for different i3 bar position HOT 2
- [bandwidth] tailscale showing as "down"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3blocks-contrib.