From d475856783f8e4243dd38906886563366d901a19 Mon Sep 17 00:00:00 2001 From: Mohammed Ziad Date: Sat, 28 Mar 2020 16:12:49 +0000 Subject: [PATCH] make opening terminal programs more dynamic --- .config/awesome/rc.lua | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index f172477..d80e892 100755 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -207,7 +207,7 @@ beautiful.init(string.format(gears.filesystem.get_configuration_dir() .. "/theme local myawesomemenu = { { "hotkeys", function() return false, hotkeys_popup.show_help end }, { "manual", terminal .. " -e 'man awesome'" }, - { "edit config", "st vim /home/dt/.config/awesome/rc.lua" }, + { "edit config", terminal.." vim /home/dt/.config/awesome/rc.lua" }, { "arandr", "arandr" }, { "restart", awesome.restart }, } @@ -287,33 +287,33 @@ globalkeys = my_table.join( {description = "trading programs" , group = "dmenu scripts" }), -- My applications (Super+Alt+Key) - awful.key({ modkey, altkey }, "a", function () awful.util.spawn( "st -e ncpamixer" ) end, + awful.key({ modkey, altkey }, "a", function () awful.util.spawn( terminal.." -e ncpamixer" ) end, {description = "ncpamixer" , group = "terminal apps" }), awful.key({ modkey, altkey }, "b", function () awful.util.spawn( "surf www.youtube.com/c/DistroTube" ) end, {description = "surf web browser" , group = "gui apps" }), - awful.key({ modkey, altkey }, "c", function () awful.util.spawn( "st -e cmus" ) end, + awful.key({ modkey, altkey }, "c", function () awful.util.spawn( terminal.." -e cmus" ) end, {description = "cmus" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "e", function () awful.util.spawn( "st -e neomutt" ) end, + awful.key({ modkey, altkey }, "e", function () awful.util.spawn( terminal.." -e neomutt" ) end, {description = "neomutt email" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "f", function () awful.util.spawn( "st -e sh ./.config/vifm/scripts/vifmrun" ) end, + awful.key({ modkey, altkey }, "f", function () awful.util.spawn( terminal.." -e sh ./.config/vifm/scripts/vifmrun" ) end, {description = "vifm" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "i", function () awful.util.spawn( "st -e irssi" ) end, + awful.key({ modkey, altkey }, "i", function () awful.util.spawn( terminal.." -e irssi" ) end, {description = "irssi" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "j", function () awful.util.spawn( "st -e joplin" ) end, + awful.key({ modkey, altkey }, "j", function () awful.util.spawn( terminal.." -e joplin" ) end, {description = "joplin" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "l", function () awful.util.spawn( "st -e lynx --cfg=~/.lynx/lynx.cfg --lss=~/.lynx/lynx.lss -vikeys gopher://distro.tube" ) end, + awful.key({ modkey, altkey }, "l", function () awful.util.spawn( terminal.." -e lynx --cfg=~/.lynx/lynx.cfg --lss=~/.lynx/lynx.lss -vikeys gopher://distro.tube" ) end, {description = "lynx cli browser" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "m", function () awful.util.spawn( "st -e toot curses" ) end, + awful.key({ modkey, altkey }, "m", function () awful.util.spawn( terminal.." -e toot curses" ) end, {description = "toot curses" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "n", function () awful.util.spawn( "st -e newsboat" ) end, + awful.key({ modkey, altkey }, "n", function () awful.util.spawn( terminal.." -e newsboat" ) end, {description = "newsboat" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "p", function () awful.util.spawn( "st -e pianobar" ) end, + awful.key({ modkey, altkey }, "p", function () awful.util.spawn( terminal.." -e pianobar" ) end, {description = "pianobar" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "r", function () awful.util.spawn( "st -e rtv" ) end, + awful.key({ modkey, altkey }, "r", function () awful.util.spawn( terminal.." -e rtv" ) end, {description = "rtv" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "w", function () awful.util.spawn( "st -e wopr report.xml" ) end, + awful.key({ modkey, altkey }, "w", function () awful.util.spawn( terminal.." -e wopr report.xml" ) end, {description = "wopr report.xml" , group = "terminal apps" }), - awful.key({ modkey, altkey }, "y", function () awful.util.spawn( "st -e youtube-viewer" ) end, + awful.key({ modkey, altkey }, "y", function () awful.util.spawn( terminal.." -e youtube-viewer" ) end, {description = "youtube-viewer" , group = "terminal apps" }), -- screenshots