chore(sway): updates
This commit is contained in:
		
							parent
							
								
									e582b41bde
								
							
						
					
					
						commit
						f933b7c2e1
					
				
					 6 changed files with 34 additions and 8 deletions
				
			
		
							
								
								
									
										24
									
								
								config/i3status-rs/config.toml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								config/i3status-rs/config.toml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| [[block]] | ||||
| block = "battery" | ||||
| 
 | ||||
| [[block]] | ||||
| block = "cpu" | ||||
| 
 | ||||
| [[block]] | ||||
| block = "disk_space" | ||||
| path = "/" | ||||
| info_type = "available" | ||||
| alert_unit = "GB" | ||||
| interval = 20 | ||||
| warning = 20.0 | ||||
| alert = 10.0 | ||||
| format = " $icon root: $available.eng(w:2) " | ||||
| 
 | ||||
| [[block]] | ||||
| block = "memory" | ||||
| format = " $icon $mem_total_used_percents.eng(w:2) " | ||||
| format_alt = " $icon_swap $swap_used_percents.eng(w:2) " | ||||
| 
 | ||||
| [[block]] | ||||
| block = "time" | ||||
| format = " $timestamp.datetime(f:'%a %d/%m/%Y %R') " | ||||
|  | @ -25,7 +25,7 @@ set $menu wofi --show run | |||
| ### Output configuration | ||||
| # | ||||
| # Default wallpaper (more resolutions are available in /run/current-system/sw/share/backgrounds/sway/) | ||||
| output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill | ||||
| output * bg ~/.config/sway/wallpaper.png fill | ||||
| # | ||||
| # Example configuration: | ||||
| # | ||||
|  | @ -216,18 +216,19 @@ bindsym $mod+r mode "resize" | |||
| # | ||||
| # Read `man 5 sway-bar` for more information about this section. | ||||
| bar { | ||||
|     position top | ||||
|     position bottom | ||||
|     tray_padding 10px | ||||
|     font pango:DejaVu Sans Mono 16 | ||||
| 
 | ||||
|     # When the status_command prints a new line to stdout, swaybar updates. | ||||
|     # The default just shows the current date and time. | ||||
|     # status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done | ||||
|     status_command while ~/.config/sway/status.sh; do sleep 5; done | ||||
|     status_command /run/current-system/sw/bin/i3status-rs ~/.config/i3status-rs/config.toml | ||||
| 
 | ||||
|     colors { | ||||
|         statusline #ffffff | ||||
|         background #323232 | ||||
|         focused_workspace #ffffff #ffffff #333333 | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +0,0 @@ | |||
| date_formatted=$(date "+%d/%m/%Y %H:%M:%S") | ||||
| 
 | ||||
| battery_status=$(cat /sys/class/power_supply/BAT0/capacity) | ||||
| 
 | ||||
| echo $battery_status% $date_formatted | ||||
							
								
								
									
										
											BIN
										
									
								
								config/sway/wallpaper.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								config/sway/wallpaper.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 117 KiB | 
|  | @ -247,6 +247,11 @@ in | |||
|     recursive = true; | ||||
|   }; | ||||
| 
 | ||||
|   xdg.configFile.i3status-rs = { | ||||
|     source = ../../config/i3status-rs; | ||||
|     recursive = true; | ||||
|   }; | ||||
| 
 | ||||
|   xdg.configFile.nvim = { | ||||
|     source = ../../config/neovim; | ||||
|     recursive = true; | ||||
|  |  | |||
|  | @ -119,6 +119,7 @@ in { | |||
|   environment.systemPackages = with pkgs; | ||||
|     [ | ||||
|       configure-gtk | ||||
|       i3status-rust | ||||
|       swayidle | ||||
|       swaylock | ||||
|     ]; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue