summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-03-17 18:11:34 -0500
committerzachir <zachir@librem.one>2023-03-17 18:11:34 -0500
commitc8ed268019ef4fe98171052dd2c71854de935c15 (patch)
treee0b204c7a92dfe61fa25439a550f2688505edea5
parentf53aae84ea9781e73e0d645549fcbf1f081a798a (diff)
parent0973975a577781cb6f32840abff60de88366c7a3 (diff)
fix rc.lua callback
-rw-r--r--awesome/rc.lua23
-rw-r--r--hypr/hyprland.conf2
2 files changed, 13 insertions, 12 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index bc49a37..463150d 100644
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -417,57 +417,46 @@ globalkeys = gears.table.join(
-- scratchpads
awful.key({ modkey, "Control" }, "z", function ()
scratch.toggle(terminal_sp_cmd("sphtop","htop"), { class = "sphtop" })
- awful.placement.centered()
end,
{description = "Toggle htop scratchpad"}),
awful.key({ modkey, "Control" }, "x", function ()
scratch.toggle(terminal_sp_cmd("spterm","zsh"), { class = "spterm" })
- awful.placement.centered()
end,
{description = "Toggle term scratchpad"}),
awful.key({ modkey, "Control" }, "c", function ()
scratch.toggle(terminal_sp_cmd("sppmxr","pulsemixer"), { class = "sppmxr" })
- awful.placement.centered()
end,
{description = "Toggle pulsemixer scratchpad"}),
awful.key({ modkey, "Control" }, "v", function ()
scratch.toggle(terminal_sp_cmd("spblue","bluetoothctl"), { class = "spblue" })
- awful.placement.centered()
end,
{description = "Toggle bluetoothctl scratchpad"}),
awful.key({ modkey, "Control" }, "b", function ()
scratch.toggle(terminal_sp_cmd("spncmp","ncmpcpp"), { class = "spncmp" })
- awful.placement.centered()
end,
{description = "Toggle ncmpcpp scratchpad"}),
awful.key({ modkey, "Control" }, "a", function ()
scratch.toggle(terminal_sp_cmd("spmutt","neomutt"), { class = "spmutt" })
- awful.placement.centered()
end,
{description = "Toggle neomutt scratchpad"}),
awful.key({ modkey, "Control" }, "s", function ()
scratch.toggle(terminal_sp_cmd("spprof","profanity"), { class = "spprof" })
- awful.placement.centered()
end,
{description = "Toggle profanity scratchpad"}),
awful.key({ modkey, "Control" }, "d", function ()
scratch.toggle(terminal_sp_cmd("spircc","irssi"), { class = "sptrem" })
- awful.placement.centered()
end,
{description = "Toggle irssi scratchpad"}),
awful.key({ modkey, "Control" }, "f", function ()
scratch.toggle(terminal_sp_cmd("sptodo","todo"), { class = "sptrem" })
- awful.placement.centered()
end,
{description = "Toggle todo.txt scratchpad"}),
awful.key({ modkey, "Control" }, "g", function ()
scratch.toggle(terminal_sp_cmd("sptrem","tremc"), { class = "sptrem" })
- awful.placement.centered()
end,
{description = "Toggle tremc scratchpad"}),
awful.key({ modkey, "Control" }, "q", function ()
scratch.toggle("qpwgraph", { class = "qpwgraph" })
- awful.placement.centered()
end,
{description = "Toggle qpwgraph scratchpad"}),
awful.key({ modkey, }, "a", function ()
@@ -930,6 +919,18 @@ end)
awful.spawn.with_shell(string.format("sh %s/autostart.sh &", config_dir))
-- }}}
+-- {{{ Floating windows always on top
+client.connect_signal("property::floating", function(c)
+ if not c.fullscreen then
+ if c.floating then
+ c.ontop = true
+ else
+ c.ontop = false
+ end
+ end
+end)
+-- }}}
+
-- spawn windows as slaves {{{
client.connect_signal(
"manage",
diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf
index 77ab95b..89b6613 100644
--- a/hypr/hyprland.conf
+++ b/hypr/hyprland.conf
@@ -269,7 +269,7 @@ bind = $mainMod $secdMod, F, exec, st -e lf
bind = $mainMod, W, exec, waytoggle
bind = $mainMod, Q, exec, loginctl lock-session
bind = $mainMod SHIFT, G, exec, get-app-id
-bind = $mainMod CONTROL, R, exec, startx -- /usr/bin/Xephyr -screen 1920x1080 :1
+#bind = $mainMod CONTROL, R, exec, startx -- /usr/bin/Xephyr -screen 1920x1080 :1
#}}}
#{{{ Scratchpads