Compare commits
	
		
			4 Commits
		
	
	
		
			4984001bf1
			...
			ea282a5569
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | ea282a5569 | |
|  | ff7a64b050 | |
|  | 478cceab1f | |
|  | e31be56ff1 | 
|  | @ -31,6 +31,7 @@ | |||
| 
 | ||||
|     packages = with pkgs; [ | ||||
|       corefonts | ||||
|       font-awesome | ||||
|       hasklig | ||||
|       inter | ||||
|       iosevka | ||||
|  |  | |||
|  | @ -85,7 +85,7 @@ type Status = { | |||
|   artist: string; | ||||
|   id: number; | ||||
|   progress: number; | ||||
|   status: "playing" | "paused"; | ||||
|   status: "playing" | "paused" | "stopped"; | ||||
|   title: string; | ||||
|   track: { | ||||
|     duration: number; | ||||
|  | @ -100,11 +100,9 @@ async function getStatus(): Promise<Status> { | |||
| /** Print the current song's artist and title. */ | ||||
| async function getCurrentSong(): Promise<void> { | ||||
|   const status = await getStatus(); | ||||
|   if (status.status === "paused") { | ||||
|     return; | ||||
|   } | ||||
| 
 | ||||
|   if (status.status === "playing") { | ||||
|     console.log(`${status.artist} - ${status.title}`); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| if (import.meta.main) { | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ floating_modifier $mod | |||
| mouse_warping none | ||||
| 
 | ||||
| # Define names for default workspaces. | ||||
| set $ws1 "1" | ||||
| set $ws2 "2" | ||||
| set $ws1 "1:Main" | ||||
| set $ws2 "2:Tauon" | ||||
| set $ws3 "3" | ||||
| set $ws4 "4" | ||||
| set $ws5 "5" | ||||
|  | @ -53,11 +53,13 @@ bar { | |||
|     inactive_workspace #2A2041 #1F1731 #E6DEFF | ||||
|     urgent_workspace #F99ADD #F99ADD #1F1731 | ||||
|   } | ||||
|   font pango:Hasklig, Font Awesome 6 Free 10 | ||||
|   i3bar_command i3bar --transparency | ||||
|   output primary | ||||
|   position bottom | ||||
|   separator_symbol "•" | ||||
|   status_command i3status-rs | ||||
|   strip_workspace_numbers yes | ||||
|   tray_output primary | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| # i3 keybinds. | ||||
| bindsym $mod+b bar mode toggle | ||||
| bindsym $mod+f fullscreen toggle | ||||
| bindsym $mod+r mode "resize" | ||||
| bindsym $mod+Shift+q kill | ||||
|  |  | |||
|  | @ -1,20 +1,20 @@ | |||
| [icons.overrides] | ||||
| bear = "🐻" | ||||
| bell = "🔔" | ||||
| bunny = "🐇" | ||||
| music = "▶️" | ||||
| circle_play = "\uf144" | ||||
| rss = "\uf09e" | ||||
| 
 | ||||
| [[block]] | ||||
| block = "custom" | ||||
| command = "tauon-controls --current-song" | ||||
| format = "^icon_music $text.pango-str()" | ||||
| format = "^icon_circle_play $text.pango-str()" | ||||
| interval = 15 | ||||
| hide_when_empty = true | ||||
| 
 | ||||
| [[block]] | ||||
| block = "custom" | ||||
| command = "miniflux-unread-entries" | ||||
| format = "^icon_bell <span color='#D2B83A'>$text.pango-str()</span>" | ||||
| format = "^icon_rss $text.pango-str()" | ||||
| interval = 600 | ||||
| hide_when_empty = true | ||||
| [[block.click]] | ||||
|  |  | |||
		Reference in New Issue