From 6361bfb52b8282e6e16a4585f19e732c2490c2ad Mon Sep 17 00:00:00 2001 From: TomasM Date: Tue, 14 Nov 2017 12:20:36 -0500 Subject: [PATCH] reorganize keymaps and add screen resolution to fluxbox menu --- .../03-desktop/rootcopy/root/.fluxbox/menu | 86 ++++++++++--------- .../03-desktop/rootcopy/root/.fluxbox/startup | 4 + 2 files changed, 49 insertions(+), 41 deletions(-) diff --git a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/menu b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/menu index aa558b0..a4747c2 100644 --- a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/menu +++ b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/menu @@ -6,57 +6,61 @@ [exec] (Calculator) { fbstartupnotify && qalculate } [exec] (Run) { fbappselect } [separator] - [workspaces] (Workspaces ...) - [submenu] (Keyboard layout ...) {} - [exec] (English US) { setxkbmap us } - [separator] - [exec] (Afghani) { setxkbmap af } - [exec] (Albanian) { setxkbmap al } - [exec] (Arabic [Morocco]) { setxkbmap ma } - [exec] (Arabic) { setxkbmap ara } - [exec] (Armenian) { setxkbmap am } - [exec] (Azerbaijani) { setxkbmap az } - [exec] (Belarusian) { setxkbmap by } - [exec] (Belgian) { setxkbmap be } - [exec] (Berber [Algeria]) { setxkbmap dz } - [exec] (Bosnian) { setxkbmap ba } - [exec] (Bulgarian) { setxkbmap bg } - [exec] (Croatian) { setxkbmap hr } + [workspaces] (Workspaces ...) + [submenu] (Screen resolution ...) {} + [include] (~/.fluxbox/menu_resolution) + [end] + [submenu] (Keyboard layout ...) {} [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] (English) { setxkbmap us } [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 } - [exec] (Hungarian) { setxkbmap hu } - [exec] (Icelandic) { setxkbmap is } - [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] (Portuguese) { setxkbmap br } [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 } + [submenu] (Other ...) {} + [exec] (Afghani) { setxkbmap af } + [exec] (Albanian) { setxkbmap al } + [exec] (Arabic [Morocco]) { setxkbmap ma } + [exec] (Arabic) { setxkbmap ara } + [exec] (Armenian) { setxkbmap am } + [exec] (Azerbaijani) { setxkbmap az } + [exec] (Belarusian) { setxkbmap by } + [exec] (Belgian) { setxkbmap be } + [exec] (Berber [Algeria]) { setxkbmap dz } + [exec] (Bosnian) { setxkbmap ba } + [exec] (Bulgarian) { setxkbmap bg } + [exec] (Croatian) { setxkbmap hr } + [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] (German [Austria]) { setxkbmap at } + [exec] (German [Switzerland]) { setxkbmap ch } + [exec] (Greek) { setxkbmap gr } + [exec] (Hebrew) { setxkbmap il } + [exec] (Hungarian) { setxkbmap hu } + [exec] (Icelandic) { setxkbmap is } + [exec] (Indian) { setxkbmap in } + [exec] (Iraqi) { setxkbmap iq } + [exec] (Irish) { setxkbmap ie } + [exec] (Latvian) { setxkbmap lv } + [exec] (Lithuanian) { setxkbmap lt } + [exec] (Norwegian) { setxkbmap no } + [exec] (Persian) { setxkbmap ir } + [exec] (Portuguese) { setxkbmap pt } + [exec] (Romanian) { setxkbmap ro } + [exec] (Serbian) { setxkbmap rs } + [exec] (Slovenian) { setxkbmap si } + [exec] (Swedish) { setxkbmap se } + [end] [end] [exec] (Exit / Logout) { fblogout } diff --git a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup index 4253eeb..d6968df 100644 --- a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup +++ b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup @@ -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