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