i3bar colors/config tweaks

telega desktop entry
m4atowav sh function
This commit is contained in:
2024-10-19 09:22:16 +03:00
parent 7a195bfda8
commit 2a3bb40fb6
6 changed files with 107 additions and 3 deletions

View File

@@ -207,3 +207,7 @@ mp3towav(){
[[ -f "$i" ]] && { echo -n "Processing ${i}..."; mpg123 -w "${out}" "$i" &>/dev/null && echo "done." || echo "failed."; } [[ -f "$i" ]] && { echo -n "Processing ${i}..."; mpg123 -w "${out}" "$i" &>/dev/null && echo "done." || echo "failed."; }
done done
} }
m4atowav(){
local out="${1%.*}.wav"
ffmpeg -i ${1} -f wav ${1%.*}.wav
}

View File

@@ -149,7 +149,7 @@
(use-package chezmoi) (use-package chezmoi)
;; Silly Latex ;; Silly Latex
(setq-default org-latex-toc-command "\\tableofcontents \\clearpage") (setq-default org-latex-toc-command "\\tableofcontents \\clearpage ")
;;org-caldav ;;org-caldav
(use-package! org-caldav (use-package! org-caldav

View File

@@ -6,6 +6,6 @@ exec_always --no-startup-id dunst -config ~/.config/dunst/dunstrc
exec --no-startup-id redshift exec --no-startup-id redshift
#emacs #emacs
exec --no-startup-id emacs --daemon 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 nextcloud --background
exec --no-startup-id clipcatd exec --no-startup-id clipcatd

View File

@@ -36,7 +36,7 @@ exec_always --no-startup-id setxkbmap -layout us,ara -variant ,ergoarabic -optio
# FUCK YOU MICROSOFT (thank you copilot) # FUCK YOU MICROSOFT (thank you copilot)
exec_always --no-startup-id xmodmap ~/.Xmodmap exec_always --no-startup-id xmodmap ~/.Xmodmap
# YEA # 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) #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 #workspace_auto_back_and_forth yes
@@ -81,3 +81,19 @@ bindsym $mod+$alt+e exec emacsclient --eval '(emacs-everywhere)'
#Clipboard manager #Clipboard manager
bindsym $mod+$alt+v exec --no-startup-id clipcat-menu 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
}

View File

@@ -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"
}

View File

@@ -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