Laptop only changes and making pulsemixer work
This commit is contained in:
parent
6022a5d849
commit
7b9718d667
8 changed files with 32 additions and 35 deletions
|
@ -63,8 +63,13 @@
|
|||
(local alt "Mod1")
|
||||
|
||||
;; Set hostname so that we can utilize specific features on different machines
|
||||
(var hostname "")
|
||||
(awful.spawn.easy_async "hostname" (fn [ stdout stderr reason exit_code ] (set hostname stdout)))
|
||||
(var laptop true )
|
||||
(awful.spawn.easy_async "hostname" (fn [ stdout stderr reason exit_code ]
|
||||
(if (= "chris-linuxlaptop\n" stdout)
|
||||
(set laptop true)
|
||||
(naughty.notify {:text "didn't set"}))))
|
||||
(if laptop (naughty.notify {:text "yayyayayayayayyay"}))
|
||||
(naughty.notify {:text (tostring laptop)})
|
||||
|
||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||
(set awful.layout.layouts [
|
||||
|
@ -317,7 +322,7 @@
|
|||
:layout wibox.layout.fixed.horizontal
|
||||
1 s.cpuwidget
|
||||
2 s.volumewidget
|
||||
3 (if (= "chris_linuxlaptop\n" hostname) s.batterywidget s.myemptywidget)
|
||||
3 (if laptop s.batterywidget s.myemptywidget)
|
||||
4 wibox.widget.systray
|
||||
5 s.mylayoutbox
|
||||
}
|
||||
|
@ -463,7 +468,4 @@
|
|||
(awful.spawn "nextcloud --background")
|
||||
(awful.spawn "libinput-gestures-setup start")
|
||||
(awful.spawn "bluetoothctl power on")
|
||||
(if (= "chris-linuxlaptop\n" hostname)
|
||||
(awful.spawn "env GDK_SCALE=2 emacs --daemon")
|
||||
(= "archdesktop\n" hostname)
|
||||
(awful.spawn "emacs --daemon"))
|
||||
(if laptop (awful.spawn "env GDK_SCALE=2 emacs --daemon") (awful.spawn "emacs --daemon"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue