making awesome more awesome
This commit is contained in:
		
							parent
							
								
									df158112cb
								
							
						
					
					
						commit
						4cf0bbd46b
					
				
					 8 changed files with 73 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -20,9 +20,7 @@
 | 
			
		|||
;; my splits
 | 
			
		||||
(local rules (require "rules"))
 | 
			
		||||
(local keybindings (require "keybindings"))
 | 
			
		||||
;; (local volume-widget (require :widgets.volume))
 | 
			
		||||
 | 
			
		||||
;; (local bar (require "bar"))
 | 
			
		||||
;; Error handling
 | 
			
		||||
;; Check if awesome encountered an error during startup and fell back to
 | 
			
		||||
;; another config (This code will only ever execute for the fallback config)
 | 
			
		||||
| 
						 | 
				
			
			@ -64,6 +62,10 @@
 | 
			
		|||
(local ctrl "Control")
 | 
			
		||||
(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)))
 | 
			
		||||
 | 
			
		||||
;; Table of layouts to cover with awful.layout.inc, order matters.
 | 
			
		||||
(set awful.layout.layouts [
 | 
			
		||||
                           awful.layout.suit.tile
 | 
			
		||||
| 
						 | 
				
			
			@ -297,8 +299,7 @@
 | 
			
		|||
                                         1 s.batteryicon
 | 
			
		||||
                                         2 s.batterytext
 | 
			
		||||
                                         3 s.batteryspace
 | 
			
		||||
                                        :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                                        }))
 | 
			
		||||
                                         :layout wibox.layout.fixed.horizontal}))
 | 
			
		||||
 | 
			
		||||
     (set s.cputext (awful.widget.watch "cat /proc/loadavg | awk '{print $1}'" 10))
 | 
			
		||||
     (set s.cpuicon (wibox.widget.textbox " "))
 | 
			
		||||
| 
						 | 
				
			
			@ -316,7 +317,7 @@
 | 
			
		|||
                               :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                               1 s.cpuwidget
 | 
			
		||||
                               2 s.volumewidget
 | 
			
		||||
                               3 s.batterywidget
 | 
			
		||||
                               3 (if (= "chris_linuxlaptop\n" hostname) s.batterywidget s.myemptywidget)
 | 
			
		||||
                               4 wibox.widget.systray
 | 
			
		||||
                               5 s.mylayoutbox
 | 
			
		||||
                               }
 | 
			
		||||
| 
						 | 
				
			
			@ -462,9 +463,7 @@
 | 
			
		|||
(awful.spawn "nextcloud --background")
 | 
			
		||||
(awful.spawn "libinput-gestures-setup start")
 | 
			
		||||
(awful.spawn "bluetoothctl power on")
 | 
			
		||||
(awful.spawn.easy_async "hostname" (fn [stdout stderr reason exit_code]
 | 
			
		||||
                                         (if (= "chris-linuxlaptop\n" stdout)
 | 
			
		||||
(if (= "chris-linuxlaptop\n" hostname)
 | 
			
		||||
    (awful.spawn "env GDK_SCALE=2 emacs --daemon")
 | 
			
		||||
                                             (= "archdesktop\n" stdout)
 | 
			
		||||
                                             (awful.spawn "emacs --daemon")
 | 
			
		||||
                                             )))
 | 
			
		||||
    (= "archdesktop\n" hostname)
 | 
			
		||||
    (awful.spawn "emacs --daemon"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										33
									
								
								fish/fish_variables
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								fish/fish_variables
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										0
									
								
								fish/fishd.tmp.xphoOT
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								fish/fishd.tmp.xphoOT
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										11
									
								
								flameshot/flameshot.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								flameshot/flameshot.ini
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
[General]
 | 
			
		||||
contrastOpacity=175
 | 
			
		||||
contrastUiColor=#db8800
 | 
			
		||||
disabledTrayIcon=true
 | 
			
		||||
drawColor=#7cc6da
 | 
			
		||||
drawThickness=77
 | 
			
		||||
saveAfterCopy=true
 | 
			
		||||
saveAfterCopyPath=/home/chris/Pictures
 | 
			
		||||
savePath=/home/chris/Pictures
 | 
			
		||||
startupLaunch=false
 | 
			
		||||
uiColor=#00a6d1
 | 
			
		||||
| 
						 | 
				
			
			@ -8,3 +8,4 @@ config_version: 2
 | 
			
		|||
settings:
 | 
			
		||||
  content.notifications:
 | 
			
		||||
    https://www.reddit.com: false
 | 
			
		||||
    https://www.tradingview.com: false
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								qutebrowser/qsettings/QtProject.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								qutebrowser/qsettings/QtProject.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
[FileDialog]
 | 
			
		||||
history=file:///home/chris/storage/digikam/Photos/Phone Camera/2020/11, file:///home/chris/Pictures, file:///home/chris/storage/digikam/Photos/Phone Camera/2020/08, file:///home/chris/Videos
 | 
			
		||||
lastVisited=file:///home/chris/Videos
 | 
			
		||||
qtVersion=5.15.2
 | 
			
		||||
shortcuts=file:, file:///home/chris
 | 
			
		||||
sidebarWidth=116
 | 
			
		||||
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x2L\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0X\0\0\0\x1\0\0\0\0\0\0\0X\0\0\0\x1\0\0\0\0\0\0\0\x9d\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)
 | 
			
		||||
viewMode=List
 | 
			
		||||
| 
						 | 
				
			
			@ -13,3 +13,4 @@ oned https://tfcconnection-my.sharepoint.com/personal/chris_tfcconnection_org/_l
 | 
			
		|||
bw https://bitwarden.tfcconnection.org/#/
 | 
			
		||||
coin https://www.coinbase.com/dashboard
 | 
			
		||||
remind https://www.remind.com/classes/4223h9
 | 
			
		||||
admin https://admin.microsoft.com/AdminPortal/Home#/homepage
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								scripts/opustomp3
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								scripts/opustomp3
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
#!/usr/bin/env fish
 | 
			
		||||
 | 
			
		||||
for aud in *.opus
 | 
			
		||||
    touch $aud.txt
 | 
			
		||||
    echo $aud >>$aud.txt
 | 
			
		||||
    set newaud (sed "s/\.opus//g" $aud.txt)
 | 
			
		||||
    echo $newaud
 | 
			
		||||
    ffmpeg -i $aud -vn -ar 44100 -ac 2 -b:a 192k $newaud.mp3
 | 
			
		||||
end
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue