feat: improve rofi

This commit is contained in:
Klesh Wong 2022-05-15 15:30:44 +08:00
parent d9a8cd3549
commit e47a26c475
4 changed files with 10 additions and 15 deletions

View File

@ -14,7 +14,7 @@ esac
# necessary tools # necessary tools
#$DIR/dmenu.sh #$DIR/dmenu.sh
#$DIR/slock.sh #$DIR/slock.sh
$DRI/dict.sh $DIR/dict.sh
# install widgets # install widgets
if [ ! -d "$XDG_CONFIG_HOME/awesome/awesome-wm-widgets" ]; then if [ ! -d "$XDG_CONFIG_HOME/awesome/awesome-wm-widgets" ]; then
@ -24,9 +24,6 @@ fi
# ~/.xinitrc # ~/.xinitrc
cat <<'EOT' > ~/.xinitrc cat <<'EOT' > ~/.xinitrc
export BOOKMARK_SEARCHER="rofi -dmenu"
export D_SELECTOR="rofi -dmenu"
export QT_QPA_PLATFORMTHEME="qt5ct" export QT_QPA_PLATFORMTHEME="qt5ct"
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

View File

@ -516,15 +516,15 @@ globalkeys = gears.table.join(
-- Launcher -- Launcher
--awful.key({ modkey }, "p", function() awful.spawn.with_shell("dmenu_launcher") end, --awful.key({ modkey }, "p", function() awful.spawn.with_shell("dmenu_launcher") end,
-- {description = "dmenu launcher", group = "launcher"}), -- {description = "dmenu launcher", group = "launcher"}),
awful.key({ modkey }, "p", function() awful.spawn.with_shell("rofi -show combi -combi-modi drun,window,run") end, awful.key({ modkey }, "p", function() awful.spawn.with_shell("rofi -show combi") end,
{description = "rofi", group = "launcher"}), {description = "rofi", group = "launcher"}),
-- Bookmark -- Bookmark
awful.key({ modkey }, "b", function() awful.spawn.with_shell('bm') end, awful.key({ modkey }, "b", function() awful.spawn.with_shell('BOOKMARK_SEARCHER="rofi -dmenu -p bookmark" bm') end,
{description = "bookmark", group = "launcher"}), {description = "bookmark", group = "launcher"}),
-- Dict.sh -- Dict.sh
awful.key({ modkey }, "t", function() awful.spawn.with_shell('D_SELECTOR= d "$(xsel -o)"') end, awful.key({ modkey }, "t", function() awful.spawn.with_shell('D_SELECTOR="rofi -dmenu -p dict.sh" d "$(xsel -o)"') end,
{description = "dict.sh", group = "launcher"}) {description = "dict.sh", group = "launcher"})
) )

View File

@ -7,6 +7,7 @@
fg-col: #D9E0EE; fg-col: #D9E0EE;
fg-col2: #F28FAD; fg-col2: #F28FAD;
grey: #D9E0EE; grey: #D9E0EE;
width: 600; width: 900;
border-radius: 5px;
} }

View File

@ -1,7 +1,7 @@
configuration{ configuration{
modi: "run,drun,window"; modi: "drun,run,window";
lines: 5; lines: 5;
font: "JetBrainsMono Nerd Font 14"; font: "monospace 14";
show-icons: true; show-icons: true;
icon-theme: "Oranchelo"; icon-theme: "Oranchelo";
terminal: "st"; terminal: "st";
@ -14,9 +14,6 @@ configuration{
display-window: " 﩯 window"; display-window: " 﩯 window";
display-Network: " 󰤨 Network"; display-Network: " 󰤨 Network";
sidebar-mode: true; sidebar-mode: true;
drun {
parse-user: true;
}
} }
@theme "catppuccin" @theme "catppuccin"
@ -89,13 +86,13 @@ element selected {
mode-switcher { mode-switcher {
spacing: 0; spacing: 0;
} }
button { button {
padding: 10px; padding: 10px;
background-color: @bg-col-light; background-color: @bg-col-light;
text-color: @grey; text-color: @grey;
vertical-align: 0.5; vertical-align: 0.5;
horizontal-align: 0.5; horizontal-align: 0.5;
} }