Compare commits

...

7 Commits

Author SHA1 Message Date
f6fee77954 userdirs: put documents in ~/.local/share 2024-11-19 20:19:50 +02:00
df3bf6fa57 xinitrc: add some random wms. i don't really use this anymore 2024-11-19 20:19:18 +02:00
8b408504e3 sxhkd: use rofi -drun 2024-11-19 20:19:01 +02:00
53628003d7 polybar: add pipewire buffer size module 2024-11-19 20:18:42 +02:00
4e464eac48 fish: xdg cleanup 2024-11-19 20:18:13 +02:00
6c4159d112 i3: make rofi run with -drun 2024-11-19 20:17:50 +02:00
8e916634f5 bspwm: focus follows mouse 2024-11-19 20:17:35 +02:00
9 changed files with 102 additions and 10 deletions

View File

@ -3,11 +3,7 @@
# Load colors from wal # Load colors from wal
[ -f "${HOME}/.cache/wal/colors.sh" ] && . "${HOME}/.cache/wal/colors.sh" [ -f "${HOME}/.cache/wal/colors.sh" ] && . "${HOME}/.cache/wal/colors.sh"
# Define mod keys bspc config focus_follows_pointer true
mod=Mod4 # Usually the Super key
alt=Mod1 # Usually the Alt key
ctrl=Control
shift=Shift
# Set bspwm settings # Set bspwm settings
bspc monitor -d a s d f g z x c v b bspc monitor -d a s d f g z x c v b

View File

@ -34,6 +34,10 @@ set -Ux SQLITE_HISTORY "$XDG_CACHE_HOME"/sqlite_history
set -Ux UNCRUSTIFY_CONFIG "$XDG_CONFIG_HOME"/uncrustify/uncrustify.cfg set -Ux UNCRUSTIFY_CONFIG "$XDG_CONFIG_HOME"/uncrustify/uncrustify.cfg
set -Ux XAUTHORITY "$XDG_RUNTIME_DIR"/Xauthority set -Ux XAUTHORITY "$XDG_RUNTIME_DIR"/Xauthority
set -Ux _JAVA_OPTIONS -Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java set -Ux _JAVA_OPTIONS -Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
set -Ux ERRFILE "$XDG_CACHE_HOME/X11/xsession-errors"
set -Ux XAUTHORITY "$XDG_RUNTIME_DIR"/Xauthority
set -Ux RUSTUP_HOME "$XDG_DATA_HOME"/rustup
set -Ux CARGO_HOME "$XDG_DATA_HOME"/cargo
# wine prefix # wine prefix
set -Ux WINEPREFIX "$XDG_DATA_HOME/wine/" set -Ux WINEPREFIX "$XDG_DATA_HOME/wine/"

View File

@ -0,0 +1,60 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR --export ANDROID_HOME:/home/meq/\x2elocal/share/android
SETUVAR --export B2_ACCOUNT_ID:0000a61cce56211000000000f
SETUVAR --export B2_ACCOUNT_KEY:K000UFoJ5fqDCk5WTnkvZVdJZ0Z3hxA
SETUVAR --export CARGO_HOME:/home/meq/\x2elocal/share/cargo
SETUVAR --export --path CUDA_CACHE_PATH:/home/meq/\x2ecache/nv
SETUVAR --export EDITOR:nvim
SETUVAR --export ERRFILE:/home/meq/\x2ecache/X11/xsession\x2derrors
SETUVAR --export GDBHISTFILE:/home/meq/\x2elocal/share/gdb/history
SETUVAR --export GNUPGHOME:/home/meq/\x2elocal/share/gnupg
SETUVAR --export --path GOPATH:/home/meq/\x2elocal/share/go
SETUVAR --export ICEAUTHORITY:/home/meq/\x2ecache/ICEauthority
SETUVAR --export IPYTHONDIR:/home/meq/\x2econfig/ipython
SETUVAR --export LESSHISTFILE:\x2d
SETUVAR --export MANPAGER:nvimpager
SETUVAR --export MYPY_CACHE_DIR:/home/meq/\x2ecache/mypy
SETUVAR --export NPM_CONFIG_USERCONFIG:/home/meq/\x2econfig/npm/npmrc
SETUVAR --export PASSWORD_STORE_DIR:/home/meq/\x2elocal/share/pass
SETUVAR --export QT_STYLE_OVERRIDE:kvantum
SETUVAR --export RUSTUP_HOME:/home/meq/\x2elocal/share/rustup
SETUVAR --export SQLITE_HISTORY:/home/meq/\x2ecache/sqlite_history
SETUVAR --export UNCRUSTIFY_CONFIG:/home/meq/\x2econfig/uncrustify/uncrustify\x2ecfg
SETUVAR --export WINEPREFIX:/home/meq/\x2elocal/share/wine/
SETUVAR --export XAUTHORITY:/run/user/1000/Xauthority
SETUVAR --export XDG_CACHE_HOME:/home/meq/\x2ecache
SETUVAR --export XDG_CONFIG_HOME:/home/meq/\x2econfig
SETUVAR --export XDG_DATA_HOME:/home/meq/\x2elocal/share
SETUVAR --export _JAVA_OPTIONS:\x2dDjava\x2eutil\x2eprefs\x2euserRoot\x3d/home/meq/\x2econfig/java
SETUVAR --export _ZO_MAXAGE:100000
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:blue
SETUVAR fish_color_comment:red
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:green
SETUVAR fish_color_error:brred
SETUVAR fish_color_escape:brcyan
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:brcyan
SETUVAR fish_color_param:cyan
SETUVAR fish_color_quote:yellow
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_key_bindings:fish_vi_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr
SETUVAR fish_user_paths:/home/meq/\x2elocal/share/gem/ruby/3\x2e0\x2e0/bin\x1e/home/meq/\x2econfig/scripts/util\x1e/home/meq/\x2econfig/scripts/applications\x1e/home/meq/\x2elocal/share/npm/bin\x1e/home/meq/\x2elocal/share/go/bin\x1e/home/meq/\x2elocal/share/cargo/bin\x1e/home/meq/\x2elocal/bin

