mirror of
				https://github.com/WarrenHood/dotfiles.git
				synced 2025-11-04 04:58:41 +00:00 
			
		
		
		
	Add basic polybar and wallpaper config
This commit is contained in:
		
							parent
							
								
									6cf5b21c94
								
							
						
					
					
						commit
						445e12a962
					
				| 
						 | 
					@ -1,18 +1,40 @@
 | 
				
			||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					autorandr -l dual
 | 
				
			||||||
 | 
					pkill polybar
 | 
				
			||||||
 | 
					polybar & 
 | 
				
			||||||
 | 
					WALLPAPER="current.jpg"
 | 
				
			||||||
 | 
					feh --bg-center "$HOME/wallpapers/$WALLPAPER"
 | 
				
			||||||
 | 
					systemctl --user start gnome-keyring-daemon.service &
 | 
				
			||||||
 | 
					pkill picom
 | 
				
			||||||
 | 
					picom &
 | 
				
			||||||
 | 
					pkill nm-applet
 | 
				
			||||||
 | 
					nm-applet &
 | 
				
			||||||
 | 
					pkill volumeicon
 | 
				
			||||||
 | 
					volumeicon &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bspc monitor -d I II III IV V VI VII VIII IX X
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pgrep -x sxhkd > /dev/null || sxhkd &
 | 
					pgrep -x sxhkd > /dev/null || sxhkd &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc monitor -d I II III IV V VI VII VIII IX X
 | 
					bspc monitor -d I II III IV V VI VII VIII IX X
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc config border_width         2
 | 
					bspc config border_width         1
 | 
				
			||||||
bspc config window_gap          8
 | 
					bspc config window_gap          8
 | 
				
			||||||
 | 
					bspc config focused_border_color \#6666FF
 | 
				
			||||||
 | 
					bspc config normal_border_color  \#1d2021
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc config split_ratio          0.52
 | 
					bspc config split_ratio          0.52
 | 
				
			||||||
bspc config borderless_monocle   true
 | 
					bspc config borderless_monocle   false
 | 
				
			||||||
bspc config gapless_monocle      true
 | 
					bspc config gapless_monocle      false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc rule -a Gimp desktop='^8' state=floating follow=on
 | 
					bspc rule -a Gimp desktop='^8' state=floating follow=on
 | 
				
			||||||
bspc rule -a Chromium desktop='^2'
 | 
					bspc rule -a Chromium desktop='^2'
 | 
				
			||||||
bspc rule -a mplayer2 state=floating
 | 
					bspc rule -a mplayer2 state=floating
 | 
				
			||||||
bspc rule -a Kupfer.py focus=on
 | 
					bspc rule -a Kupfer.py focus=on
 | 
				
			||||||
bspc rule -a Screenkey manage=off
 | 
					bspc rule -a Screenkey manage=off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Resize is super laggy otherwise!
 | 
				
			||||||
 | 
					bspc config pointer_motion_interval 50 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										170
									
								
								polybar/.config/polybar/config.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										170
									
								
								polybar/.config/polybar/config.ini
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,170 @@
 | 
				
			||||||
 | 
					;==========================================================
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
 | 
				
			||||||
 | 
					;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
 | 
				
			||||||
 | 
					;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
 | 
				
			||||||
 | 
					;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
 | 
				
			||||||
 | 
					;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
 | 
				
			||||||
 | 
					;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					;   To learn more about how to configure Polybar
 | 
				
			||||||
 | 
					;   go to https://github.com/polybar/polybar
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					;   The README contains a lot of information
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					;==========================================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[colors]
 | 
				
			||||||
 | 
					background = #282A2E
 | 
				
			||||||
 | 
					background-alt = #373B41
 | 
				
			||||||
 | 
					foreground = #C5C8C6
 | 
				
			||||||
 | 
					primary = #006699
 | 
				
			||||||
 | 
					secondary = #8ABEB7
 | 
				
			||||||
 | 
					alert = #A54242
 | 
				
			||||||
 | 
					disabled = #707880
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[bar/main]
 | 
				
			||||||
 | 
					width = 100%
 | 
				
			||||||
 | 
					height = 24pt
 | 
				
			||||||
 | 
					radius = 6
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; dpi = 96
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					background = ${colors.background}
 | 
				
			||||||
 | 
					foreground = ${colors.foreground}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					line-size = 3pt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					border-size = 4pt
 | 
				
			||||||
 | 
					border-color = #00000000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					padding-left = 0
 | 
				
			||||||
 | 
					padding-right = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					module-margin = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					separator = |
 | 
				
			||||||
 | 
					separator-foreground = ${colors.disabled}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					font-0 = monospace;2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					modules-left = xworkspaces xwindow
 | 
				
			||||||
 | 
					modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth date
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cursor-click = pointer
 | 
				
			||||||
 | 
					cursor-scroll = ns-resize
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					enable-ipc = true
 | 
				
			||||||
 | 
					tray-position = right
 | 
				
			||||||
 | 
					fixed-center = false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					wm-restack = bspwm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; override-redirect = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/xworkspaces]
 | 
				
			||||||
 | 
					type = internal/xworkspaces
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-active = %name%
 | 
				
			||||||
 | 
					label-active-background = ${colors.background-alt}
 | 
				
			||||||
 | 
					label-active-underline= ${colors.primary}
 | 
				
			||||||
 | 
					label-active-padding = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-occupied = %name%
 | 
				
			||||||
 | 
					label-occupied-padding = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-urgent = %name%
 | 
				
			||||||
 | 
					label-urgent-background = ${colors.alert}
 | 
				
			||||||
 | 
					label-urgent-padding = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-empty = %name%
 | 
				
			||||||
 | 
					label-empty-foreground = ${colors.disabled}
 | 
				
			||||||
 | 
					label-empty-padding = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/xwindow]
 | 
				
			||||||
 | 
					type = internal/xwindow
 | 
				
			||||||
 | 
					label = %title:0:60:...%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/filesystem]
 | 
				
			||||||
 | 
					type = internal/fs
 | 
				
			||||||
 | 
					interval = 25
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					mount-0 = /
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-unmounted = %mountpoint% not mounted
 | 
				
			||||||
 | 
					label-unmounted-foreground = ${colors.disabled}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/pulseaudio]
 | 
				
			||||||
 | 
					type = internal/pulseaudio
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					format-volume-prefix = "VOL "
 | 
				
			||||||
 | 
					format-volume-prefix-foreground = ${colors.primary}
 | 
				
			||||||
 | 
					format-volume = <label-volume>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-volume = %percentage%%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-muted = muted
 | 
				
			||||||
 | 
					label-muted-foreground = ${colors.disabled}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/xkeyboard]
 | 
				
			||||||
 | 
					type = internal/xkeyboard
 | 
				
			||||||
 | 
					blacklist-0 = num lock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-layout = %layout%
 | 
				
			||||||
 | 
					label-layout-foreground = ${colors.primary}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label-indicator-padding = 2
 | 
				
			||||||
 | 
					label-indicator-margin = 1
 | 
				
			||||||
 | 
					label-indicator-foreground = ${colors.background}
 | 
				
			||||||
 | 
					label-indicator-background = ${colors.secondary}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/memory]
 | 
				
			||||||
 | 
					type = internal/memory
 | 
				
			||||||
 | 
					interval = 2
 | 
				
			||||||
 | 
					format-prefix = "RAM "
 | 
				
			||||||
 | 
					format-prefix-foreground = ${colors.primary}
 | 
				
			||||||
 | 
					label = %percentage_used:2%%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/cpu]
 | 
				
			||||||
 | 
					type = internal/cpu
 | 
				
			||||||
 | 
					interval = 2
 | 
				
			||||||
 | 
					format-prefix = "CPU "
 | 
				
			||||||
 | 
					format-prefix-foreground = ${colors.primary}
 | 
				
			||||||
 | 
					label = %percentage:2%%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[network-base]
 | 
				
			||||||
 | 
					type = internal/network
 | 
				
			||||||
 | 
					interval = 5
 | 
				
			||||||
 | 
					format-connected = <label-connected>
 | 
				
			||||||
 | 
					format-disconnected = <label-disconnected>
 | 
				
			||||||
 | 
					label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/wlan]
 | 
				
			||||||
 | 
					inherit = network-base
 | 
				
			||||||
 | 
					interface-type = wireless
 | 
				
			||||||
 | 
					label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/eth]
 | 
				
			||||||
 | 
					inherit = network-base
 | 
				
			||||||
 | 
					interface-type = wired
 | 
				
			||||||
 | 
					label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[module/date]
 | 
				
			||||||
 | 
					type = internal/date
 | 
				
			||||||
 | 
					interval = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					date = %H:%M
 | 
				
			||||||
 | 
					date-alt = %Y-%m-%d %H:%M:%S
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					label = %date%
 | 
				
			||||||
 | 
					label-foreground = ${colors.primary}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[settings]
 | 
				
			||||||
 | 
					screenchange-reload = true
 | 
				
			||||||
 | 
					pseudo-transparency = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; vim:ft=dosini
 | 
				
			||||||
| 
						 | 
					@ -23,7 +23,7 @@ super + shift + {q,r}
 | 
				
			||||||
	bspc {quit,wm -r}
 | 
						bspc {quit,wm -r}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# close and kill
 | 
					# close and kill
 | 
				
			||||||
super + {_,shift + }w
 | 
					super + {_,shift + }c
 | 
				
			||||||
	bspc node -{c,k}
 | 
						bspc node -{c,k}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# alternate between the tiled and monocle layout
 | 
					# alternate between the tiled and monocle layout
 | 
				
			||||||
| 
						 | 
					@ -43,7 +43,7 @@ super + g
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# set the window state
 | 
					# set the window state
 | 
				
			||||||
super + {t,shift + t,s,f}
 | 
					super + {t,shift + t,space s,f}
 | 
				
			||||||
	bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
 | 
						bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# set the node flags
 | 
					# set the node flags
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								wallpapers/wallpapers/current.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								wallpapers/wallpapers/current.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 436 KiB  | 
		Loading…
	
		Reference in a new issue