adds support for split keyboard

This commit is contained in:
Michel Fedde 2025-10-13 22:51:38 +02:00
parent 725057ace8
commit e93060714c
5 changed files with 31 additions and 7 deletions

View file

@ -97,13 +97,14 @@ bind = $mainMod, Space, fullscreen, 0
# rofi App launcher # rofi App launcher
#bind = $mainMod, Tab, exec, nwg-drawer -pbexit "wayland-logout" -pbpoweroff "systemctl poweroff" -pbreboot "systemctl reboot" #bind = $mainMod, Tab, exec, nwg-drawer -pbexit "wayland-logout" -pbpoweroff "systemctl poweroff" -pbreboot "systemctl reboot"
bind = $mainMod, Tab, exec, $appLauncher bind = , Home, exec, $appLauncher
bind = ALT, Tab, exec, rofi -show window -show-icons bind = ALT, Tab, exec, rofi -show window -show-icons
bind = $mainMod, Return, exec, $term bind = $mainMod, Return, exec, $term
bind = $mainMod Shift, Return, exec, hyprdrop ghostty --identifier term_hyprdrop bind = $mainMod Shift, Return, exec, hyprdrop ghostty --identifier term_hyprdrop
bind = $mainMod, Z, exec, $files bind = $mainMod, Z, exec, $files
bind = $mainMod, R, focusurgentorlast bind = $mainMod, R, focusurgentorlast
bind = $mainMod SHIFT, P, exec, rofi -modes "2fa" -show 2fa bind = $mainMod SHIFT, P, exec, rofi -modes "2fa" -show 2fa

View file

@ -36,6 +36,13 @@ device {
accel_profile = flat accel_profile = flat
} }
device {
name = keychron-keychron-q10-max-keyboard
kb_layout = us
kb_variant = altgr-intl
kb_options = fkeys:basic_13-24
}
device { device {
name = keychron-keychron-q10-max name = keychron-keychron-q10-max
kb_layout = us kb_layout = us
@ -43,6 +50,12 @@ device {
kb_options = fkeys:basic_13-24 kb_options = fkeys:basic_13-24
} }
device {
name = dygma-defy-keyboard
kb_layout = us
kb_variant = altgr-intl
kb_options = fkeys:basic_13-24
}
device { device {
name = evremap-virtual-input-for-/dev/input/event31 name = evremap-virtual-input-for-/dev/input/event31
kb_layout = us kb_layout = us
@ -55,6 +68,3 @@ device {
kb_variant = altgr-intl kb_variant = altgr-intl
kb_options = fkeys:basic_13-24 kb_options = fkeys:basic_13-24
} }
source = ~/.cache/evremap_hyprland_config.conf

View file

@ -12,9 +12,9 @@ case $ROFI_RETV in
IFS=' ' IFS=' '
for number in $NUMBERS; do for number in $NUMBERS; do
echo $number echo -en "$number\\0icon\\x1fnum-lock-on\\n"
done done
echo -en "$result\0non-selectable\x1ftrue\n" echo -en "$result\\0non-selectable\\x1ftrue\\x1ficon\\x1fcalc\n"
;; ;;
esac esac

View file

@ -6,7 +6,10 @@ setOption no-custom true
case $ROFI_RETV in case $ROFI_RETV in
0) 0)
defaultSink=$(pactl get-default-sink) defaultSink=$(pactl get-default-sink)
echo -en $(pactl --format=json list sinks | jq --arg default "$defaultSink" -r 'map("\(.name)\\0display\\x1f\(.description)\\x1fmeta\\x1fsinks,output,\(.description)\\x1factive\\x1f\(.name == $default)\\n") | add') echo -en $(pactl --format=json list sinks | jq --arg default "$defaultSink" -r 'map("\(.name)\\0display\\x1f\(.description)\\x1fmeta\\x1fsinks,output,\(.description)\\x1ficon\\x1faudio-ready\\n") | add')
defaultSource=$(pactl get-default-source)
echo -en $(pactl --format=json list sources | jq --arg default "$defaultSource" -r 'map("\(.name)\\0display\\x1f\(.description)\\x1fmeta\\x1fsource,input,\(.description)\\x1ficon\\x1fmic-ready\\n") | add')
;; ;;
1) 1)
name=$@ name=$@

View file

@ -5,6 +5,8 @@ $border-primary: $color2;
$transparentBackground: rgba(128,128,128, 0.6); $transparentBackground: rgba(128,128,128, 0.6);
$activeBackgroundColor: rgb(20,128,20);
* { * {
text-color: $foreground; text-color: $foreground;
@ -55,8 +57,16 @@ element {
border-radius: $border-radius; border-radius: $border-radius;
padding: $input-padding; padding: $input-padding;
normal.active {
background-color: rgba($activeBackgroundColor, 0.25);
}
selected { selected {
background-color: $transparentBackground; background-color: $transparentBackground;
&.active {
background-color: rgba($activeBackgroundColor, 0.6);
}
} }
} }