File tree 2 files changed +7
-31
lines changed
2 files changed +7
-31
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,13 @@ _rofi () {
9
9
# xdotool needs the keyboard layout to be set using setxkbmap
10
10
# You can do this in your autostart scripts (e.g. xinitrc)
11
11
12
- # Alternatively you can set your options here and set fix_layout to "true"
13
- # rofi-pass will try to autodetect correct settings, if no layout is set (not recommended)
14
- # if model is unset, rofi-pass defaults to 'pc104'
15
-
12
+ # If for some reason, you cannot do this, you can set the command here.
13
+ # and set fix_layout to true
16
14
fix_layout=false
17
- model=pc104
18
- layout=us
19
- #variant= us
20
- #option=compose:caps
15
+
16
+ layout_cmd () {
17
+ setxkbmap us
18
+ }
21
19
22
20
# fields to be used
23
21
URL_field='url'
Original file line number Diff line number Diff line change 597
597
# fix keyboard layout if enabled in config
598
598
if [[ $fix_layout == " true" ]]
599
599
then
600
- if [[ -z $model ]]
601
- then
602
- model=pc104
603
- fi
604
- if [[ -n $layout ]]
605
- then
606
- if [[ -n $variant && -n $option ]]
607
- then
608
- setxkbmap -model $model -layout $layout -variant $variant -option $option
609
- elif [[ -n $variant && -z $option ]]
610
- then
611
- setxkbmap -model $model -layout $layout -variant $variant
612
- elif [[ -z $variant && -n $option ]]
613
- then
614
- setxkbmap -model $model -layout $layout -option $option
615
- elif [[ -z $variant && -z $option ]]
616
- then
617
- setxkbmap -model $model -layout $layout
618
- fi
619
- else
620
- keyboard=$( setxkbmap -query | grep -E ' layout|variant' | grep -oE ' [^: ]+$' | tr ' \n' ' ' )
621
- setxkbmap ${keyboard}
622
- fi
600
+ layout_cmd
623
601
fi
624
602
625
603
# set help color
You can’t perform that action at this time.
0 commit comments