Laptop only changes and making pulsemixer work
This commit is contained in:
parent
6022a5d849
commit
7b9718d667
|
@ -63,8 +63,13 @@
|
||||||
(local alt "Mod1")
|
(local alt "Mod1")
|
||||||
|
|
||||||
;; Set hostname so that we can utilize specific features on different machines
|
;; Set hostname so that we can utilize specific features on different machines
|
||||||
(var hostname "")
|
(var laptop true )
|
||||||
(awful.spawn.easy_async "hostname" (fn [ stdout stderr reason exit_code ] (set hostname stdout)))
|
(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.
|
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
(set awful.layout.layouts [
|
(set awful.layout.layouts [
|
||||||
|
@ -317,7 +322,7 @@
|
||||||
:layout wibox.layout.fixed.horizontal
|
:layout wibox.layout.fixed.horizontal
|
||||||
1 s.cpuwidget
|
1 s.cpuwidget
|
||||||
2 s.volumewidget
|
2 s.volumewidget
|
||||||
3 (if (= "chris_linuxlaptop\n" hostname) s.batterywidget s.myemptywidget)
|
3 (if laptop s.batterywidget s.myemptywidget)
|
||||||
4 wibox.widget.systray
|
4 wibox.widget.systray
|
||||||
5 s.mylayoutbox
|
5 s.mylayoutbox
|
||||||
}
|
}
|
||||||
|
@ -463,7 +468,4 @@
|
||||||
(awful.spawn "nextcloud --background")
|
(awful.spawn "nextcloud --background")
|
||||||
(awful.spawn "libinput-gestures-setup start")
|
(awful.spawn "libinput-gestures-setup start")
|
||||||
(awful.spawn "bluetoothctl power on")
|
(awful.spawn "bluetoothctl power on")
|
||||||
(if (= "chris-linuxlaptop\n" hostname)
|
(if laptop (awful.spawn "env GDK_SCALE=2 emacs --daemon") (awful.spawn "emacs --daemon"))
|
||||||
(awful.spawn "env GDK_SCALE=2 emacs --daemon")
|
|
||||||
(= "archdesktop\n" hostname)
|
|
||||||
(awful.spawn "emacs --daemon"))
|
|
||||||
|
|
|
@ -129,22 +129,19 @@
|
||||||
(awful.key [modkey] "b" (fn [] (awful.spawn "bwmenu"))
|
(awful.key [modkey] "b" (fn [] (awful.spawn "bwmenu"))
|
||||||
{:description "launch rofi bitwarden selector" :group "launcher"})
|
{:description "launch rofi bitwarden selector" :group "launcher"})
|
||||||
;; audio
|
;; audio
|
||||||
(awful.key [modkey] "a" (fn [] (awful.spawn "urxvt -e pulsemixer" {
|
(awful.key [modkey] "a" (fn [] (awful.spawn "urxvt -b 80 -g 80x14 --class pulsemixer -e pulsemixer"))
|
||||||
:floating true
|
{:description "launch pulsemixer" :group "audio"})
|
||||||
:placement awful.placement.centered
|
(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 "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"))
|
|
||||||
{:description "Increase volume by 5%" :group "audio"})
|
{:description "Increase volume by 5%" :group "audio"})
|
||||||
(awful.key [] "XF86AudioLowerVolume" (fn [] (awful.spawn.with_shell
|
(awful.key [] "XF86AudioLowerVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%")
|
||||||
"pactl set-sink-volume @DEFAULT_SINK@ -5% && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||||
{:description "Decrease volume by 5%" :group "audio"})
|
{:description "Decrease volume by 5%" :group "audio"})
|
||||||
(awful.key [] "XF86AudioMute" (fn [] (awful.spawn.with_shell
|
(awful.key [] "XF86AudioMute" (fn [] (awful.spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle")
|
||||||
"pactl set-sink-mute @DEFAULT_SINK@ toggle && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||||
{:description "Mute volume" :group "audio"})
|
{:description "Mute volume" :group "audio"})
|
||||||
(awful.key [] "XF86Launch8" (fn [] (awful.spawn.with_shell
|
(awful.key [] "XF86Launch8" (fn [] (awful.spawn "pactl set-source-mute @DEFAULT_SOURCE@ toggle")
|
||||||
"pactl set-source-mute @DEFAULT_SOURCE@ toggle"))
|
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||||
{:description "Mute microphone" :group "audio"})
|
{:description "Mute microphone" :group "audio"})
|
||||||
|
|
||||||
;; Because I don't know much fennel yet I'm doing each one individually
|
;; 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)
|
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
;; Pacmixer center and smaller
|
;; Pulsemixer center and smaller
|
||||||
{
|
{
|
||||||
:rule_any {
|
:rule_any {
|
||||||
:class [
|
:class [
|
||||||
"pulsemixer"
|
"pulsemixer"
|
||||||
"pulsemixer,Alacritty"
|
"pulsemixer,Alacritty"
|
||||||
]
|
]
|
||||||
|
:name [
|
||||||
|
"pulsemixer"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
:properties {
|
:properties {
|
||||||
:floating true
|
:floating true
|
||||||
:raise true
|
:raise true
|
||||||
:height (dpi 600)
|
:ontop true
|
||||||
:height (dpi 800)
|
;; :height (dpi 350)
|
||||||
|
;; :width (dpi 700)
|
||||||
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
set -U fish_user_paths $fish_user_paths $HOME/.local/bin $HOME/scripts $HOME/.doom-emacs/bin
|
set -U fish_user_paths $HOME/.local/bin $HOME/scripts $HOME/.doom-emacs/bin
|
||||||
set TERM "xterm-256color"
|
set TERM "xterm-256color"
|
||||||
set EDITOR "emacsclient -t -a"
|
set EDITOR "emacsclient -t -a"
|
||||||
set VISUAL "emacsclient -c -a emacs"
|
set VISUAL "emacsclient -c -a emacs"
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
# Use GPU-accelerated video output by default
|
# Use GPU-accelerated video output by default
|
||||||
vo=gpu
|
vo=gpu
|
||||||
af=scaletempo2
|
af=scaletempo2
|
||||||
speed=2
|
speed=1.95
|
||||||
autofit=70%
|
autofit=70%
|
||||||
geometry=50%:50%
|
geometry=50%:50%
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ corner-radius = 12.0;
|
||||||
rounded-corners-exclude = [
|
rounded-corners-exclude = [
|
||||||
#"window_type = 'normal'",
|
#"window_type = 'normal'",
|
||||||
"class_g = 'awesome'",
|
"class_g = 'awesome'",
|
||||||
"class_g = 'URxvt'",
|
# "class_g = 'URxvt'",
|
||||||
"class_g = 'XTerm'",
|
"class_g = 'XTerm'",
|
||||||
"class_g = 'kitty'",
|
"class_g = 'kitty'",
|
||||||
#"class_g = 'emacs'",
|
#"class_g = 'emacs'",
|
||||||
|
@ -192,8 +192,8 @@ opacity-rule = [
|
||||||
"80:class_g = 'Bar'", # lemonbar
|
"80:class_g = 'Bar'", # lemonbar
|
||||||
"100:class_g = 'slop'", # maim
|
"100:class_g = 'slop'", # maim
|
||||||
"100:class_g = 'XTerm'",
|
"100:class_g = 'XTerm'",
|
||||||
"100:class_g = 'URxvt'",
|
# "100:class_g = 'URxvt'",
|
||||||
"100:class_g = 'kitty'",
|
# "100:class_g = 'kitty'",
|
||||||
"100:class_g = 'Alacritty'",
|
"100:class_g = 'Alacritty'",
|
||||||
"100:class_g = 'qutebrowser'",
|
"100:class_g = 'qutebrowser'",
|
||||||
"80:class_g = 'Polybar'",
|
"80:class_g = 'Polybar'",
|
||||||
|
|
|
@ -6,11 +6,5 @@
|
||||||
|
|
||||||
config_version: 2
|
config_version: 2
|
||||||
settings:
|
settings:
|
||||||
content.geolocation:
|
|
||||||
https://staff.tfcconnection.org: true
|
|
||||||
content.notifications:
|
content.notifications:
|
||||||
https://www.reddit.com: false
|
https://www.reddit.com: false
|
||||||
https://www.tradingview.com: false
|
|
||||||
https://staff.tfcconnection.org: false
|
|
||||||
content.register_protocol_handler:
|
|
||||||
https://staff.tfcconnection.org: true
|
|
||||||
|
|
Loading…
Reference in a new issue