feat: super + o for openning note

This commit is contained in:
Klesh Wong 2022-05-20 15:09:34 +08:00
parent a340d8e84f
commit fd39425cb1
3 changed files with 18 additions and 7 deletions

View File

@ -34,15 +34,16 @@ export VIM_MODE=enhanced
export XDG_RUNTIME_DIR=/tmp/runtime-klesh export XDG_RUNTIME_DIR=/tmp/runtime-klesh
mkdir -p $XDG_RUNTIME_DIR mkdir -p $XDG_RUNTIME_DIR
export LOCKER='i3lock -i /home/klesh/Nextcloud/wallpapers/1027.png -t --nofork' export LOCKER='/usr/bin/i3lock -i /home/klesh/Nextcloud/wallpapers/1027.png -t --nofork'
autorandr --change --force autorandr --change --force
mpd mpd
picomdaemon picomdaemon
# power save # disable screen saver / turn off monitor if inactived for 300 secs
xset 600 xset s off
xss-lock $(command -v lock.sh) & xset dpms 300 300 300
xss-lock -l $(command -v lock.sh) &
exec dbus-run-session -- awesome 2> /tmp/awesome.log exec dbus-run-session -- awesome 2> /tmp/awesome.log
EOT EOT

View File

@ -542,8 +542,12 @@ clientkeys = gears.table.join(
{description = "toggle floating", group = "client"}), {description = "toggle floating", group = "client"}),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end, awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
{description = "move to master", group = "client"}), {description = "move to master", group = "client"}),
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end, --awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}), --{description = "move to screen", group = "client"}),
awful.key({ modkey, }, "o", function (c)
awful.spawn.with_shell("find ~/Nextcloud/notes/ | rofi -dmenu -title notes | xargs xdg-open")
end,
{description = "open note", group = "hotkeys"}),
--awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, --awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
--{description = "toggle keep on top", group = "client"}), --{description = "toggle keep on top", group = "client"}),
awful.key({ modkey, }, "n", awful.key({ modkey, }, "n",

View File

@ -1,5 +1,5 @@
configuration{ configuration{
combi-modi: "drun,run,window"; combi-modi: "drun,run,window,filebrowser";
modi: "drun,run,window"; modi: "drun,run,window";
lines: 5; lines: 5;
font: "monospace 14"; font: "monospace 14";
@ -15,6 +15,12 @@ configuration{
display-window: " 﩯 window"; display-window: " 﩯 window";
display-Network: " 󰤨 Network"; display-Network: " 󰤨 Network";
sidebar-mode: true; sidebar-mode: true;
matching: "fuzzy";
filebrowser {
sorting-method: "name";
directories-first: true;
}
} }
@theme "catppuccin" @theme "catppuccin"