Compare commits

...

3 Commits

Author SHA1 Message Date
bluepython508
e6fc901c26 Fix error on change main tag 2026-02-19 10:37:34 +00:00
bluepython508
2b1bc9e7fb Add floating htop 2026-02-19 10:12:14 +00:00
bluepython508
0ac299589e Fix pointer warp 2026-02-19 09:49:30 +00:00

View File

@@ -352,7 +352,7 @@
(map |(when (= ($ :tag-main) tag) (put $ :tag-main nil)) (wm :outputs))
(put output :tag-main tag)
(put output :tag-offload nil)
(put output :tags-other nil))
(put output :tags-other []))
(defn output/toggle-other-tag [output tag]
(if (has-value? (output :tags-other) tag)
@@ -491,7 +491,9 @@
new-output (action/target-in current-output outputs dir)]
(seat/focus-output seat new-output)
(seat/focus seat (first (output/windows new-output)))
(:pointer-warp (seat :obj) (+ (new-output :x) (/ (new-output :w) 2)) (+ (new-output :y) (/ (new-output :h) 2))))))
(def [x y] (new-output :position))
(def [w h] (new-output :dimensions))
(:pointer-warp (seat :obj) (+ x (/ w 2)) (+ y (/ h 2))))))
(defn action/goto-tag [tag]
(def f (cond
@@ -615,6 +617,7 @@
[:o G (action/spawn "wl-present-ui")]
[:t G (action/pulldown "floating-terminal" "alacritty --class floating-terminal -e tmux new-session -ADX -s floating")]
[:r G (action/pulldown "floating-repl" "alacritty --class floating-repl -e censtablo-repl")]
[:h G (action/pulldown "floating-htop" "alacritty --class floating-htop -e htop")]
[:XF86AudioLowerVolume {} (action/spawn "pamixer -d 5")]
[:XF86AudioRaiseVolume {} (action/spawn "pamixer -i 5")]
[:XF86AudioMute {} (action/spawn "pamixer -t")]
@@ -634,6 +637,7 @@
"io.github.alainm23.planify" (rule/tag :j)
"floating-terminal" (rule/pulldown)
"floating-repl" (rule/pulldown)
"floating-htop" (rule/pulldown)
"steam" (rule/float false)})