Switching dmenu to rofi; working on rofi theme.

This commit is contained in:
Derek Taylor
2024-01-25 17:12:03 -06:00
parent 96384be99c
commit 8075e4c13a
3 changed files with 37 additions and 36 deletions

View File

@@ -144,7 +144,7 @@ A list of available commands that can be bound to keys can be found at: https://
keys = [ keys = [
# The essentials # The essentials
Key([mod], "Return", lazy.spawn(myTerm), desc="Terminal"), Key([mod], "Return", lazy.spawn(myTerm), desc="Terminal"),
Key([mod, "shift"], "Return", lazy.spawn("dm-run"), desc='Run Launcher'), Key([mod, "shift"], "Return", lazy.spawn("rofi -show drun"), desc='Run Launcher'),
Key([mod], "b", lazy.spawn(myBrowser), desc='Web browser'), Key([mod], "b", lazy.spawn(myBrowser), desc='Web browser'),
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"), Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"),
@@ -238,23 +238,23 @@ keys = [
lazy.spawn("/usr/bin/emacs --daemon"), lazy.spawn("/usr/bin/emacs --daemon"),
desc='Kill/restart the Emacs daemon') desc='Kill/restart the Emacs daemon')
]), ]),
# Dmenu scripts launched using the key chord SUPER+p followed by 'key' # Dmenu/rofi scripts launched using the key chord SUPER+p followed by 'key'
KeyChord([mod], "p", [ KeyChord([mod], "p", [
Key([], "h", lazy.spawn("dm-hub"), desc='List all dmscripts'), Key([], "h", lazy.spawn("dm-hub -r"), desc='List all dmscripts'),
Key([], "a", lazy.spawn("dm-sounds"), desc='Choose ambient sound'), Key([], "a", lazy.spawn("dm-sounds -r"), desc='Choose ambient sound'),
Key([], "b", lazy.spawn("dm-setbg"), desc='Set background'), Key([], "b", lazy.spawn("dm-setbg -r"), desc='Set background'),
Key([], "c", lazy.spawn("dtos-colorscheme"), desc='Choose color scheme'), Key([], "c", lazy.spawn("dtos-colorscheme -r"), desc='Choose color scheme'),
Key([], "e", lazy.spawn("dm-confedit"), desc='Choose a config file to edit'), Key([], "e", lazy.spawn("dm-confedit -r"), desc='Choose a config file to edit'),
Key([], "i", lazy.spawn("dm-maim"), desc='Take a screenshot'), Key([], "i", lazy.spawn("dm-maim -r"), desc='Take a screenshot'),
Key([], "k", lazy.spawn("dm-kill"), desc='Kill processes '), Key([], "k", lazy.spawn("dm-kill -r"), desc='Kill processes '),
Key([], "m", lazy.spawn("dm-man"), desc='View manpages'), Key([], "m", lazy.spawn("dm-man -r"), desc='View manpages'),
Key([], "n", lazy.spawn("dm-note"), desc='Store and copy notes'), Key([], "n", lazy.spawn("dm-note -r"), desc='Store and copy notes'),
Key([], "o", lazy.spawn("dm-bookman"), desc='Browser bookmarks'), Key([], "o", lazy.spawn("dm-bookman -r"), desc='Browser bookmarks'),
Key([], "p", lazy.spawn("passmenu -p \"Pass: \""), desc='Logout menu'), Key([], "p", lazy.spawn("passmenu -p \"Pass: \""), desc='Logout menu'),
Key([], "q", lazy.spawn("dm-logout"), desc='Logout menu'), Key([], "q", lazy.spawn("dm-logout -r"), desc='Logout menu'),
Key([], "r", lazy.spawn("dm-radio"), desc='Listen to online radio'), Key([], "r", lazy.spawn("dm-radio -r"), desc='Listen to online radio'),
Key([], "s", lazy.spawn("dm-websearch"), desc='Search various engines'), Key([], "s", lazy.spawn("dm-websearch -r"), desc='Search various engines'),
Key([], "t", lazy.spawn("dm-translate"), desc='Translate text') Key([], "t", lazy.spawn("dm-translate -r"), desc='Translate text')
]) ])
] ]

View File

