2019-01-15 11:20:10 +11:00
|
|
|
;;; conf/client/rules.fnl --- Client placement rules
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(local awful (require :awful))
|
|
|
|
(local beautiful (require :beautiful))
|
|
|
|
|
|
|
|
(local keys (require :conf.client.keys))
|
|
|
|
(local buttons (require :conf.client.buttons))
|
|
|
|
|
|
|
|
;;;
|
|
|
|
;; Functions
|
|
|
|
|
|
|
|
(local
|
|
|
|
rules
|
|
|
|
[{:rule {}
|
|
|
|
:properties {:border_width beautiful.border_width
|
|
|
|
:border_color beautiful.border_normal
|
|
|
|
:focus true
|
|
|
|
:keys (. keys :client)
|
|
|
|
:buttons buttons
|
2019-01-15 22:52:58 +11:00
|
|
|
:size_hints_honor false ;; fuck you terminals I know what I want
|
|
|
|
:placement awful.placement.no_offscreen}}
|
2019-01-15 11:20:10 +11:00
|
|
|
|
|
|
|
{:rule {:floating true}
|
|
|
|
:properties {:keys (. keys :floating)}}
|
|
|
|
|
|
|
|
;; Floating clients.
|
2019-01-15 22:53:04 +11:00
|
|
|
{:rule_any {:class ["Gpick"
|
|
|
|
"Orage"]
|
2019-01-15 11:20:10 +11:00
|
|
|
:name ["Event Tester"] ;; xev
|
|
|
|
:role ["pop-up"
|
|
|
|
"xfce4-terminal-dropdown"]}
|
|
|
|
:properties {:floating true}}
|
|
|
|
|
|
|
|
;; Add titlebars to normal clients and dialogs.
|
|
|
|
{:rule_any {:type ["normal" "dialog"]}
|
|
|
|
:properties {:titlebars_enabled true}}
|
|
|
|
|
|
|
|
;; Awesome reserves space for tint2, but doesn't actually fucking place it.
|
|
|
|
{:rule {:class "Tint2"}
|
|
|
|
:properties {:x 0 :y 0}}
|
|
|
|
|
|
|
|
;; Set Firefox to always map on the tag named "2" on screen 1.
|
|
|
|
;; {:rule {:class "Firefox"}
|
|
|
|
;; :properties {:screen 1 :tag "2"}}
|
|
|
|
])
|
|
|
|
|
|
|
|
(tset awful.rules :rules rules)
|
|
|
|
|
|
|
|
{}
|
|
|
|
;;; conf/client/rules.fnl ends here
|