Merge branch 'master' of gitlab.com:chriscochrun/dotfiles
This commit is contained in:
commit
6f25e400a9
10 changed files with 188 additions and 132 deletions
|
@ -32,15 +32,17 @@
|
|||
|
||||
;; Handle runtime errors after startup
|
||||
(do
|
||||
(var in_error false)
|
||||
(awesome.connect_signal "debug::error" (fn [err]
|
||||
;; Make sure we don't go into an endless error loop
|
||||
(when (not in_error)
|
||||
(set in_error true)
|
||||
(naughty.notify {:preset naughty.config.presets.critical
|
||||
:title "Oops, an error happened!"
|
||||
:text (tostring err)})
|
||||
(set in_error false)))))
|
||||
(var in_error false)
|
||||
(awesome.connect_signal "debug::error" (fn [err]
|
||||
;; Make sure we don't go into an endless error loop
|
||||
(when (not in_error)
|
||||
(set in_error true)
|
||||
(naughty.notify {:preset naughty.config.presets.critical
|
||||
:title "Oops, an error happened!"
|
||||
:text (tostring err)})
|
||||
(set in_error false)))))
|
||||
|
||||
|
||||
|
||||
;; Variable definitions
|
||||
;; Themes define colours, icons, font and wallpapers.
|
||||
|
@ -72,7 +74,7 @@
|
|||
(if (= "syl\n" stdout)
|
||||
(global laptop true)
|
||||
(global laptop false))))
|
||||
(local laptop true)
|
||||
(local laptop false)
|
||||
|
||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||
(set awful.layout.layouts [
|
||||
|
@ -649,7 +651,7 @@
|
|||
(awful.client.focus.byidx 1)
|
||||
|
||||
;; Rounded windows done right
|
||||
(when (not c.fullscreen)
|
||||
(when (and (not c.fullscreen) (not (= c.name "Display Window")))
|
||||
(set c.shape (fn [cr w h]
|
||||
(gears.shape.rounded_rect cr w h (dpi 15)))))
|
||||
|
||||
|
@ -693,7 +695,7 @@
|
|||
(awful.spawn "bluetoothctl power on")
|
||||
(awful.spawn "nextcloud --background")
|
||||
(awful.spawn "rbw-agent")
|
||||
;; (awful.spawn "jellyfin-mpv-shim")
|
||||
(awful.spawn "jellyfin-mpv-shim")
|
||||
(awful.spawn "xset r rate 220 90")
|
||||
|
||||
(awful.spawn "autorandr -c")
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
(local gears (require "gears"))
|
||||
(local beautiful (require "beautiful"))
|
||||
(local hotkeys_popup (require "awful.hotkeys_popup"))
|
||||
(local xresources (require "beautiful.xresources"))
|
||||
(local dpi xresources.apply_dpi)
|
||||
|
||||
(local bling (require "bling"))
|
||||
;; (local awestore (require "awestore"))
|
||||
|
@ -16,7 +18,7 @@
|
|||
;; (local anim-y (awestore.tweened 1100 { :duration 200 :easing awestore.easing.cubic_in_out }))
|
||||
;; (local anim-x (awestore.tweened 1920 { :duration 200 :easing awestore.easing.cubic_in_out }))
|
||||
|
||||
|
||||
;; (local xcenter (screen.primary.width))
|
||||
|
||||
(local agenda-scratch (bling.module.scratchpad {
|
||||
:command "emacsclient -e '(chris/org-agenda)'"
|
||||
|
@ -24,7 +26,7 @@
|
|||
:sticky true
|
||||
:autoclose true
|
||||
:floating true
|
||||
:geometry {:height 1300 :width 1500 :x 377 :y 73}
|
||||
:geometry {:height (dpi 950) :width (dpi 900) :x (dpi 560) :y (dpi 73)}
|
||||
:reapply true
|
||||
:dont_focus_before_close true
|
||||
;; :awestore {:x anim-x :y anim-y}
|
||||
|
@ -169,7 +171,7 @@
|
|||
{:description "select pass" :group "apps" })
|
||||
(awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
|
||||
{:description "Open Writer" :group "apps" })
|
||||
(awful.key [modkey] "b" (fn [] (awful.spawn "qblof"))
|
||||
(awful.key [modkey] "b" (fn [] (awful.spawn "nyxt"))
|
||||
{:description "launch browser" :group "apps"})
|
||||
;; rofi
|
||||
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
:raise true
|
||||
:height (dpi 800)
|
||||
:screen (screen.count)
|
||||
:sticky true
|
||||
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue