Compare commits
4 Commits
4984001bf1
...
ea282a5569
Author | SHA1 | Date |
---|---|---|
Bauke | ea282a5569 | |
Bauke | ff7a64b050 | |
Bauke | 478cceab1f | |
Bauke | e31be56ff1 |
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
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";
|
status: "playing" | "paused" | "stopped";
|
||||||
title: string;
|
title: string;
|
||||||
track: {
|
track: {
|
||||||
duration: number;
|
duration: number;
|
||||||
|
@ -100,11 +100,9 @@ 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 === "paused") {
|
if (status.status === "playing") {
|
||||||
return;
|
console.log(`${status.artist} - ${status.title}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
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"
|
set $ws1 "1:Main"
|
||||||
set $ws2 "2"
|
set $ws2 "2:Tauon"
|
||||||
set $ws3 "3"
|
set $ws3 "3"
|
||||||
set $ws4 "4"
|
set $ws4 "4"
|
||||||
set $ws5 "5"
|
set $ws5 "5"
|
||||||
|
@ -53,11 +53,13 @@ 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,4 +1,5 @@
|
||||||
# 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 = "🐇"
|
||||||
music = "▶️"
|
circle_play = "\uf144"
|
||||||
|
rss = "\uf09e"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "custom"
|
block = "custom"
|
||||||
command = "tauon-controls --current-song"
|
command = "tauon-controls --current-song"
|
||||||
format = "^icon_music $text.pango-str()"
|
format = "^icon_circle_play $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_bell <span color='#D2B83A'>$text.pango-str()</span>"
|
format = "^icon_rss $text.pango-str()"
|
||||||
interval = 600
|
interval = 600
|
||||||
hide_when_empty = true
|
hide_when_empty = true
|
||||||
[[block.click]]
|
[[block.click]]
|
||||||
|
|
Loading…
Reference in New Issue