Looking for one more sign
This commit is contained in:
parent
6f37e3c563
commit
696dcd1d27
7 changed files with 34 additions and 111 deletions
|
@ -1,8 +1,8 @@
|
|||
profile {
|
||||
output eDP-1 disable
|
||||
output "LG Electronics MP59G 0x000672C5" mode 1920x1080 position 0,0
|
||||
output "LG Electronics MP59G 0x000672C5" mode 1920x1080 position 0,0 scale 1.0
|
||||
}
|
||||
|
||||
profile {
|
||||
output eDP-1 enable scale 1.25
|
||||
output eDP-1 enable scale 1.0
|
||||
}
|
||||
|
|
|
@ -1,97 +0,0 @@
|
|||
#!/bin/sh
|
||||
source $HOME/.cache/hellwal/colors-river
|
||||
|
||||
# Set background and border color
|
||||
riverctl background-color "0x$background"
|
||||
riverctl border-color-focused "0x$color1"
|
||||
riverctl border-color-unfocused "0x$color2"
|
||||
|
||||
riverctl spawn "slstatus | dam"
|
||||
riverctl spawn "wbg "$wallpaper""
|
||||
riverctl spawn "foot --server"
|
||||
riverctl spawn "swayidle"
|
||||
riverctl spawn "mako"
|
||||
|
||||
riverctl focus-follows-cursor always
|
||||
riverctl xcursor-theme macOS 28
|
||||
|
||||
riverctl keyboard-layout latam
|
||||
riverctl input pointer-1739-0-Synaptics_TM3276-022 events disabled
|
||||
|
||||
# Define ModKey
|
||||
mod="Super"
|
||||
|
||||
riverctl map normal $mod+Shift Return spawn footclient
|
||||
riverctl map normal $mod E spawn "footclient --title lf lf"
|
||||
riverctl map normal $mod S spawn "footclient --title Spotify spotify_player"
|
||||
riverctl map normal $mod R spawn fuzzel
|
||||
riverctl map normal $mod+Shift spawn librewolf
|
||||
riverctl map normal $mod V spawn "footclient --title ncpamixer ncpamixer"
|
||||
riverctl map normal $mod+Shift C spawn camera
|
||||
riverctl map normal $mod L spawn swaylock
|
||||
riverctl map normal $mod+Shift S spawn "aws -r"
|
||||
riverctl map normal None Print spawn "aws -f"
|
||||
riverctl map normal None+Shift Print spawn "art"
|
||||
|
||||
# Super+Q to close the focused view
|
||||
riverctl map normal $mod Q close
|
||||
riverctl map normal $mod+Shift Q spawn "sysutils"
|
||||
|
||||
riverctl map normal Super Return zoom
|
||||
|
||||
riverctl map-pointer normal $mod BTN_LEFT move-view
|
||||
riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
||||
riverctl map-pointer normal $mod BTN_MIDDLE toggle-float
|
||||
|
||||
# River
|
||||
riverctl default-attach-mode top
|
||||
|
||||
# Rivercarro
|
||||
riverctl map normal $mod N send-layout-cmd rivercarro "main-location-cycle left,monocle"
|
||||
|
||||
for i in $(seq 1 9)
|
||||
do
|
||||
tags=$((1 << ($i - 1)))
|
||||
|
||||
riverctl map normal Super $i set-focused-tags $tags
|
||||
|
||||
riverctl map normal Super+Shift $i set-view-tags $tags
|
||||
|
||||
riverctl map normal Super+Control $i toggle-focused-tags $tags
|
||||
|
||||
riverctl map normal Super+Shift+Control $i toggle-view-tags $tags
|
||||
done
|
||||
|
||||
all_tags=$(((1 << 32) - 1))
|
||||
riverctl map normal Super 0 set-focused-tags $all_tags
|
||||
riverctl map normal Super+Shift 0 set-view-tags $all_tags
|
||||
|
||||
# Super+Space to toggle float
|
||||
riverctl map normal Super Space toggle-float
|
||||
|
||||
# Super+F to toggle fullscreen
|
||||
riverctl map normal Super F toggle-fullscreen
|
||||
|
||||
for mode in normal locked
|
||||
do
|
||||
riverctl map normal None XF86AudioRaiseVolume spawn "wpctl set-volume -l 1.0 @DEFAULT_SINK@ 5%+ && pkill -RTMIN+2 slstatus"
|
||||
riverctl map normal None XF86AudioLowerVolume spawn "wpctl set-volume -l 1.0 @DEFAULT_SINK@ 5%- && pkill -RTMIN+2 slstatus"
|
||||
riverctl map normal None XF86AudioMute spawn "wpctl set-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+2 slstatus"
|
||||
riverctl map normal None XF86MonBrightnessUp spawn "brillo -a -u 125000 -q -A 5"
|
||||
riverctl map normal None XF86MonBrightnessDown spawn "brillo -a -u 125000 -q -U 5"
|
||||
done
|
||||
|
||||
# Set keyboard repeat rate
|
||||
riverctl set-repeat 25 600
|
||||
|
||||
# Make all views with an app-id that starts with "float" and title "foo" start floating.
|
||||
riverctl rule-add -app-id "mpv" -title "webcam" float
|
||||
|
||||
# Make all views with app-id "bar" and any title use client-side decorations
|
||||
riverctl rule-add -app-id "librewolf" ssd
|
||||
riverctl rule-add -app-id "firefox" ssd
|
||||
riverctl rule-add -app-id "org.pwmt.zathura" ssd
|
||||
|
||||
# River will send the process group of the init executable SIGTERM on exit.
|
||||
riverctl default-layout rivercarro
|
||||
rivercarro -outer-gaps 4 -inner-gaps 4 -per-tag -no-smart-gaps &
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
LD_LIBRARY_PATH="$HOME"/Documents/Miscellaneous/alpchroot/usr/lib "$HOME"/.local/src/dam/dam "$@"
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/zsh -l
|
||||
/usr/libexec/pipewire-launcher >/dev/null 2>&1
|
||||
dbus-run-session river
|
||||
exec touch /tmp/swaylock-sleep && inotifyd swaylock /tmp/swaylock-sleep
|
||||
|
12
.local/bin/setbr
Executable file
12
.local/bin/setbr
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
steps="5"
|
||||
device="intel_backlight"
|
||||
delay="125000"
|
||||
|
||||
case "$1" in
|
||||
increase) brillo -s $device -u $delay -q -A $steps ;;
|
||||
decrease) brillo -s $device -u $delay -q -U $steps ;;
|
||||
-h|*) echo "usage: setbr increase|decrease" >&2; exit 1; ;;
|
||||
esac
|
||||
|
||||
pkill -RTMIN+4 slstatus
|
19
.local/bin/setvol
Executable file
19
.local/bin/setvol
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
steps="5"
|
||||
dev=@DEFAULT_SINK@
|
||||
! [ "$1" = '-m' ] || { dev=@DEFAULT_SOURCE@; shift; }
|
||||
|
||||
send_signal(){
|
||||
if [ "$dev" == "@DEFAULT_SINK@" ]; then
|
||||
pkill -RTMIN+2 slstatus
|
||||
elif [ "$dev" == "@DEFAULT_SOURCE@" ]; then
|
||||
pkill -RTMIN+3 slstatus
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
mute) wpctl set-mute "$dev" toggle; send_signal ;;
|
||||
up) wpctl set-volume -l 1.0 "$dev" "$steps"%+; send_signal ;;
|
||||
down) wpctl set-volume -l 1.0 "$dev" "$steps"%-; send_signal ;;
|
||||
-h|*) echo "usage: setvol [-m] up|down|mute" >&2; exit 1; ;;
|
||||
esac
|
|
@ -5,11 +5,7 @@ case $(printf "%s\n" " Lock session" " Log out" " Kill process" "
|
|||
swaylock
|
||||
;;
|
||||
" Log out")
|
||||
if pidof dwl > /dev/null; then
|
||||
kill "$(pidof dwl)"
|
||||
elif pidof river > /dev/null; then
|
||||
kill "$(pidof river)"
|
||||
fi
|
||||
kill "$(pidof dwl)"
|
||||
;;
|
||||
" Kill process")
|
||||
ps -o pid,comm,user | \
|
||||
|
|
Loading…
Add table
Reference in a new issue