From 8075e4c13abec186fadfb8d85875a185aea52fdf Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Thu, 25 Jan 2024 17:12:03 -0600 Subject: [PATCH] Switching dmenu to rofi; working on rofi theme. --- .config/qtile/README.org | 32 +++++++++++++++--------------- .config/qtile/config.py | 32 +++++++++++++++--------------- .config/rofi/themes/dt-center.rasi | 9 +++++---- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/.config/qtile/README.org b/.config/qtile/README.org index ae32a3c..d9e0136 100644 --- a/.config/qtile/README.org +++ b/.config/qtile/README.org @@ -144,7 +144,7 @@ A list of available commands that can be bound to keys can be found at: https:// keys = [ # The essentials 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], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"), @@ -238,23 +238,23 @@ keys = [ lazy.spawn("/usr/bin/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", [ - Key([], "h", lazy.spawn("dm-hub"), desc='List all dmscripts'), - Key([], "a", lazy.spawn("dm-sounds"), desc='Choose ambient sound'), - Key([], "b", lazy.spawn("dm-setbg"), desc='Set background'), - Key([], "c", lazy.spawn("dtos-colorscheme"), desc='Choose color scheme'), - Key([], "e", lazy.spawn("dm-confedit"), desc='Choose a config file to edit'), - Key([], "i", lazy.spawn("dm-maim"), desc='Take a screenshot'), - Key([], "k", lazy.spawn("dm-kill"), desc='Kill processes '), - Key([], "m", lazy.spawn("dm-man"), desc='View manpages'), - Key([], "n", lazy.spawn("dm-note"), desc='Store and copy notes'), - Key([], "o", lazy.spawn("dm-bookman"), desc='Browser bookmarks'), + Key([], "h", lazy.spawn("dm-hub -r"), desc='List all dmscripts'), + Key([], "a", lazy.spawn("dm-sounds -r"), desc='Choose ambient sound'), + Key([], "b", lazy.spawn("dm-setbg -r"), desc='Set background'), + Key([], "c", lazy.spawn("dtos-colorscheme -r"), desc='Choose color scheme'), + Key([], "e", lazy.spawn("dm-confedit -r"), desc='Choose a config file to edit'), + Key([], "i", lazy.spawn("dm-maim -r"), desc='Take a screenshot'), + Key([], "k", lazy.spawn("dm-kill -r"), desc='Kill processes '), + Key([], "m", lazy.spawn("dm-man -r"), desc='View manpages'), + Key([], "n", lazy.spawn("dm-note -r"), desc='Store and copy notes'), + Key([], "o", lazy.spawn("dm-bookman -r"), desc='Browser bookmarks'), Key([], "p", lazy.spawn("passmenu -p \"Pass: \""), desc='Logout menu'), - Key([], "q", lazy.spawn("dm-logout"), desc='Logout menu'), - Key([], "r", lazy.spawn("dm-radio"), desc='Listen to online radio'), - Key([], "s", lazy.spawn("dm-websearch"), desc='Search various engines'), - Key([], "t", lazy.spawn("dm-translate"), desc='Translate text') + Key([], "q", lazy.spawn("dm-logout -r"), desc='Logout menu'), + Key([], "r", lazy.spawn("dm-radio -r"), desc='Listen to online radio'), + Key([], "s", lazy.spawn("dm-websearch -r"), desc='Search various engines'), + Key([], "t", lazy.spawn("dm-translate -r"), desc='Translate text') ]) ] diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 693d476..989c8b1 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -65,7 +65,7 @@ def maximize_by_switching_layout(qtile): keys = [ # The essentials 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], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"), @@ -159,23 +159,23 @@ keys = [ lazy.spawn("/usr/bin/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", [ - Key([], "h", lazy.spawn("dm-hub"), desc='List all dmscripts'), - Key([], "a", lazy.spawn("dm-sounds"), desc='Choose ambient sound'), - Key([], "b", lazy.spawn("dm-setbg"), desc='Set background'), - Key([], "c", lazy.spawn("dtos-colorscheme"), desc='Choose color scheme'), - Key([], "e", lazy.spawn("dm-confedit"), desc='Choose a config file to edit'), - Key([], "i", lazy.spawn("dm-maim"), desc='Take a screenshot'), - Key([], "k", lazy.spawn("dm-kill"), desc='Kill processes '), - Key([], "m", lazy.spawn("dm-man"), desc='View manpages'), - Key([], "n", lazy.spawn("dm-note"), desc='Store and copy notes'), - Key([], "o", lazy.spawn("dm-bookman"), desc='Browser bookmarks'), + Key([], "h", lazy.spawn("dm-hub -r"), desc='List all dmscripts'), + Key([], "a", lazy.spawn("dm-sounds -r"), desc='Choose ambient sound'), + Key([], "b", lazy.spawn("dm-setbg -r"), desc='Set background'), + Key([], "c", lazy.spawn("dtos-colorscheme -r"), desc='Choose color scheme'), + Key([], "e", lazy.spawn("dm-confedit -r"), desc='Choose a config file to edit'), + Key([], "i", lazy.spawn("dm-maim -r"), desc='Take a screenshot'), + Key([], "k", lazy.spawn("dm-kill -r"), desc='Kill processes '), + Key([], "m", lazy.spawn("dm-man -r"), desc='View manpages'), + Key([], "n", lazy.spawn("dm-note -r"), desc='Store and copy notes'), + Key([], "o", lazy.spawn("dm-bookman -r"), desc='Browser bookmarks'), Key([], "p", lazy.spawn("passmenu -p \"Pass: \""), desc='Logout menu'), - Key([], "q", lazy.spawn("dm-logout"), desc='Logout menu'), - Key([], "r", lazy.spawn("dm-radio"), desc='Listen to online radio'), - Key([], "s", lazy.spawn("dm-websearch"), desc='Search various engines'), - Key([], "t", lazy.spawn("dm-translate"), desc='Translate text') + Key([], "q", lazy.spawn("dm-logout -r"), desc='Logout menu'), + Key([], "r", lazy.spawn("dm-radio -r"), desc='Listen to online radio'), + Key([], "s", lazy.spawn("dm-websearch -r"), desc='Search various engines'), + Key([], "t", lazy.spawn("dm-translate -r"), desc='Translate text') ]) ] diff --git a/.config/rofi/themes/dt-center.rasi b/.config/rofi/themes/dt-center.rasi index 63e73eb..4013f86 100644 --- a/.config/rofi/themes/dt-center.rasi +++ b/.config/rofi/themes/dt-center.rasi @@ -7,10 +7,10 @@ * { background-color: #282c34; - border-color: #282c34; + border-color: #51afef; text-color: #bbc2cf; - font: "SauceCodePro Nerd Font Mono 9"; - prompt-font: "Ubuntu Bold 9"; + font: "Ubuntu Mono 11"; + prompt-font: "Ubuntu Bold 10"; prompt-background: #51afef; prompt-foreground: #282c34; prompt-padding: 4px; @@ -34,7 +34,8 @@ } #listview { fixed-height: 0; - border: 2px dash 0px 0px ; + border: 2px solid 0px 0px ; + border-color: #1c1f24; spacing: 2px ; scrollbar: true; padding: 2px 0px 0px ;