View File

@ -6,7 +6,6 @@ set $calculator "rofi -show calc"
set $calendar "$terminal -e nvim +Agenda" set $calendar "$terminal -e nvim +Agenda"
set $feed_reader "$terminal -e newsboat" set $feed_reader "$terminal -e newsboat"
set $file_manager thunar set $file_manager thunar
set $launcher "rofi -show run"
set $music_player "kitty -e ncmpcpp" set $music_player "kitty -e ncmpcpp"
set $screen_locker "i3lock -c 000000" set $screen_locker "i3lock -c 000000"
@ -79,7 +78,8 @@ bindsym $mod+Control+q floating toggle
# #
bindsym $mod+Return exec $terminal bindsym $mod+Return exec $terminal
bindsym $mod+space exec --no-startup-id $launcher bindsym $mod+space exec --no-startup-id "rofi -show drun"
bindsym $mod+Control+space exec --no-startup-id "rofi -show run"
bindsym $mod+grave exec flameshot gui bindsym $mod+grave exec flameshot gui
bindsym $mod+1 exec $file_manager bindsym $mod+1 exec $file_manager

View File

@ -32,7 +32,7 @@ font-0 = mononoki-12;1
modules-left = ewmh modules-left = ewmh
modules-center = date modules-center = date
modules-right = mpd filesystem pulseaudio xkeyboard memory cpu wlan eth modules-right = mpd filesystem pipewire_buffer_size pulseaudio xkeyboard memory cpu wlan eth
cursor-click = pointer cursor-click = pointer
cursor-scroll = ns-resize cursor-scroll = ns-resize
@ -43,10 +43,16 @@ enable-ipc = true
; wm-restack = generic ; wm-restack = generic
; wm-restack = bspwm ; wm-restack = bspwm
; wm-restack = i3 wm-restack = i3
; override-redirect = true ; override-redirect = true
[module/pipewire_buffer_size]
type = custom/script
exec = ~/.config/polybar/pipewire_buffer_size.sh
interval = 10
click-right = ~/.config/polybar/pipewire_buffer_size.sh click
[module/info-hlwm-workspaces] [module/info-hlwm-workspaces]
type = custom/script type = custom/script
exec = ~/.config/polybar/info-hlwm-workspaces/info-hlwm-workspaces.sh exec = ~/.config/polybar/info-hlwm-workspaces/info-hlwm-workspaces.sh

View File

@ -0,0 +1,18 @@
#!/bin/bash
BUFFER_SIZES=("64" "128" "256" "512" "1024" "2048" "4096")
current_buffer_size=$(pw-metadata -n settings 0 clock.force-quantum | grep -oP "value:'\K[0-9]+")
if [[ $1 == "click" ]]; then
new_buffer_size=$(echo "${BUFFER_SIZES[@]}" | tr ' ' '\n' | xmenu)
if [[ -n $new_buffer_size ]]; then
pw-metadata -n settings 0 clock.force-quantum "$new_buffer_size"
current_buffer_size=$new_buffer_size
fi
exit 0
fi
echo "$current_buffer_size"

View File

@ -49,6 +49,9 @@ super + {a,s,d,f,g,z,x,c,v,b}
bspc desktop -f "$d.local" || bspc desktop -s "$d" bspc desktop -f "$d.local" || bspc desktop -s "$d"
# this is running on fish for some reason # this is running on fish for some reason
super + shift + {a,s,d,f,g,z,x,c,v,b}
bspc node -d {a,s,d,f,g,z,x,c,v,b}
# Monitor # Monitor
super + m super + m
bspc monitor -f next bspc monitor -f next
@ -86,6 +89,9 @@ super + Return
kitty kitty
super + space super + space
rofi -show drun
super + control + space
rofi -show run rofi -show run
super + grave super + grave

View File

@ -10,6 +10,6 @@ XDG_MUSIC_DIR="$HOME/docs/music"
XDG_DESKTOP_DIR="$HOME/" XDG_DESKTOP_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/" XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/" XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/" XDG_DOCUMENTS_DIR="$HOME/.local/share/documents"
XDG_PICTURES_DIR="$HOME/" XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/" XDG_VIDEOS_DIR="$HOME/"

View File

@ -6,7 +6,9 @@ xsetwacom set "Wacom One by Wacom S Pen stylus" MapToOutput 1920x1200+2560+0
xsetwacom set "Wacom One by Wacom S Pen stylus" Rotate half xsetwacom set "Wacom One by Wacom S Pen stylus" Rotate half
xset r rate 300 50 xset r rate 300 50
exec herbstluftwm exec herbstluftwm
# qtile start
# exec gnome-session # exec gnome-session
# exec xfce4-session
# exec awesome # exec awesome
# exec bspwm # exec bspwm
# exec i3 # exec i3