reorganize keymaps and add screen resolution to fluxbox menu
parent
04977547aa
commit
6361bfb52b
|
|
@ -7,9 +7,23 @@
|
|||
[exec] (Run) { fbappselect }
|
||||
[separator]
|
||||
[workspaces] (Workspaces ...)
|
||||
[submenu] (Screen resolution ...) {}
|
||||
[include] (~/.fluxbox/menu_resolution)
|
||||
[end]
|
||||
[submenu] (Keyboard layout ...) {}
|
||||
[exec] (English US) { setxkbmap us }
|
||||
[separator]
|
||||
[exec] (Czech) { setxkbmap cz }
|
||||
[exec] (English) { setxkbmap us }
|
||||
[exec] (French) { setxkbmap fr }
|
||||
[exec] (German) { setxkbmap de }
|
||||
[exec] (Italian) { setxkbmap it }
|
||||
[exec] (Polish) { setxkbmap pl }
|
||||
[exec] (Portuguese) { setxkbmap br }
|
||||
[exec] (Russian) { setxkbmap ru }
|
||||
[exec] (Slovak) { setxkbmap sk }
|
||||
[exec] (Spanish) { setxkbmap es }
|
||||
[exec] (Turkish) { setxkbmap tr }
|
||||
[exec] (Ukrainian) { setxkbmap ua }
|
||||
[submenu] (Other ...) {}
|
||||
[exec] (Afghani) { setxkbmap af }
|
||||
[exec] (Albanian) { setxkbmap al }
|
||||
[exec] (Arabic [Morocco]) { setxkbmap ma }
|
||||
|
|
@ -22,16 +36,13 @@
|
|||
[exec] (Bosnian) { setxkbmap ba }
|
||||
[exec] (Bulgarian) { setxkbmap bg }
|
||||
[exec] (Croatian) { setxkbmap hr }
|
||||
[exec] (Czech) { setxkbmap cz }
|
||||
[exec] (Danish) { setxkbmap dk }
|
||||
[exec] (Dutch) { setxkbmap nl }
|
||||
[exec] (English [Australian]) { setxkbmap au }
|
||||
[exec] (Estonian) { setxkbmap ee }
|
||||
[exec] (Finnish) { setxkbmap fi }
|
||||
[exec] (French [Canada]) { setxkbmap ca }
|
||||
[exec] (French) { setxkbmap fr }
|
||||
[exec] (German [Austria]) { setxkbmap at }
|
||||
[exec] (German) { setxkbmap de }
|
||||
[exec] (German [Switzerland]) { setxkbmap ch }
|
||||
[exec] (Greek) { setxkbmap gr }
|
||||
[exec] (Hebrew) { setxkbmap il }
|
||||
|
|
@ -40,23 +51,16 @@
|
|||
[exec] (Indian) { setxkbmap in }
|
||||
[exec] (Iraqi) { setxkbmap iq }
|
||||
[exec] (Irish) { setxkbmap ie }
|
||||
[exec] (Italian) { setxkbmap it }
|
||||
[exec] (Latvian) { setxkbmap lv }
|
||||
[exec] (Lithuanian) { setxkbmap lt }
|
||||
[exec] (Norwegian) { setxkbmap no }
|
||||
[exec] (Persian) { setxkbmap ir }
|
||||
[exec] (Polish) { setxkbmap pl }
|
||||
[exec] (Portuguese [Brazil]) { setxkbmap br }
|
||||
[exec] (Portuguese) { setxkbmap pt }
|
||||
[exec] (Romanian) { setxkbmap ro }
|
||||
[exec] (Russian) { setxkbmap ru }
|
||||
[exec] (Serbian) { setxkbmap rs }
|
||||
[exec] (Slovak) { setxkbmap sk }
|
||||
[exec] (Slovenian) { setxkbmap si }
|
||||
[exec] (Spanish) { setxkbmap es }
|
||||
[exec] (Swedish) { setxkbmap se }
|
||||
[exec] (Turkish) { setxkbmap tr }
|
||||
[exec] (Ukrainian) { setxkbmap ua }
|
||||
[end]
|
||||
[end]
|
||||
[exec] (Exit / Logout) { fblogout }
|
||||
|
||||
|
|
|
|||
|
|
@ -74,6 +74,10 @@ rm -f $SIGNAL2 2>/dev/null
|
|||
exec systrayicon --command fblogout --iconfile /usr/share/icons/locolor/16x16/actions/system-shutdown-symbolic.png
|
||||
) &
|
||||
|
||||
# gen screen resolutions to fluxbox menu
|
||||
xrandr 2>/dev/null | fgrep x | fgrep . | sort -n | tr -s " " | cut -d " " -f 2 \
|
||||
| sed -r "s:(.*):[exec] (\\1) {xrandr -s \\1}:" > ~/.fluxbox/menu_resolution
|
||||
|
||||
# In all cases, wait for the sound sleeper.
|
||||
# If startup took longer (sound completed already), no extra wait
|
||||
wait $SOUNDPID
|
||||
|
|
|
|||
Loading…
Reference in New Issue