summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-08 13:17:34 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-08 13:17:34 +0200
commit8cd1f322f47d48cae6bb142aa778728983db883f (patch)
tree4fc24a7d6c07700c4eb3cbc679999ff2450e1356
parent6cadbb9ce57152dd63ebf3ee58513963c635705e (diff)
parent0033f5386467f32dcee4dbb9cea0f92dd4fe9dc2 (diff)
Merge branch 'main' of db:dotfiles
-rwxr-xr-xbin/extra/ehbtodl14
-rw-r--r--config/common/mpd/mpd.conf7
-rw-r--r--config/common/ncmpcpp/config13
-rw-r--r--config/essentials/nvim/after/plugin/luasnip.lua4
-rw-r--r--config/essentials/nvim/lua/user/zk.lua10
-rw-r--r--config/hyprland/waybar/config.jsonc11
-rw-r--r--config/hyprland/waybar/schemes/base16.css15
7 files changed, 62 insertions, 12 deletions
diff --git a/bin/extra/ehbtodl b/bin/extra/ehbtodl
index df11797..fc873f6 100755
--- a/bin/extra/ehbtodl
+++ b/bin/extra/ehbtodl
@@ -1,9 +1,13 @@
#!/usr/bin/env sh
-echo "$1" | sed 's/-H/\\\n\t&/g' | sed '/gzip/d' > /tmp/curlcommand.sh
-sh /tmp/curlcommand.sh > /tmp/ehbso.html
-vids="$(grep -oE "youtube\.com/embed/.{11}" /tmp/ehbso.html | cut -d'/' -f 3 | tr '\n' ' ')"
+printf "%s\n" "$1" |
+ sed 's/-H/\\\n&/g' |
+ sed '/gzip/d' |
+ tee /tmp/curlcommand.sh |
+ sh > /tmp/ehbso.html
+vids="$(grep -oE "youtube\.com/embed/.{11}" /tmp/ehbso.html |
+ cut -d'/' -f 3 |
+ tr '\n' ' ')"
for i in $vids
-do
- echo "https://www.youtube.com/watch?v=$i"
+do printf "%s\n" "https://www.youtube.com/watch?v=$i"
done > /tmp/todownload
# yt-dlp -P "$HOME/Downloads/vids" -o "%(title)s" -a /tmp/todownload
diff --git a/config/common/mpd/mpd.conf b/config/common/mpd/mpd.conf
index dda6f45..606c8d4 100644
--- a/config/common/mpd/mpd.conf
+++ b/config/common/mpd/mpd.conf
@@ -18,3 +18,10 @@ audio_output {
always_on "yes" # prevent MPD from disconnecting all listeners when playback is stopped.
tags "yes" # httpd supports sending tags to listening streams.
}
+
+audio_output {
+ type "fifo"
+ name "fifo"
+ path "~/.config/mpd/mpd.fifo"
+ format "44100:16:2"
+}
diff --git a/config/common/ncmpcpp/config b/config/common/ncmpcpp/config
index 9a87787..2136109 100644
--- a/config/common/ncmpcpp/config
+++ b/config/common/ncmpcpp/config
@@ -445,7 +445,7 @@
##
## Note: You can define startup screen by choosing screen from the list above.
##
-startup_screen = browser
+# startup_screen = browser
#
##
## Note: You can define startup slave screen by choosing screen from the list
@@ -508,7 +508,7 @@ startup_screen = browser
#
#media_library_sort_by_mtime = no
#
-enable_window_title = no
+# enable_window_title = no
#
##
## Note: You can choose default search mode for search engine. Available modes
@@ -595,4 +595,11 @@ enable_window_title = no
#window_border_color = green
#
#active_window_border = red
-#
+
+startup_screen = browser
+enable_window_title = no
+visualizer_data_source = "~/.config/mpd/mpd.fifo"
+visualizer_output_name = "fifo"
+visualizer_in_stereo = "yes"
+visualizer_type = "spectrum"
+visualizer_look = "+|"
diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua
index a98fe82..3f607ab 100644
--- a/config/essentials/nvim/after/plugin/luasnip.lua
+++ b/config/essentials/nvim/after/plugin/luasnip.lua
@@ -206,6 +206,10 @@ ls.add_snippets("javascript", {
{ i(1), rep(1), i(0) })),
})
+ls.add_snippets("cs", {
+ parse("cw", "Console.WriteLine($1);$0"),
+})
+
ls.add_snippets("telekasten", {
--link
s("ln", fmt(
diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua
index db022cb..989560a 100644
--- a/config/essentials/nvim/lua/user/zk.lua
+++ b/config/essentials/nvim/lua/user/zk.lua
@@ -76,6 +76,16 @@ require("telekasten").setup({
template_new_note = home .. "/" .. "templates/new_note.md",
new_note_filename = "title",
},
+ ScalingNetworks = {
+ home = home .. "/" .. "ScalingNetworks",
+ template_new_note = home .. "/" .. "templates/new_note.md",
+ new_note_filename = "title",
+ },
+ RoutingSwitchingEssentials = {
+ home = home .. "/" .. "RoutingSwitchingEssentials",
+ template_new_note = home .. "/" .. "templates/new_note.md",
+ new_note_filename = "title",
+ },
SoftwareDesign2 = {
home = home .. "/" .. "SoftwareDesign2",
template_new_note = home .. "/" .. "templates/new_note.md",
diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc
index ebf9cf9..4c95c25 100644
--- a/config/hyprland/waybar/config.jsonc
+++ b/config/hyprland/waybar/config.jsonc
@@ -2,7 +2,7 @@
"layer": "top",
"modules-left": ["battery", "hyprland/workspaces", "mpd", "hyprland/window"],
"modules-center": ["clock"],
- "modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"],
+ "modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "bluetooth", "tray"],
"mpd": {
"format": "{artist} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
"artist-len": 24,
@@ -67,6 +67,15 @@
"format-alt": "{:(%T) %A %d %B}",
"interval": 1,
},
+ "bluetooth": {
+ "format": "",
+ "format-disabled": "",
+ "format-connected": "",
+ "format-on": "",
+ "tooltip-format": "{controller_alias}\t{controller_address}",
+ "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
+ "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}"
+ },
"tray": {
"spacing": 5,
}
diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css
index 76efbb3..b32d3df 100644
--- a/config/hyprland/waybar/schemes/base16.css
+++ b/config/hyprland/waybar/schemes/base16.css
@@ -51,11 +51,12 @@ window#waybar.PCSX2 #window {
margin-right: 2px;
}
.modules-left {
- margin-left: 2px;
+ margin-left: 3px;
}
-#workspaces, #mpd, #battery, #clock,
-#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray {
+#workspaces, #mpd, #battery,
+#clock,
+#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory, #bluetooth, #tray {
border: solid @background;
border-width: 2px 2px 2px 0;
margin-top: 4px;
@@ -67,6 +68,9 @@ window#waybar.PCSX2 #window {
color: @color6;
background: @background;
border-color: @color4;
+ border-width: 2px;
+ padding: 0 12px;
+ margin-right: 16px;
}
#workspaces {
@@ -148,6 +152,11 @@ window#waybar.PCSX2 #window {
background: @color5;
}
+#bluetooth {
+ color: @color6;
+ background: @color8;
+}
+
#tray * {
padding: unset;
}