back to dwm
This commit is contained in:
parent
17cd832381
commit
f4eedab852
11 changed files with 34 additions and 6 deletions
|
@ -19,7 +19,6 @@ sysmodmap=/etc/X11/xinit/.Xmodmap
|
|||
# Added xinitrc config
|
||||
dbus-update-activation-environment --systemd --all &
|
||||
systemctl --user import-environment DISPLAY &
|
||||
hsetroot -cover /home/tavo/Pictures/Backgrounds/default.jpeg &
|
||||
xset r rate 300 50 &
|
||||
setxkbmap en &
|
||||
dwmblocks &
|
||||
|
@ -27,6 +26,8 @@ clipmenud &
|
|||
dunst &
|
||||
picom --experimental-backends &
|
||||
clear &
|
||||
#xrandr --output DVI-D-0 --right-of HDMI-0
|
||||
hsetroot -cover /home/tavo/Pictures/Backgrounds/default.jpg &
|
||||
|
||||
while true; do
|
||||
dwm >/dev/null 2>&1
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
width = (200, 300)
|
||||
height = 200
|
||||
origin = top-right
|
||||
offset = 32x32
|
||||
offset = 24x42
|
||||
transparency = 0
|
||||
padding = 4
|
||||
horizontal_padding = 16
|
||||
|
|
6
scripts/dwm/dwmotp
Executable file
6
scripts/dwm/dwmotp
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||
|
||||
password="$(~/.config/scripts/menu/menu-pass)"
|
||||
[ -z "$password" ] && exit
|
||||
xdotool $(pass otp "$password" | head -n 1)
|
6
scripts/dwm/dwmpass
Executable file
6
scripts/dwm/dwmpass
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||
|
||||
password="$(~/.config/scripts/menu/menu-pass)"
|
||||
[ -z "$password" ] && exit
|
||||
xdotool $(pass "$password" | head -n 1)
|
|
@ -6,7 +6,7 @@ BRUN="-run" DRUN="_run" TRUN="-run" FRUN=""
|
|||
[ "$MODE" != "run" ] && BRUN="" DRUN="" TRUN="" FRUN=""
|
||||
|
||||
# Configuration
|
||||
menu="menu_bemenu"
|
||||
menu="menu_dmenu"
|
||||
font="JetbrainsMono"
|
||||
font_size="10"
|
||||
col_white="#ebdbb2" # White
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
input=$(pactl list short sources | cut -f 2 | grep input | menu "Input:")
|
||||
|
||||
# Set audio device, notify command success
|
||||
pactl set-default-source "$input" && notify-send " Default Input" "Set to '$input'" || notify-send " Default Input" "Didn't change"
|
||||
pactl set-default-source "$input" && notify-send -r 11 " Default Input" "Set to '$input'" || notify-send -r 11 " Default Input" "Didn't change"
|
||||
|
||||
# Reload statusbar volume module (dwm & dwmblocks)
|
||||
kill -45 "$(pidof dwmblocks)"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
output=$(pactl list short sinks | cut -f 2 | menu "Output:")
|
||||
|
||||
# Set audio device, notify command success
|
||||
pactl set-default-sink "$output" && notify-send " Default Output" "Set to '$output'" || notify-send " Default Output" "Didn't change"
|
||||
pactl set-default-sink "$output" && notify-send -r 10 " Default Output" "Set to '$output'" || notify-send -r 10 " Default Output" "Didn't change"
|
||||
|
||||
# Reload statusbar module (dwm & dwmblocks)
|
||||
kill -44 "$(pidof dwmblocks)"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
# menu for 'pass'
|
||||
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||
MENU="$HOME/.config/scripts/menu/menu"
|
||||
|
||||
password="$(find "$PASSWORD_STORE_DIR" -type f -name '*.gpg' | sed "s@$PASSWORD_STORE_DIR/@@g ; s@.gpg@@g" | $MENU "Pass:")"
|
||||
|
|
12
scripts/menu/menu-xrandr
Executable file
12
scripts/menu/menu-xrandr
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
LIST="$(xrandr | sed '/disconnected/d;/connected/!d;s/ .*$//g')"
|
||||
MONITORS="$(printf '%s' "$LIST" | tr '\n' ' ')"
|
||||
|
||||
CMD="$(printf 'xrandr' ; for MONITOR in $MONITORS ; do
|
||||
SELECT="$(printf '%s' "$LIST" | menu "Next monitor (to right):")"
|
||||
[ -z "$SELECT" ] && exit 0
|
||||
[ -n "$LAST" ] && printf ' --output %s --right-of %s' "$SELECT" "$LAST"
|
||||
LAST="$SELECT"
|
||||
done)"
|
||||
|
||||
$($CMD)
|
|
@ -32,7 +32,8 @@ set -o vi # vi mode
|
|||
[ -e "$HOME/.config/shell/xdgspec" ] && source ~/.config/shell/xdgspec
|
||||
[ -e "$HOME/.config/shell/aliasrc" ] && source ~/.config/shell/aliasrc
|
||||
[ -e "$HOME/.config/shell/envvar" ] && source ~/.config/shell/envvar
|
||||
[ -e "$HOME/.config/shell/sway" ] && source ~/.config/shell/sway
|
||||
#[ -e "$HOME/.config/shell/sway" ] && source ~/.config/shell/sway
|
||||
[ -e "$HOME/.config/shell/dwm" ] && source ~/.config/shell/dwm
|
||||
|
||||
# Nice shell welcome
|
||||
[ -e "/usr/bin/afetch" ] && (afetch) || (fetch min) 2>/dev/null
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
PATH="$HOME/.config/scripts/status${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts/menu${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts/sway${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts/dwm${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/wrappers${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.local/bin${PATH:+:${PATH}}"
|
||||
|
|
Loading…
Reference in a new issue