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

View File

@ -516,15 +516,15 @@ globalkeys = gears.table.join(
-- Launcher
--awful.key({ modkey }, "p", function() awful.spawn.with_shell("dmenu_launcher") end,
-- {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"}),
-- 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"}),
-- 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"})
)

View File

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

View File

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