aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/hypr/hyprland.conf11
-rwxr-xr-x.config/lf/cleaner4
-rw-r--r--.config/lf/icons77
-rw-r--r--.config/lf/lfrc25
-rwxr-xr-x.config/lf/scope13
-rw-r--r--.config/newsboat/config33
-rw-r--r--.config/waybar/config30
-rw-r--r--.config/zsh/.zshrc17
8 files changed, 50 insertions, 160 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index e709b2b..0a7efdd 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -14,7 +14,7 @@ exec-once = dunst
exec-once = hypridle
exec-once = gpg-agent --daemon
exec-once = sing-box run -c /mnt/ssd/settings/config.json
-exec-once = sleep 2 && waybar
+exec-once = waybar
env = QT_SCREEN_SCALE_FACTORS,1;1
env = XCURSOR_SIZE,24
@@ -119,10 +119,6 @@ gestures {
workspace_swipe = false
}
-xwayland {
- force_zero_scaling = true
-}
-
$mainMod = SUPER # Sets "Windows" key as main modifier
bind = $mainMod, Return, exec, $terminal
@@ -143,6 +139,7 @@ bind = $mainMod, E, exec, foot -e neomutt; pkill -RTMIN+12 waybar
bind = $mainMod SHIFT, N, exec, foot -e newsboat; pkill -RTMIN+6 waybar
bind = $mainMod SHIFT, S, exec, slurp | grim -t jpeg -g - - | wl-copy -t image/jpeg
bind = $mainMod SHIFT, R, exec, foot -e btop
+bind = $mainMod, M, exec, foot -e cmus
bind =,XF86AudioPlay, exec, playerctl play-pause
bind =,XF86AudioPrev, exec, playerctl previous
bind =,XF86AudioNext, exec, playerctl next
@@ -197,3 +194,7 @@ workspace = 1, monitor:DP-2
workspace = 2, monitor:DP-2
workspace = 3, monitor:DP-3
workspace = 4, monitor:DP-3
+
+ecosystem {
+ no_update_news = true
+}
diff --git a/.config/lf/cleaner b/.config/lf/cleaner
deleted file mode 100755
index 1227249..0000000
--- a/.config/lf/cleaner
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-#rm ~/.cache/lf/* -f
-exec kitty +kitten icat --clear --stdin no --silent --transfer-mode file </dev/null >/dev/tty
-
diff --git a/.config/lf/icons b/.config/lf/icons
deleted file mode 100644
index aad068c..0000000
--- a/.config/lf/icons
+++ /dev/null
@@ -1,77 +0,0 @@
-di 📁
-fi 📃
-tw 🤝
-ow 📂
-ln ⛓
-or ❌
-ex 🎯
-*.txt ✍
-*.mom ✍
-*.me ✍
-*.ms ✍
-*.avif 🖼
-*.png 🖼
-*.webp 🖼
-*.ico 🖼
-*.jpg 📸
-*.jpe 📸
-*.jpeg 📸
-*.gif 🖼
-*.svg 🗺
-*.tif 🖼
-*.tiff 🖼
-*.xcf 🖌
-*.html 🌎
-*.xml 📰
-*.gpg 🔒
-*.css 🎨
-*.pdf 📚
-*.djvu 📚
-*.epub 📚
-*.csv 📓
-*.xlsx 📓
-*.tex 📜
-*.md 📘
-*.r 📊
-*.R 📊
-*.rmd 📊
-*.Rmd 📊
-*.m 📊
-*.mp3 🎵
-*.opus 🎵
-*.ogg 🎵
-*.m4a 🎵
-*.flac 🎼
-*.wav 🎼
-*.mkv 🎥
-*.mp4 🎥
-*.webm 🎥
-*.mpeg 🎥
-*.avi 🎥
-*.mov 🎥
-*.mpg 🎥
-*.wmv 🎥
-*.m4b 🎥
-*.flv 🎥
-*.zip 📦
-*.rar 📦
-*.7z 📦
-*.tar 📦
-*.z64 🎮
-*.v64 🎮
-*.n64 🎮
-*.gba 🎮
-*.nes 🎮
-*.gdi 🎮
-*.1 ℹ
-*.nfo ℹ
-*.info ℹ
-*.log 📙
-*.iso 📀
-*.img 📀
-*.bib 🎓
-*.ged 👪
-*.part 💔
-*.torrent 🔽
-*.jar ♨
-*.java ♨
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
deleted file mode 100644
index 56ca258..0000000
--- a/.config/lf/lfrc
+++ /dev/null
@@ -1,25 +0,0 @@
-set ifs "\n"
-set icons
-set sixel true
-set cleaner ~/.config/lf/cleaner
-set previewer ~/.config/lf/scope
-
-cmd open ${{
- case $(file --mime-type "$(readlink -f $f)" -b) in
- text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
- video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;;
- audio/*|video/x-ms-asf) mpv --audio-display=no $f ;;
- *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;;
- esac
-}}
-
-cmd delete ${{
- clear; tput cup $(($(tput lines)/3)); tput bold
- set -f
- printf "%s\n\t" "$fx"
- printf "delete?[y/N]"
- read ans
- [ $ans = "y" ] && rm -rf -- $fx
-}}
-
-map D delete
diff --git a/.config/lf/scope b/.config/lf/scope
deleted file mode 100755
index b79c4b6..0000000
--- a/.config/lf/scope
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-case "$(file -Lb --mime-type -- "$1")" in
- image/*)
- chafa -f sixel -s "$2x$3" --animate off --polite on "$1"
- exit 1
- ;;
- text/* | */xml | application/json | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4-2))" -f "$1" ;;
- audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;;
- video/*)
- CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
- [ ! -f "$CACHE" ] && ffmpegthumbnailer -i "$1" -o "$CACHE" -s 0
- chafa -f sixel -s "$2x$3" --animate off --polite on "$CACHE"
-esac
diff --git a/.config/newsboat/config b/.config/newsboat/config
index 3feffa5..66c0400 100644
--- a/.config/newsboat/config
+++ b/.config/newsboat/config
@@ -24,12 +24,20 @@ bind-key D pb-download
bind-key U show-urls
bind-key x pb-delete
-color listnormal cyan default
-color listfocus black yellow standout bold
-color listnormal_unread blue default
-color listfocus_unread yellow default bold
-color info red black bold
-color article white default bold
+color article color223 default
+color background color100 default
+color info color142 default
+color listfocus color214 default
+color listfocus_unread color214 default
+color listnormal color246 default
+color listnormal_unread color175 default
+highlight article "^Feed:.*" color175 default
+highlight article "^Title:.*" color214 default bold
+highlight article "^Author:.*" color167 default
+highlight article "^Link:.*" color109 default
+highlight article "^Date:.*" color142 default
+highlight article "\\[[0-9]\\+\\]" color208 default bold
+highlight article "\\[[^0-9].*[0-9]\\+\\]" color167 default bold
browser linkhandler
macro , open-in-browser
@@ -42,16 +50,3 @@ macro c set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser
macro C set browser "youtube-viewer --comments=%u" ; open-in-browser ; set browser linkhandler
macro p set browser "peertubetorrent %u 480" ; open-in-browser ; set browser linkhandler
macro P set browser "peertubetorrent %u 1080" ; open-in-browser ; set browser linkhandler
-
-highlight all "---.*---" yellow
-highlight feedlist ".*(0/0))" black
-highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold
-highlight article "(^Link:.*|^Date:.*)" default default
-highlight article "https?://[^ ]+" green default
-highlight article "^(Title):.*$" blue default
-highlight article "\\[[0-9][0-9]*\\]" magenta default bold
-highlight article "\\[image\\ [0-9]+\\]" green default bold
-highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold
-highlight article ":.*\\(link\\)$" cyan default
-highlight article ":.*\\(image\\)$" blue default
-highlight article ":.*\\(embedded flash\\)$" magenta default
diff --git a/.config/waybar/config b/.config/waybar/config
index 8b7793c..6e43e9f 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -1,11 +1,12 @@
{
"layer": "top",
"position": "top",
+ "output": "DP-2",
"spacing": 20,
"reload_style_on_change": true,
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": [],
- "modules-right": ["custom/packages", "custom/memory","custom/doppler","custom/forecast","custom/mailbox","custom/nettraf","custom/microphone","custom/volume","custom/clock","custom/internet","tray"],
+ "modules-right": ["custom/packages", "custom/news", "custom/memory", "custom/forecast","custom/mailbox","custom/nettraf","custom/microphone","custom/volume","custom/clock","custom/internet","tray"],
"hyprland/window": {
"format": "{}",
@@ -20,6 +21,17 @@
"format": "{name}",
},
+ "custom/news" : {
+ "tooltip": false,
+ "format": "{}",
+ "signal": 6,
+ "exec" : "sb-news",
+ "on-click": "sb-news 1",
+ "on-click-right": "sb-news 3",
+ "on-click-middle": "sb-news 2",
+ "on-click-backward": "sb-news 6",
+ },
+
"custom/packages" : {
"tooltip": false,
"format": "{}",
@@ -93,12 +105,13 @@
"custom/microphone" : {
"tooltip": false,
"format": "{}",
- "signal": 8,
+ "signal": 23,
"exec" : "sb-microphone",
+ "interval": 10,
"on-click": "sb-microphone 1",
- "on-click-middle": "wpctl set-mute @DEFAULT_SOURCE@ toggle; pkill -RTMIN+8 waybar",
- "on-scroll-up": "wpctl set-volume @DEFAULT_SOURCE@ 0.01+; pkill -RTMIN+8 waybar",
- "on-scroll-down": "wpctl set-volume @DEFAULT_SOURCE@ 0.01-; pkill -RTMIN+8 waybar",
+ "on-click-middle": "sb-microphone 2",
+ "on-scroll-up": "sb-microphone 4",
+ "on-scroll-down": "sb-microphone 5",
"on-click-right": "sb-microphone 3",
"on-click-backward": "sb-microphone 6"
},
@@ -108,10 +121,11 @@
"format": "{}",
"signal": 10,
"exec" : "sb-volume",
+ "interval": 10,
"on-click": "sb-volume 1",
- "on-click-middle": "wpctl set-mute @DEFAULT_SINK@ toggle; pkill -RTMIN+10 waybar",
- "on-scroll-up": "wpctl set-volume @DEFAULT_SINK@ 0.01+; pkill -RTMIN+10 waybar",
- "on-scroll-down": "wpctl set-volume @DEFAULT_SINK@ 0.01-; pkill -RTMIN+10 waybar",
+ "on-click-middle": "sb-volume 2",
+ "on-scroll-up": "sb-volume 4",
+ "on-scroll-down": "sb-volume 5",
"on-click-right": "sb-volume 3",
"on-click-backward": "sb-volume 6"
},
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index b5ebdc8..fbf6d01 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -38,16 +38,15 @@ _comp_options+=(globdots) # Include hidden files.
source "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
-lfcd () {
- tmp="$(mktemp -uq)"
- trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM PWR EXIT' HUP INT QUIT TERM PWR EXIT
- lf -last-dir-path="$tmp" "$@"
- if [ -f "$tmp" ]; then
- dir="$(cat "$tmp")"
- [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
- fi
+function y() {
+ local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
+ yazi "$@" --cwd-file="$tmp"
+ if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
+ builtin cd -- "$cwd"
+ fi
+ rm -f -- "$tmp"
}
-bindkey -s '^o' '^ulfcd\n'
+bindkey -s '^o' '^uy\n'
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then