🇳🇴/🇬🇧 Locale switcher
- Added no to list of keyboard locales. - Added no and gb to list of supported locales. - Added a waybar language switcher, that can be clicked to toggle - Toggle languages using ALT+SHIFT - Enable numlock at boot
This commit is contained in:
@ -254,11 +254,12 @@ misc {
|
||||
#############
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||
# Must match configs in nixos!
|
||||
input {
|
||||
kb_layout = gb
|
||||
kb_layout = gb,no
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_options = grp:alt_shift_toggle
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
@ -13,11 +13,12 @@
|
||||
"hyprland/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"hyprland/language",
|
||||
"wireplumber",
|
||||
"backlight",
|
||||
"clock",
|
||||
"tray",
|
||||
"custom/notification",
|
||||
"tray",
|
||||
"custom/lock",
|
||||
"custom/power"
|
||||
],
|
||||
@ -87,6 +88,12 @@
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"hyprland/language": {
|
||||
"format-en": "EN",
|
||||
"format-no": "NO",
|
||||
"keyboard-name": "logitech-logitech-g710-keyboard",
|
||||
"on-click": "hyprctl switchxkblayout logitech-logitech-g710-keyboard next"
|
||||
},
|
||||
"custom/lock": {
|
||||
"tooltip": false,
|
||||
"on-click": "sh -c '(sleep 0.5s; swaylock)' & disown",
|
||||
|
@ -35,6 +35,7 @@
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
#language,
|
||||
#window,
|
||||
#custom-notification,
|
||||
#custom-music,
|
||||
@ -61,10 +62,14 @@
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#language {
|
||||
color: @red;
|
||||
border-radius: 1rem 0 0 1rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
color: @maroon;
|
||||
border-radius: 1rem 0px 0px 1rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
#custom-music {
|
||||
|
Reference in New Issue
Block a user