getting ready for maximized clients effects
This commit is contained in:
parent
131bb57ac3
commit
5e049104f8
|
@ -87,12 +87,12 @@
|
||||||
(if (= "syl\n" stdout)
|
(if (= "syl\n" stdout)
|
||||||
(global laptop true)
|
(global laptop true)
|
||||||
(global laptop false))))
|
(global laptop false))))
|
||||||
(local laptop true)
|
(local laptop false)
|
||||||
|
|
||||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
(set awful.layout.layouts [
|
(set awful.layout.layouts [
|
||||||
bling.layout.mstab
|
|
||||||
awful.layout.suit.tile
|
awful.layout.suit.tile
|
||||||
|
bling.layout.mstab
|
||||||
bling.layout.centered
|
bling.layout.centered
|
||||||
awful.layout.suit.floating
|
awful.layout.suit.floating
|
||||||
;; awful.layout.suit.tile.left
|
;; awful.layout.suit.tile.left
|
||||||
|
@ -368,14 +368,14 @@
|
||||||
2 s.brighttext
|
2 s.brighttext
|
||||||
3 s.brightspace
|
3 s.brightspace
|
||||||
:layout wibox.layout.fixed.horizontal})
|
:layout wibox.layout.fixed.horizontal})
|
||||||
:widget wibox.container.margin
|
:widget wibox.container.margin
|
||||||
:left (dpi 5)}
|
:left (dpi 5)}
|
||||||
:widget wibox.container.background
|
:widget wibox.container.background
|
||||||
:shape gears.shape.rounded_bar
|
:shape gears.shape.rounded_bar
|
||||||
:bg beautiful.transparent
|
:bg beautiful.transparent
|
||||||
:fg beautiful.base0B}
|
:fg beautiful.base0B}
|
||||||
:widget wibox.container.margin
|
:widget wibox.container.margin
|
||||||
:right (dpi 5)})
|
:right (dpi 5)})
|
||||||
|
|
||||||
(set s.volumetext (awful.widget.watch "pamixer --get-volume-human" 0.5))
|
(set s.volumetext (awful.widget.watch "pamixer --get-volume-human" 0.5))
|
||||||
(set s.mictext (awful.widget.watch "pamixer --default-source --get-volume-human" 1))
|
(set s.mictext (awful.widget.watch "pamixer --default-source --get-volume-human" 1))
|
||||||
|
@ -532,7 +532,7 @@
|
||||||
1 {
|
1 {
|
||||||
:layout wibox.layout.fixed.horizontal
|
:layout wibox.layout.fixed.horizontal
|
||||||
;;1 s.pingwidget
|
;;1 s.pingwidget
|
||||||
1 s.brightwidget
|
1 (if laptop s.brightwidget s.pingwidget)
|
||||||
2 s.mailwidget
|
2 s.mailwidget
|
||||||
3 s.memwidget
|
3 s.memwidget
|
||||||
4 s.cpuwidget
|
4 s.cpuwidget
|
||||||
|
@ -549,6 +549,11 @@
|
||||||
(local yoffset (dpi 45)) ;; variables to be used for placing the wibox
|
(local yoffset (dpi 45)) ;; variables to be used for placing the wibox
|
||||||
(local xoffset (dpi 16))
|
(local xoffset (dpi 16))
|
||||||
;; Create the wibox
|
;; Create the wibox
|
||||||
|
|
||||||
|
;; (if (= s.index 1)
|
||||||
|
;; (naughty.notify {:title "screen 1" :text "yes!"})
|
||||||
|
;; (naughty.notify {:title "screen 1" :text "not"})
|
||||||
|
;; )
|
||||||
(set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
|
(set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
|
||||||
;; as opposed to what we normally need to do with a wibar
|
;; as opposed to what we normally need to do with a wibar
|
||||||
:position "bottom"
|
:position "bottom"
|
||||||
|
@ -693,11 +698,34 @@
|
||||||
;; make fullscreen clients no longer rounded and back afterwards
|
;; make fullscreen clients no longer rounded and back afterwards
|
||||||
(client.connect_signal "property::fullscreen"
|
(client.connect_signal "property::fullscreen"
|
||||||
(fn [c]
|
(fn [c]
|
||||||
(if c.fullscreen
|
(if c.fullscreen
|
||||||
|
(set c.shape (fn [cr w h]
|
||||||
|
(gears.shape.rectangle cr w h)))
|
||||||
(set c.shape (fn [cr w h]
|
(set c.shape (fn [cr w h]
|
||||||
(gears.shape.rectangle cr w h)))
|
(gears.shape.rounded_rect cr w h (dpi 15)))))))
|
||||||
|
|
||||||
|
(client.connect_signal "property::maximized"
|
||||||
|
(fn [c]
|
||||||
|
(when c.maximized
|
||||||
(set c.shape (fn [cr w h]
|
(set c.shape (fn [cr w h]
|
||||||
(gears.shape.rounded_rect cr w h (dpi 15)))))))
|
(gears.shape.rectangle cr w h)))
|
||||||
|
|
||||||
|
;; (let [s (c.screen)]
|
||||||
|
;; (naughty.notify {
|
||||||
|
;; :text "IDK!"
|
||||||
|
;; })
|
||||||
|
;; (set s.mywibox {
|
||||||
|
;; :x 0
|
||||||
|
;; :y s.geometry.height
|
||||||
|
;; :width s.geometry.width
|
||||||
|
;; :shape gears.shape.rounded_bar
|
||||||
|
;; }))
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
(if (not c.maximized)
|
||||||
|
(set c.shape (fn [cr w h]
|
||||||
|
(gears.shape.rounded_rect cr w h (dpi 15)))))))
|
||||||
|
|
||||||
(client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))
|
(client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))
|
||||||
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
|
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Corners
|
# Corners
|
||||||
corner-radius = 14.0;
|
corner-radius = 0.0;
|
||||||
rounded-corners-exclude = [
|
rounded-corners-exclude = [
|
||||||
#"window_type = 'normal'",
|
#"window_type = 'normal'",
|
||||||
"class_g = 'awesome'",
|
"class_g = 'awesome'",
|
||||||
|
|
Loading…
Reference in a new issue