Compare commits
7 Commits
9ceb9dbd33
...
4d04b14349
Author | SHA1 | Date | |
---|---|---|---|
4d04b14349 | |||
f93d2a6558 | |||
cd7428e975 | |||
914a103b10 | |||
0b8154037e | |||
cf31104779 | |||
e21550bc6f |
@ -36,6 +36,9 @@ riverctl map normal Super Minus spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
riverctl map normal Super+Shift Equal spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+'
|
||||
riverctl map normal Super+Shift Minus spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-'
|
||||
riverctl map normal Super+Shift m spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'
|
||||
riverctl map normal Super P spawn 'mpc toggle'
|
||||
riverctl map normal Super O spawn 'mpc next'
|
||||
riverctl map normal Super I spawn 'mpc prev'
|
||||
|
||||
# Super+Q to close the focused view
|
||||
riverctl map normal Super Q close
|
||||
|
@ -35,6 +35,10 @@ export KODI_DATA="$XDG_DATA_HOME/kodi"
|
||||
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
|
||||
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
||||
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android"
|
||||
#export ANDROID_SDK_HOME="$HOME/android_sdk"
|
||||
#export ANDROID_SDK="$HOME/android_sdk"
|
||||
#export ANDROID_NDK="$HOME/android_sdk/ndk-bundle"
|
||||
#export PATH="$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/cmdline_tools/bin"
|
||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||
export GOPATH="$XDG_DATA_HOME/go"
|
||||
export GOMODCACHE="$XDG_CACHE_HOME/go/mod"
|
||||
|
@ -88,13 +88,19 @@ blur_radius 1
|
||||
#corner_radius 20
|
||||
shadows disable
|
||||
|
||||
# 333333
|
||||
set $cl_high #333333
|
||||
set $cl_indi #333333
|
||||
set $cl_back #222222
|
||||
#set $cl_high #333333
|
||||
#set $cl_indi #333333
|
||||
#set $cl_back #222222
|
||||
|
||||
#set $cl_high #000000
|
||||
#set $cl_indi #000000
|
||||
#set $cl_back #999999
|
||||
|
||||
# river colors
|
||||
set $cl_high #93a1a1
|
||||
set $cl_indi #586e75
|
||||
set $cl_back #002b36
|
||||
|
||||
set $cl_fore #d9d8d8
|
||||
set $cl_urge #FF0000
|
||||
|
||||
|
4
home/default/.local/bin/boom
Executable file
4
home/default/.local/bin/boom
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
notify-send 'boom' 'boom.mp3'
|
||||
mpg123 $HOME/resources/sounds/alerts/boom.mp3
|
@ -1,8 +1,15 @@
|
||||
#!/bin/zsh
|
||||
if [[ -z "$1" ]]; then
|
||||
if [[ -z "$1" ]] && [[ "$WINDOW_MANAGER" == "river" ]] ; then
|
||||
swayidle -w \
|
||||
timeout 310 'swaylock' \
|
||||
timeout 360 "wlopm --off '*'" resume "wlopm --on '*'" \
|
||||
timeout 300 'wlopm --off "*"' resume 'wlopm --on "*"' \
|
||||
before-sleep "swaylock"
|
||||
fi
|
||||
|
||||
if [[ -z "$1" ]] && [[ "$WINDOW_MANAGER" == "sway" ]] ; then
|
||||
swayidle -w \
|
||||
timeout 310 'swaylock' \
|
||||
timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep "swaylock"
|
||||
fi
|
||||
|
||||
|
6
home/default/.local/bin/record-screen
Executable file
6
home/default/.local/bin/record-screen
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# record video
|
||||
dir=~/Videos/recordings
|
||||
(cd $dir && wf-recorder -g "$(slurp)" --audio --file=$(date +%Y-%m-%d_%H-%m-%s).mp4)
|
||||
xdg-open $dir
|
6
home/default/.local/bin/record-screen-no-audio
Executable file
6
home/default/.local/bin/record-screen-no-audio
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# record video
|
||||
dir=~/Videos/recordings
|
||||
(cd $dir && wf-recorder -g "$(slurp)" --file="$(date +%Y-%m-%d_%H-%m-%s).mp4")
|
||||
xdg-open $dir
|
@ -13,7 +13,8 @@ esac
|
||||
case "$(printf "🔒 lock\n🚪 leave $WM\n♻️ renew $WM\n🐻 hibernate\n🔃 reboot\n🖥️ shutdown\n💤 sleep\n📺 display off\n set background\n start idle\n kill swayidle\n fcitx5\n kill fcitx5\n start emacs daemon\n kill emacs daemon\n restart emacs daemon\ntoggle sworkstyle" | wofi -L 17 --cache-file=/dev/null --show=dmenu -i -p 'action')" in
|
||||
'🔒 lock')
|
||||
setsid -f swaylock
|
||||
setsid -f sleep 2 && swayidle -w timeout 1 'wlopm --off "*"' resume 'wlopm --on "*" && kill $#'
|
||||
if [ "$WINDOW_MANAGER" == "river" ]; then setsid -f sleep 2 && swayidle -w timeout 1 'wlopm --off "*"' resume 'wlopm --on "*" && kill $#' ; fi
|
||||
if [ "$WINDOW_MANAGER" == "sway" ]; then setsid -f sleep 2 && swayidle -w timeout 1 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on" && kill $#' ; fi
|
||||
;;
|
||||
"🚪 leave $WM")
|
||||
if [ "$WINDOW_MANAGER" == "sway" ]; then swaymsg exit ; fi
|
||||
@ -28,7 +29,10 @@ case "$(printf "🔒 lock\n🚪 leave $WM\n♻️ renew $WM\n🐻 hibernate\n
|
||||
'🔃 reboot') $ctl reboot -i ;;
|
||||
'🖥️ shutdown') $ctl poweroff -i ;;
|
||||
#'📺 display off') swayidle -w timeout 1 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on" && kill $#' ;;
|
||||
'📺 display off') swayidle -w timeout 1 'wlopm --off "*"' resume 'wlopm --on "*" && kill $#' ;;
|
||||
'📺 display off')
|
||||
if [ "$WINDOW_MANAGER" == "river" ]; then setsid -f sleep 2 && swayidle -w timeout 1 'wlopm --off "*"' resume 'wlopm --on "*" && kill $#' ; fi
|
||||
if [ "$WINDOW_MANAGER" == "sway" ]; then setsid -f sleep 2 && swayidle -w timeout 1 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on" && kill $#' ; fi
|
||||
;;
|
||||
' set background') change-background ;;
|
||||
' start idle') killall swayidle && sleep 1; setsid -f idle && notify-send 'idle started.';;
|
||||
' kill swayidle') killall swayidle && notify-send 'idle killed.';;
|
||||
|
@ -77,7 +77,7 @@
|
||||
;;eshell ; the elisp shell that works everywhere
|
||||
;;shell ; simple shell REPL for Emacs
|
||||
;;term ; basic terminal emulator for Emacs
|
||||
;;vterm ; the best terminal emulation in Emacs
|
||||
vterm ; the best terminal emulation in Emacs
|
||||
|
||||
:checkers
|
||||
syntax ; tasing you for every semicolon you forget
|
||||
@ -111,7 +111,7 @@
|
||||
|
||||
:os
|
||||
(:if IS-MAC macos) ; improve compatibility with macOS
|
||||
;;tty ; improve the terminal Emacs experience
|
||||
tty ; improve the terminal Emacs experience
|
||||
|
||||
:lang
|
||||
;;agda ; types of types of types of types...
|
||||
@ -143,6 +143,7 @@
|
||||
;;idris ; a language you can depend on
|
||||
;;json ; At least it ain't XML
|
||||
;;(java +lsp) ; the poster child for carpal tunnel syndrome
|
||||
java
|
||||
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||
;;julia ; a better, faster MATLAB
|
||||
;;kotlin ; a better, slicker Java(Script)
|
||||
@ -172,6 +173,7 @@
|
||||
;;rst ; ReST in peace
|
||||
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||
;;(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||
rust
|
||||
;;scala ; java, but good
|
||||
;;(scheme +guile) ; a fully conniving family of lisps
|
||||
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||
|
Loading…
Reference in New Issue
Block a user