From 46c421189c121e12d6d6470d7ec51cf6a69e62a6 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Sun, 22 Nov 2026 22:41:01 +0100 Subject: Improve x11 startup and minor alias, i3 and mpv tweaks --- dot_bashrc | 4 ++-- dot_config/aliasrc | 8 ++++++-- dot_config/i3/config | 21 ++++++++++++--------- dot_config/mpv/mpv.conf | 8 ++++---- dot_xinitrc | 14 ++++---------- dot_xprofile | 23 ++++++++++------------- 6 files changed, 38 insertions(+), 40 deletions(-) diff --git a/dot_bashrc b/dot_bashrc index 4fd573f..b8f107d 100644 --- a/dot_bashrc +++ b/dot_bashrc @@ -1,5 +1,5 @@ -stty -ixon # Disable ctrl-s and ctrl-q. -stty erase ^H # Can happen by pressing Return key +stty -ixon # Disable Ctrl+S / Ctrl+Q flow control +stty erase '^?' # Backspace sends DEL (0x7F) in xterm shopt -s autocd cdspell checkjobs extglob histappend # autocd : Allows you to cd into directory merely by typing the directory name. diff --git a/dot_config/aliasrc b/dot_config/aliasrc index 61a46ca..6a06928 100644 --- a/dot_config/aliasrc +++ b/dot_config/aliasrc @@ -1,6 +1,6 @@ #!/bin/sh -alias mpv='mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) --profile=fast --hwdec=auto-safe' \ +alias mpv='mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)' \ xi="sudo xbps-install" \ xr="sudo xbps-remove" \ xq="xbps-query" \ @@ -13,6 +13,8 @@ alias mpv='mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) --profile=fast --hwdec= la='ls -A' \ l='ls -1' \ ll='ls -lt' \ + lltrh='ls -ltrh' \ + llrth='lltrh' \ xbacklight='sudo xbacklight' \ ipconfig='curl -4 -sS ipconfig.io' \ cp='cp -v' \ @@ -22,6 +24,7 @@ alias mpv='mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) --profile=fast --hwdec= vv='cd ~/Videos && ls -A *' \ pp='cd ~/Pictures && ls -A *' \ mm='cd ~/Music && ls -A !(data-music)' \ + gg='cd ~/Games && ls -A' \ ipa='ip -c a' \ wget='wget --hsts-file="$XDG_DATA_HOME"/wget-hsts' \ scd='echo "YOU USED SCD, BE CAREFUL" ; cd' \ @@ -29,6 +32,7 @@ alias mpv='mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) --profile=fast --hwdec= k=kubectl \ t=task \ tl='task --list-all' \ - sshvps='ssh debian@vps.vpn -p8022' \ + sshxyz='ssh debian@xyz.vpn -p8022' \ + sshli='ssh mas@li.vpn -p8022' \ sshpve='ssh pve.vpn -p8022' \ sshwin='ssh win.vpn -p8022' \ diff --git a/dot_config/i3/config b/dot_config/i3/config index aa76ecf..7fa1940 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -24,12 +24,20 @@ font pango:monospace 8 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --image="$HOME/Pictures/superhot_wpp.png" --show-failed-attemps --nofork +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --image="$HOME/Pictures/superhot_wpp.png" --show-failed-attempts --nofork # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. #exec --no-startup-id nm-applet +# Session applications +exec --no-startup-id dunst +exec --no-startup-id syncthing --no-browser +exec --no-startup-id xcompmgr + +# Set the bg wallpaper +exec --no-startup-id feh --bg-scale "/home/mas/Pictures/retrowave-pyramid.png" + # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status @@ -195,16 +203,14 @@ bar { } # Power off - X -bindsym $mod+Shift+X exec "i3-nagbar -t error -f fixed -m 'You pressed the shutting shortcut. Do you really eant to shut you computer?' -B 'Yes, shut it.' 'sudo /bin/poweroff'" +bindsym $mod+Shift+X exec "i3-nagbar -t error -f fixed -m 'You pressed the shutting shortcut. Do you really eant to shut you computer?' -B 'Yes, shut it.' 'sudo shutdown -P now'" # Reboot - BackSpace bindsym $mod+Shift+BackSpace exec "i3-nagbar -t error -f fixed -m 'You pressed the restarting shortcut. Do you really eant to restart you computer?' -B 'Yes, restart it.' 'sudo /bin/reboot'" -# Set the bg wallpaper -exec --no-startup-id feh --bg-scale /home/mas/Pictures/retrowave-pyramid.png # Sreen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 1 ; exec notify-send -t 500 "Brightness : $(xbacklight -get)" # increase screen brightness -bindsym XF86MonBrightnessDown exec xbacklight -dec 1 ; exec notify-send -t 500 "Brightness : $(xbacklight -get)" # decrease screen brightness +bindsym XF86MonBrightnessUp exec xbacklight -inc 5 ; exec notify-send -t 500 "Brightness : $(xbacklight -get)" # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 5 ; exec notify-send -t 500 "Brightness : $(xbacklight -get)" # decrease screen brightness # class border backgr. text indicator child_border client.focused #c583b6 #040217 #d52c70 #F54A94 #c583b6 @@ -219,9 +225,6 @@ client.background #D52C70 bindsym $mod+Shift+S exec "i3-nagbar -t warning -f fixed -m 'You pressed the suspending shortcut. Do you really want to suspend your computer?' -B 'Yes, suspend it.' 'i3lock --image=$HOME/Pictures/superhot_wpp.png && sudo /bin/zzz'" bindsym $mod+Shift+Delete exec "i3-nagbar -t warning -f fixed -m 'You pressed the hibernating shortcut. Do you really want to put your computer to sleep?' -B 'Yes, do it.' 'sudo /bin/ZZZ'" -# What happens when we hit the power button -bindsym XF86PowerOff exec notify-send -t 5000 "$(date +%H:%M:%S && cat /sys/class/power_supply/BAT0/capacity && pactl get-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo | cut -d' ' -f5-6)" - ######GAPS###### set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) diff --git a/dot_config/mpv/mpv.conf b/dot_config/mpv/mpv.conf index 5cf8b77..8682457 100644 --- a/dot_config/mpv/mpv.conf +++ b/dot_config/mpv/mpv.conf @@ -1,8 +1,8 @@ save-position-on-quit -profile=high-quality -video-sync=display-resample -interpolation -hwdec=auto +#video-sync=display-resample +#interpolation +profile=fast +hwdec=auto-safe [extension.gif] osc=no diff --git a/dot_xinitrc b/dot_xinitrc index 63f5e2f..b71166d 100644 --- a/dot_xinitrc +++ b/dot_xinitrc @@ -8,14 +8,8 @@ # and so they are needed there. To prevent doubling up commands, I source them # here with the line below. -[ -f ~/.xprofile ] && . "$HOME"/.xprofile +# Load X session environment +[ -f "$HOME/.xprofile" ] && . "$HOME/.xprofile" - -###PERSONAL EDIT### -i3 - -xset s off -xset -dpms -xset s noblank -xset r rate 300 50 -setxkbmap -option caps:super +# Start i3 with a D-Bus session +exec dbus-run-session -- i3 diff --git a/dot_xprofile b/dot_xprofile index f48275e..db6db99 100644 --- a/dot_xprofile +++ b/dot_xprofile @@ -3,16 +3,13 @@ # This file runs when a DM logs you into a graphical session. # If you use startx/xinit like a Chad, this file will also be sourced. -xset r rate 300 50 & # Speed xrate up -#unclutter & # Remove mouse when idle -#dunst & # dunst for notifications -syncthing --no-browser & - -autostart="xcompmgr dunst" #unclutter" - -for program in $autostart; do - pidof -s "$program" || setsid -f "$program" -done >/dev/null 2>&1 - -sct 3500 & -xbacklight -set 25 & +# X11 configuration +xset r rate 300 50 # Speed xrate up +xset s off +xset -dpms +xset s noblank +setxkbmap -option caps:super + +# Display settings +sct 3500 +xbacklight -set 25 -- cgit v1.2.3