@@ -65,7 +65,7 @@ def maximize_by_switching_layout(qtile):
keys = [ keys = [
# The essentials # The essentials
Key([mod], "Return", lazy.spawn(myTerm), desc="Terminal"), Key([mod], "Return", lazy.spawn(myTerm), desc="Terminal"),
Key([mod, "shift"], "Return", lazy.spawn("dm-run"), desc='Run Launcher'), Key([mod, "shift"], "Return", lazy.spawn("rofi -show drun"), desc='Run Launcher'),
Key([mod], "b", lazy.spawn(myBrowser), desc='Web browser'), Key([mod], "b", lazy.spawn(myBrowser), desc='Web browser'),
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"), Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"),
@@ -159,23 +159,23 @@ keys = [
lazy.spawn("/usr/bin/emacs --daemon"), lazy.spawn("/usr/bin/emacs --daemon"),
desc='Kill/restart the Emacs daemon') desc='Kill/restart the Emacs daemon')
]), ]),
# Dmenu scripts launched using the key chord SUPER+p followed by 'key' # Dmenu/rofi scripts launched using the key chord SUPER+p followed by 'key'
KeyChord([mod], "p", [ KeyChord([mod], "p", [
Key([], "h", lazy.spawn("dm-hub"), desc='List all dmscripts'), Key([], "h", lazy.spawn("dm-hub -r"), desc='List all dmscripts'),
Key([], "a", lazy.spawn("dm-sounds"), desc='Choose ambient sound'), Key([], "a", lazy.spawn("dm-sounds -r"), desc='Choose ambient sound'),
Key([], "b", lazy.spawn("dm-setbg"), desc='Set background'), Key([], "b", lazy.spawn("dm-setbg -r"), desc='Set background'),
Key([], "c", lazy.spawn("dtos-colorscheme"), desc='Choose color scheme'), Key([], "c", lazy.spawn("dtos-colorscheme -r"), desc='Choose color scheme'),
Key([], "e", lazy.spawn("dm-confedit"), desc='Choose a config file to edit'), Key([], "e", lazy.spawn("dm-confedit -r"), desc='Choose a config file to edit'),
Key([], "i", lazy.spawn("dm-maim"), desc='Take a screenshot'), Key([], "i", lazy.spawn("dm-maim -r"), desc='Take a screenshot'),
Key([], "k", lazy.spawn("dm-kill"), desc='Kill processes '), Key([], "k", lazy.spawn("dm-kill -r"), desc='Kill processes '),
Key([], "m", lazy.spawn("dm-man"), desc='View manpages'), Key([], "m", lazy.spawn("dm-man -r"), desc='View manpages'),
Key([], "n", lazy.spawn("dm-note"), desc='Store and copy notes'), Key([], "n", lazy.spawn("dm-note -r"), desc='Store and copy notes'),
Key([], "o", lazy.spawn("dm-bookman"), desc='Browser bookmarks'), Key([], "o", lazy.spawn("dm-bookman -r"), desc='Browser bookmarks'),
Key([], "p", lazy.spawn("passmenu -p \"Pass: \""), desc='Logout menu'), Key([], "p", lazy.spawn("passmenu -p \"Pass: \""), desc='Logout menu'),
Key([], "q", lazy.spawn("dm-logout"), desc='Logout menu'), Key([], "q", lazy.spawn("dm-logout -r"), desc='Logout menu'),
Key([], "r", lazy.spawn("dm-radio"), desc='Listen to online radio'), Key([], "r", lazy.spawn("dm-radio -r"), desc='Listen to online radio'),
Key([], "s", lazy.spawn("dm-websearch"), desc='Search various engines'), Key([], "s", lazy.spawn("dm-websearch -r"), desc='Search various engines'),
Key([], "t", lazy.spawn("dm-translate"), desc='Translate text') Key([], "t", lazy.spawn("dm-translate -r"), desc='Translate text')
]) ])
] ]

View File

@@ -7,10 +7,10 @@
* { * {
background-color: #282c34; background-color: #282c34;
border-color: #282c34; border-color: #51afef;
text-color: #bbc2cf; text-color: #bbc2cf;
font: "SauceCodePro Nerd Font Mono 9"; font: "Ubuntu Mono 11";
prompt-font: "Ubuntu Bold 9"; prompt-font: "Ubuntu Bold 10";
prompt-background: #51afef; prompt-background: #51afef;
prompt-foreground: #282c34; prompt-foreground: #282c34;
prompt-padding: 4px; prompt-padding: 4px;
@@ -34,7 +34,8 @@
} }
#listview { #listview {
fixed-height: 0; fixed-height: 0;
border: 2px dash 0px 0px ; border: 2px solid 0px 0px ;
border-color: #1c1f24;
spacing: 2px ; spacing: 2px ;
scrollbar: true; scrollbar: true;
padding: 2px 0px 0px ; padding: 2px 0px 0px ;