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)
 | 
			
		||||
                            }
 | 
			
		||||
               }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#!/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 EDITOR "emacsclient -t -a"
 | 
			
		||||
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
 | 
			
		||||
vo=gpu
 | 
			
		||||
af=scaletempo2
 | 
			
		||||
speed=2
 | 
			
		||||
speed=1.95
 | 
			
		||||
autofit=70%
 | 
			
		||||
geometry=50%:50%
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@ corner-radius = 12.0;
 | 
			
		|||
rounded-corners-exclude = [
 | 
			
		||||
  #"window_type = 'normal'",
 | 
			
		||||
  "class_g = 'awesome'",
 | 
			
		||||
  "class_g = 'URxvt'",
 | 
			
		||||
  # "class_g = 'URxvt'",
 | 
			
		||||
  "class_g = 'XTerm'",
 | 
			
		||||
  "class_g = 'kitty'",
 | 
			
		||||
  #"class_g = 'emacs'",
 | 
			
		||||
| 
						 | 
				
			
			@ -192,8 +192,8 @@ opacity-rule = [
 | 
			
		|||
  "80:class_g     = 'Bar'",             # lemonbar
 | 
			
		||||
  "100:class_g    = 'slop'",            # maim
 | 
			
		||||
  "100:class_g    = 'XTerm'",
 | 
			
		||||
  "100:class_g    = 'URxvt'",
 | 
			
		||||
  "100:class_g    = 'kitty'",
 | 
			
		||||
  # "100:class_g    = 'URxvt'",
 | 
			
		||||
  # "100:class_g    = 'kitty'",
 | 
			
		||||
  "100:class_g    = 'Alacritty'",
 | 
			
		||||
  "100:class_g    = 'qutebrowser'",
 | 
			
		||||
  "80:class_g     = 'Polybar'",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,11 +6,5 @@
 | 
			
		|||
 | 
			
		||||
config_version: 2
 | 
			
		||||
settings:
 | 
			
		||||
  content.geolocation:
 | 
			
		||||
    https://staff.tfcconnection.org: true
 | 
			
		||||
  content.notifications:
 | 
			
		||||
    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…
	
	Add table
		Add a link
		
	
		Reference in a new issue