From 2a3bb40fb6bda6248647a5fb0a1a6f25c6c1a3f4 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sat, 19 Oct 2024 09:22:16 +0300 Subject: [PATCH] i3bar colors/config tweaks telega desktop entry m4atowav sh function --- dot_sh_functions | 4 ++ private_dot_config/doom/config.el | 2 +- private_dot_config/i3/autostart.conf | 2 +- private_dot_config/i3/misc.conf | 18 +++++- private_dot_config/i3status/empty_config | 63 +++++++++++++++++++ .../private_applications/telegram.desktop | 21 +++++++ 6 files changed, 107 insertions(+), 3 deletions(-) create mode 100644 private_dot_config/i3status/empty_config create mode 100644 private_dot_local/private_share/private_applications/telegram.desktop diff --git a/dot_sh_functions b/dot_sh_functions index 6d2cccb..84e1fb8 100644 --- a/dot_sh_functions +++ b/dot_sh_functions @@ -207,3 +207,7 @@ mp3towav(){ [[ -f "$i" ]] && { echo -n "Processing ${i}..."; mpg123 -w "${out}" "$i" &>/dev/null && echo "done." || echo "failed."; } done } +m4atowav(){ + local out="${1%.*}.wav" + ffmpeg -i ${1} -f wav ${1%.*}.wav +} diff --git a/private_dot_config/doom/config.el b/private_dot_config/doom/config.el index 09720d5..7639199 100644 --- a/private_dot_config/doom/config.el +++ b/private_dot_config/doom/config.el @@ -149,7 +149,7 @@ (use-package chezmoi) ;; Silly Latex -(setq-default org-latex-toc-command "\\tableofcontents \\clearpage") +(setq-default org-latex-toc-command "\\tableofcontents \\clearpage ") ;;org-caldav (use-package! org-caldav diff --git a/private_dot_config/i3/autostart.conf b/private_dot_config/i3/autostart.conf index f9f469b..268a041 100644 --- a/private_dot_config/i3/autostart.conf +++ b/private_dot_config/i3/autostart.conf @@ -6,6 +6,6 @@ exec_always --no-startup-id dunst -config ~/.config/dunst/dunstrc exec --no-startup-id redshift #emacs exec --no-startup-id emacs --daemon -exec --no-startup-id ~/bin/autostart +exec ~/bin/autostart exec --no-startup-id nextcloud --background exec --no-startup-id clipcatd diff --git a/private_dot_config/i3/misc.conf b/private_dot_config/i3/misc.conf index 479c486..43447f0 100644 --- a/private_dot_config/i3/misc.conf +++ b/private_dot_config/i3/misc.conf @@ -36,7 +36,7 @@ exec_always --no-startup-id setxkbmap -layout us,ara -variant ,ergoarabic -optio # FUCK YOU MICROSOFT (thank you copilot) exec_always --no-startup-id xmodmap ~/.Xmodmap # YEA -exec --no-startup-id darkman run +# exec --no-startup-id darkman run #Useful thing to switch back when you press same switcher key (this breaks the spotify move to workspace rule) #workspace_auto_back_and_forth yes @@ -81,3 +81,19 @@ bindsym $mod+$alt+e exec emacsclient --eval '(emacs-everywhere)' #Clipboard manager bindsym $mod+$alt+v exec --no-startup-id clipcat-menu +bar { + position top + colors { + # Whole color settings + background #3c3836 + statusline #ebdbb2 + separator #666666 + + + focused_workspace #458588 #458588 #ebdbb2 + active_workspace #83a598 #83a598 #ebdbb2 + inactive_workspace #504945 #504945 #ebdbb2 + urgent_workspace #cc241d #cc241d #504945 + } + status_command i3status +} diff --git a/private_dot_config/i3status/empty_config b/private_dot_config/i3status/empty_config new file mode 100644 index 0000000..4988637 --- /dev/null +++ b/private_dot_config/i3status/empty_config @@ -0,0 +1,63 @@ +# github.com/rafi i3status config + +# i3status configuration file +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + color_good = "#98971a" + color_bad = "#cc241d" + color_degraded = "#fabd2f" + interval = 2 +} + +#order += "volume master" +#order += "load" +order += "tztime local" +order += "cpu_usage" +order += "disk /" +order += "ethernet enp3s0" + +# volume master { +# #format = "♪%volume" +# device = "default" +# mixer = "Master" +# mixer_idx = 0 +# # termsyn font +# format = "🔊 %volume" +# } + +#load { +## format = " Δ: %1min " +# # termsyn font +# format = "%1min" +#} + +cpu_usage { + format = "%usage CPU" +} + +disk "/" { + format = "%avail:/" +} + +# wireless wlan0 { +# format_up = " W: (%quality at %essid) %ip " +# format_down = " ☡ WiFi " +# } + +ethernet enp3s0 { + # termsyn font + format_up = "%ip" + format_down = "eth0 " +} + +tztime local { + # termsyn font + format = "%h-%d %H:%M" +} diff --git a/private_dot_local/private_share/private_applications/telegram.desktop b/private_dot_local/private_share/private_applications/telegram.desktop new file mode 100644 index 0000000..1d956a5 --- /dev/null +++ b/private_dot_local/private_share/private_applications/telegram.desktop @@ -0,0 +1,21 @@ +[Desktop Entry] + +# The type as listed above +Type=Application + + +# The name of the application +Name=Telegram + +# A comment which can/will be used as a tooltip +Comment=OS but in lisp + + +# The executable of the application, possibly with arguments. +Exec=emacsclient -nc --eval "(telega)" + +# The name of the icon that will be used to display this entry +Icon=emacs + +# Describes whether this application needs to be run in a terminal or not +Terminal=false