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"))
|
||||
|
|
|
@ -129,22 +129,19 @@
|
|||
(awful.key [modkey] "b" (fn [] (awful.spawn "bwmenu"))
|
||||
{:description "launch rofi bitwarden selector" :group "launcher"})
|
||||
;; audio
|
||||
(awful.key [modkey] "a" (fn [] (awful.spawn "urxvt -e pulsemixer" {
|
||||
:floating true
|
||||
:placement awful.placement.centered
|
||||
}))
|
||||
{:description "launch pacmixer" :group "audio"})
|
||||
(awful.key [] "XF86AudioRaiseVolume" (fn [] (awful.spawn.with_shell
|
||||
"pactl set-sink-volume @DEFAULT_SINK@ +5% && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||
(awful.key [modkey] "a" (fn [] (awful.spawn "urxvt -b 80 -g 80x14 --class pulsemixer -e pulsemixer"))
|
||||
{:description "launch pulsemixer" :group "audio"})
|
||||
(awful.key [] "XF86AudioRaiseVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%")
|
||||
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||
{:description "Increase volume by 5%" :group "audio"})
|
||||
(awful.key [] "XF86AudioLowerVolume" (fn [] (awful.spawn.with_shell
|
||||
"pactl set-sink-volume @DEFAULT_SINK@ -5% && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||
(awful.key [] "XF86AudioLowerVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%")
|
||||
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||
{:description "Decrease volume by 5%" :group "audio"})
|
||||
(awful.key [] "XF86AudioMute" (fn [] (awful.spawn.with_shell
|
||||
"pactl set-sink-mute @DEFAULT_SINK@ toggle && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||
(awful.key [] "XF86AudioMute" (fn [] (awful.spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle")
|
||||
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||
{:description "Mute volume" :group "audio"})
|
||||
(awful.key [] "XF86Launch8" (fn [] (awful.spawn.with_shell
|
||||
"pactl set-source-mute @DEFAULT_SOURCE@ toggle"))
|
||||
(awful.key [] "XF86Launch8" (fn [] (awful.spawn "pactl set-source-mute @DEFAULT_SOURCE@ toggle")
|
||||
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||
{:description "Mute microphone" :group "audio"})
|
||||
|
||||
;; Because I don't know much fennel yet I'm doing each one individually
|
||||
|
|
|
@ -56,19 +56,23 @@
|
|||
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||
}
|
||||
}
|
||||
;; Pacmixer center and smaller
|
||||
;; Pulsemixer center and smaller
|
||||
{
|
||||
:rule_any {
|
||||
:class [
|
||||
"pulsemixer"
|
||||
"pulsemixer,Alacritty"
|
||||
]
|
||||
:name [
|
||||
"pulsemixer"
|
||||
]
|
||||
}
|
||||
:properties {
|
||||
:floating true
|
||||
:raise true
|
||||
:height (dpi 600)
|
||||
:height (dpi 800)
|
||||
:ontop true
|
||||
;; :height (dpi 350)
|
||||
;; :width (dpi 700)
|
||||
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue