summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/picom/picom.conf5
-rw-r--r--.config/shell/aliasrc39
-rw-r--r--.config/x11/xinitrc2
-rwxr-xr-x.config/yt-dlp/config2
-rw-r--r--.config/zsh/.zshrc1
5 files changed, 40 insertions, 9 deletions
diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf
index fa4d989..6d3640c 100644
--- a/.config/picom/picom.conf
+++ b/.config/picom/picom.conf
@@ -1,6 +1,11 @@
# just very slightly rounded corners
# empty file, just so transparency works on st
+opacity-rule = [
+ "90:class_g = 'discord' && focused",
+ "90:class_g = 'discord' && !focused"
+]
+
# corner-radius = 6
# rounded-corners-exclude = [
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 7cc0a9d..c107f4d 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -14,6 +14,8 @@ alias z='zathura'
alias cn='clear;neofetch'
alias nnn='nnn -Hde'
alias ea='vi ~/.config/shell/aliasrc'
+alias setkeys='xset r rate 250 30 && setxkbmap -option "ctrl:nocaps"'
+alias cam='mpv --profile=low-latency --untimed /dev/video0'
alias freyr='sudo docker run -it --rm -v /media/hdd/music:/data freyrcli/freyrjs'
# setting custom ascii
@@ -28,10 +30,18 @@ alias mkd='mkdir -pv'
# Colorize grep output
alias grep='grep --color=auto -i'
-# color ls, always full info and human readable; group dirs
+# ls shortcuts
alias ls='ls -hl --color=always --group-directories-first'
alias la='ls -a'
+ld() {
+ if [ "$1" = "" ]; then
+ ls -d */;
+ else
+ ls -d $1/*/ | sed "s|$1/||";
+ fi
+}
+
# Control Audio
alias headset="wpctl set-default $(wpctl status | grep 'Headphones' | cut -b11-12)"
alias speakers="wpctl set-default $(wpctl status | grep 'Speakers' | cut -b11-12)"
@@ -45,6 +55,25 @@ alias setlmon-lowres='xrandr --auto --output DisplayPort-2 --mode 640x480 --left
alias setlmon-midres='xrandr --auto --output DisplayPort-2 --mode 800x600 --left-of HDMI-A-0'
alias setlmon-default='xrandr --auto --output DisplayPort-2 --mode 1600x900 --left-of HDMI-A-0'
+# function for timer and stopwatch
+timer() {
+ date1=$((`date +%s` + $1));
+ while [ "$date1" -ge `date +%s` ]; do
+ echo -ne "$(date -u --date @$(($date1 - `date +%s`)) +%H:%M:%S)\r";
+ sleep 0.1
+ done
+ notify-send "Time Up"; pw-play "/usr/share/sounds/freedesktop/stereo/complete.oga"
+}
+
+stopwatch() {
+ date1=`date +%s`;
+ while true; do
+ echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r";
+ sleep 0.1
+ done
+}
+
+
## FUNCTIONS FOR CONVERTING DATE TO ISO 8601
# convert date from YYYYMMDD to YYYY-MM-DD
@@ -63,15 +92,11 @@ date-reverse() {
done;
}
-## DOWNLOADING AND CONVERTING VIDEO
-
-# shortcuts for most used yt-dlp settings
-alias ytvid='yt-dlp -o "/media/hdd/vids/random/%(title)s.%(ext)s" --remux-video "mkv"'
-alias ytarchive='yt-dlp -o "/media/hdd/vids/archives/%(uploader)s/%(upload_date)s - %(title)s/%(title)s.%(ext)s" --remux-video "mkv"'
+## CONVERTING VIDEO
# convert video files to webm
mkwebm() {
- ffmpeg -i "${1}" -crf 1 -b:v 1M -c:a libvorbis "${1%.*}".webm
+ ffmpeg -i "${1}" -c:v libvpx-vp9 -crf 1 -b:v 1M -c:a libvorbis "${1%.*}".webm
}
## GIT
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
index 220c9ff..d106aa8 100644
--- a/.config/x11/xinitrc
+++ b/.config/x11/xinitrc
@@ -19,7 +19,7 @@ setxkbmap -option "ctrl:nocaps"
xrandr --auto --output HDMI-A-0 --mode 1920x1080 --primary
xrandr --auto --output DisplayPort-2 --mode 1600x900 --left-of HDMI-A-0
-# ibus-daemon -dxrR
+ibus-daemon -dxrR
statusbar &
pipewire &
mpd &
diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config
index aeb3bda..e2b5628 100755
--- a/.config/yt-dlp/config
+++ b/.config/yt-dlp/config
@@ -1 +1 @@
---verbose -ciw -f bestvideo[ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/best[ext=mp4]/best --merge-output-format mkv
+--verbose -ciw -f bestvideo[ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/best[ext=mp4]/best --add-metadata --merge-output-format mkv
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index c5e5f2d..016a729 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -1,6 +1,7 @@
autoload -U colors && colors
stty stop undef
+setopt no_nomatch
autoload -U compinit
zstyle ':completion:*' menu select