diff options
Diffstat (limited to 'oxwm/.config')
| -rw-r--r-- | oxwm/.config/oxwm/config.lua | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/oxwm/.config/oxwm/config.lua b/oxwm/.config/oxwm/config.lua index d899890..eda0688 100644 --- a/oxwm/.config/oxwm/config.lua +++ b/oxwm/.config/oxwm/config.lua @@ -138,7 +138,10 @@ oxwm.gaps.set_outer(0, 0) -- Examples (uncomment to use): -- oxwm.rule.add({ instance = "gimp", floating = true }) oxwm.rule.add({ class = "firefox", title = "Library", floating = true }) +oxwm.rule.add({ class = "firefox", role = "GtkFileChooserDialog", floating = true }) oxwm.rule.add({ class = "firefox", tag = 2 }) +oxwm.rule.add({ class = "zenity", floating = true }) +oxwm.rule.add({ class = "amiberry", tag = 3 }) -- oxwm.rule.add({ instance = "mpv", floating = true }) -- To find window properties, use xprop and click on the window @@ -177,8 +180,8 @@ oxwm.bar.set_scheme_selected(colors.cyan, colors.bg, colors.purple) -- Basic window management oxwm.key.bind({ modkey }, "Return", oxwm.spawn_terminal()) --- Launch Dmenu -oxwm.key.bind({ modkey }, "D", oxwm.spawn({ "sh", "-c", "dmenu_run -l 10" })) +-- Launch Rofi +oxwm.key.bind({ modkey }, "D", oxwm.spawn({ "sh", "-c", "rofi -show run" })) -- Copy screenshot to clipboard -- oxwm.key.bind({ modkey }, "S", oxwm.spawn({ "sh", "-c", "maim -s | xclip -selection clipboard -t image/png" })) oxwm.key.bind({ modkey }, "Q", oxwm.client.kill()) @@ -274,9 +277,24 @@ oxwm.key.bind({ modkey, "Control", "Shift" }, "9", oxwm.tag.toggletag(8)) -- Format: {{modifiers}, key1}, {{modifiers}, key2}, ... -- Example: Press Mod4+Space, then release and press T to spawn a terminal without auto starting anything. oxwm.key.chord({ + { { modkey }, "b" }, + { {}, "a" } +}, oxwm.spawn({ "add-bookmark.sh" })) + +oxwm.key.chord({ + { { modkey }, "b" }, + { {}, "o" } +}, oxwm.spawn({ "open-bookmark.sh" })) + +oxwm.key.chord({ + { { modkey }, "Space" }, + { {}, "p" } +}, oxwm.spawn({ "power.sh" })) + +oxwm.key.chord({ { { modkey }, "Space" }, - { {}, "T" } -}, oxwm.spawn({ "alacritty", "-e", "bash" })) + { {}, "b" } +}, oxwm.spawn({ "bluetooth.sh" })) ------------------------------------------------------------------------------- -- Autostart @@ -286,7 +304,7 @@ oxwm.key.chord({ -- Keycode 108 was found using the exv command and pressing the AltGr key in the popup window. oxwm.autostart("xmodmap -e 'keycode 108 = Super_R' -e 'add mod4 = Super_R'") +oxwm.autostart("dunst") -- oxwm.autostart("picom") -- oxwm.autostart("feh --bg-scale ~/wallpaper.jpg") --- oxwm.autostart("dunst") -- oxwm.autostart("nm-applet") |
