Compare commits
39 Commits
50b7525530
...
main
Author | SHA1 | Date | |
---|---|---|---|
882ea6ebc1
|
|||
f6acbd3cb7
|
|||
7c2d35cd30
|
|||
d3fd54049d
|
|||
60bc819ba7
|
|||
4227e1697f
|
|||
3264693663
|
|||
5276d2fb79
|
|||
af6c15c774
|
|||
0db79302d7
|
|||
a20d23ad5e
|
|||
a3410d9b15
|
|||
f11c6dfad6
|
|||
1b70e44700
|
|||
623828461e
|
|||
9aac8ab514
|
|||
7dba5a85ce
|
|||
1df4b35d63
|
|||
65336b03b6
|
|||
6180c7e6be
|
|||
53cee5aa02
|
|||
9ee67e844b
|
|||
1b0ecf16b0
|
|||
7b54257c54
|
|||
d6578c5d4a
|
|||
19ff28d77c
|
|||
be771bcb7b
|
|||
683ab967db
|
|||
f5daa98dc3
|
|||
498868c676 | |||
a7496b926a
|
|||
9301a32090
|
|||
7b70567a67 | |||
74323b7568 | |||
a29a07c0aa | |||
31c50177f5 | |||
bfcc3d0495 | |||
8fb43d9754 | |||
f67e0266b5 |
@ -1,12 +0,0 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr --output $XRANDR_OUTPUT__smol --off
|
||||
|
||||
XRANDR_SET \
|
||||
--compositing disable \
|
||||
--screen-blank disable \
|
||||
--background roy-art.jpg \
|
||||
--sound-effect gamedock \
|
||||
${XRANDR_ARGS__livingroom__1440p[@]} --pos 0x0 --primary \
|
||||
;
|
@ -1,21 +0,0 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
case $MONITOR_CONFIGURATION in
|
||||
home )
|
||||
XRANDR_SET \
|
||||
--screen-blank disable \
|
||||
${XRANDR_ARGS__smol__1440p[@]} --pos 0x0 --primary --rate 120.00 \
|
||||
${XRANDR_ARGS__livingroom__1440p[@]} --pos 0x0 \
|
||||
;
|
||||
|
||||
;;
|
||||
unknown )
|
||||
echo 'unknown state; using default configuration to prevent monitor issues'
|
||||
xrandr --output $(xrandr | grep ' connected' | awk '{print $1;}') --primary
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
$DOTWRYN/bin/polybar
|
||||
scwrypts desktop play sound -- login
|
||||
return 0
|
||||
;;
|
||||
esac
|
@ -1,12 +0,0 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr --output $XRANDR_OUTPUT__livingroom --off
|
||||
|
||||
XRANDR_SET \
|
||||
--compositing enable \
|
||||
--screen-blank disable \
|
||||
--sound-effect gamedock \
|
||||
${XRANDR_ARGS__smol__1440p[@]} --pos 0x0 --rate 180.00 --primary \
|
||||
;
|
||||
|
@ -1,84 +0,0 @@
|
||||
#!/bin/zsh
|
||||
source $HOME/.config/wryn/env.zsh
|
||||
|
||||
export DISPLAY=:0
|
||||
|
||||
#####################################################################
|
||||
|
||||
XRANDR_RESOLUTION__4k='3840x2160'
|
||||
XRANDR_RESOLUTION__1440p='2560x1440'
|
||||
XRANDR_RESOLUTION__1080p='1920x1080'
|
||||
|
||||
XRANDR_OUTPUT__livingroom='HDMI-0'
|
||||
XRANDR_OUTPUT__smol='DP-4'
|
||||
|
||||
XRANDR_ARGS__livingroom__4k=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_RESOLUTION__4k --rate 119.88)
|
||||
XRANDR_ARGS__livingroom__1440p=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_RESOLUTION__1440p)
|
||||
XRANDR_ARGS__livingroom__1080p=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_RESOLUTION__1080p --rate 119.88)
|
||||
|
||||
XRANDR_ARGS__smol__1440p=(--output $XRANDR_OUTPUT__smol --mode $XRANDR_RESOLUTION__1440p)
|
||||
XRANDR_ARGS__smol__1080p=(--output $XRANDR_OUTPUT__smol --mode $XRANDR_RESOLUTION__1080p)
|
||||
|
||||
#####################################################################
|
||||
|
||||
MONITOR_CONFIGURATION=unknown
|
||||
|
||||
: \
|
||||
&& xrandr --query | grep -q "^$XRANDR_OUTPUT__livingroom connected" \
|
||||
&& xrandr --query | grep -q "^$XRANDR_OUTPUT__smol connected" \
|
||||
&& MONITOR_CONFIGURATION=home \
|
||||
;
|
||||
|
||||
###############################################################################
|
||||
|
||||
XRANDR_SET() {
|
||||
local ERRORS=0
|
||||
|
||||
local COMPOSITING=enable
|
||||
local SCREEN_BLANK=enable
|
||||
local BACKGROUND=$(scwrypts -n get theme).jpg
|
||||
local SOUND_EFFECT=login
|
||||
local XRANDR_ARGS=()
|
||||
|
||||
while [[ $# -gt 0 ]]
|
||||
do
|
||||
case $1 in
|
||||
--compositing ) COMPOSITING="$2" ; shift 1 ;;
|
||||
--screen-blank ) SCREEN_BLANK="$2" ; shift 1 ;;
|
||||
--background ) BACKGROUND="$2" ; shift 1 ;;
|
||||
--sound-effect ) SOUND_EFFECT="$2" ; shift 1 ;;
|
||||
|
||||
* ) XRANDR_ARGS+=($1) ;
|
||||
esac
|
||||
shift 1
|
||||
done
|
||||
|
||||
case $COMPOSITING in
|
||||
enable ) (pkill compton; sleep 1; compton;) & ;;
|
||||
disable ) pkill compton ;;
|
||||
* )
|
||||
echo "ERROR : invalid setting '$COMPOSITING' for compositing" >&2
|
||||
return 1
|
||||
esac
|
||||
|
||||
case $SCREEN_BLANK in
|
||||
enable | disable ) ;;
|
||||
* )
|
||||
echo "ERROR : invalid setting '$SCREEN_BLANK' for screen blank" >&2
|
||||
return 1
|
||||
esac
|
||||
|
||||
##########################################
|
||||
|
||||
# disabling for a moment since the latest X11/NVIDIA drivers are causing some issues after "disconnect all"
|
||||
#scwrypts desktop xrandr disconnect all
|
||||
|
||||
xrandr ${XRANDR_ARGS[@]}
|
||||
|
||||
sleep 1
|
||||
|
||||
scwrypts desktop screen blank -- $SCREEN_BLANK
|
||||
scwrypts desktop i3 set background -- $BACKGROUND || scwrypts desktop i3 set background -- purple.jpg
|
||||
$DOTWRYN/bin/polybar
|
||||
scwrypts desktop play sound -- $SOUND_EFFECT
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
#!/bin/zsh
|
||||
|
||||
cd $HOME/Projects/python/xorg-midi/code
|
||||
source ../env/bin/activate
|
||||
|
||||
./midi-controller
|
||||
|
||||
deactivate
|
@ -1,6 +0,0 @@
|
||||
#!/bin/zsh
|
||||
LAYOUT="$DOTWRYN/bin/$(hostnamectl --static)/default"
|
||||
[ -f $LAYOUT ] && {
|
||||
until xrandr -q >/dev/null 2>&1; do sleep .1; done
|
||||
$LAYOUT
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# do not edit; generated by scwrypts
|
||||
# theme : burning-death
|
||||
[colors.cursor]
|
||||
cursor = '0x8eadf8'
|
||||
|
||||
[colors.primary]
|
||||
background = '0x300000'
|
||||
foreground = '0xffeaec'
|
||||
|
||||
[colors.normal]
|
||||
black = '0x000505'
|
||||
red = '0xdc1a4e'
|
||||
green = '0x3296eb'
|
||||
yellow = '0xc24022'
|
||||
blue = '0x5ab5e0'
|
||||
magenta = '0xdf5041'
|
||||
cyan = '0x34549b'
|
||||
white = '0xd0f0f0'
|
||||
|
||||
[colors.bright]
|
||||
black = '0x424253'
|
||||
red = '0xf08ba4'
|
||||
green = '0x8eadf8'
|
||||
yellow = '0xf19892'
|
||||
blue = '0xb9e5f4'
|
||||
magenta = '0xf19892'
|
||||
cyan = '0x99bafb'
|
||||
white = '0x7e707e'
|
||||
[window]
|
||||
opacity = 0.75
|
@ -1,29 +0,0 @@
|
||||
--- # yamllint disable rule:colons
|
||||
# do not edit; generated by scwrypts
|
||||
# theme : burning-death
|
||||
colors:
|
||||
primary:
|
||||
background: '0x570406'
|
||||
foreground: '0xffeaec'
|
||||
cursor:
|
||||
cursor: '0x8eadf8'
|
||||
normal:
|
||||
black: '0x000505'
|
||||
red: '0xdc1a4e'
|
||||
green: '0x3296eb'
|
||||
yellow: '0xc24022'
|
||||
blue: '0x5ab5e0'
|
||||
magenta: '0xdf5041'
|
||||
cyan: '0x34549b'
|
||||
white: '0xd0f0f0'
|
||||
bright:
|
||||
black: '0x424253'
|
||||
red: '0xf08ba4'
|
||||
green: '0x8eadf8'
|
||||
yellow: '0xf19892'
|
||||
blue: '0xb9e5f4'
|
||||
magenta: '0xf19892'
|
||||
cyan: '0x99bafb'
|
||||
white: '0x7e707e'
|
||||
window:
|
||||
opacity: 0.8
|
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
# do not edit; generated by scwrypts
|
||||
# theme : burning-death
|
||||
#
|
||||
# source this file to apply colorscheme to linux getty
|
||||
#
|
||||
[[ "$TERM" =~ ^linux$ ]] || return 0
|
||||
/bin/echo -e " ]P0570406 ]P1dc1a4e ]P23296eb ]P3c24022 ]P45ab5e0 ]P5df5041 ]P634549b ]P7ffeaec ]P8f08ba4 ]P98eadf8 ]PAf19892 ]PBb9e5f4 ]PCf19892 ]PD99bafb ]PEd0f0f0 ]PF7e707e "
|
||||
[ ! $NO_CLEAR ] && clear
|
||||
return 0
|
||||
sed $d
|
@ -1,23 +0,0 @@
|
||||
# do not edit; generated by scwrypts
|
||||
# theme : burning-death
|
||||
color0 #000505
|
||||
color1 #dc1a4e
|
||||
color2 #3296eb
|
||||
color3 #c24022
|
||||
color4 #5ab5e0
|
||||
color5 #df5041
|
||||
color6 #34549b
|
||||
color7 #d0f0f0
|
||||
color8 #424253
|
||||
color9 #f08ba4
|
||||
color10 #8eadf8
|
||||
color11 #f19892
|
||||
color12 #b9e5f4
|
||||
color13 #f19892
|
||||
color14 #99bafb
|
||||
color15 #7e707e
|
||||
cursor #8eadf8
|
||||
background #570406
|
||||
foreground #ffeaec
|
||||
selection_background #
|
||||
selection_foreground #
|
@ -1 +0,0 @@
|
||||
burning-death
|
@ -1,11 +0,0 @@
|
||||
# do not edit; generated by scwrypts
|
||||
# theme : burning-death
|
||||
[colors]
|
||||
background = #570406
|
||||
foreground = #ffeaec
|
||||
background-alt = #c24022
|
||||
foreground-alt = #000505
|
||||
primary = #c24022
|
||||
secondary = #3296eb
|
||||
alert = #dc1a4e
|
||||
disabled = #424253
|
@ -1 +0,0 @@
|
||||
/home/w0ryn/.wryn/colorschemes/burning-death.yaml
|
@ -1,22 +0,0 @@
|
||||
--- # yamllint disable rule:colons
|
||||
# DEPRECATED; please refer to alacritty.toml
|
||||
import:
|
||||
- ~/.config/alacritty/theme.yml
|
||||
- ~/.config/alacritty/local.yml
|
||||
|
||||
window:
|
||||
opacity: 0.8
|
||||
|
||||
font:
|
||||
glyph_offset:
|
||||
x: 0
|
||||
y: 1
|
||||
|
||||
normal:
|
||||
family: Monaspace Neon
|
||||
|
||||
bold:
|
||||
family: Monaspace Argon
|
||||
|
||||
italic:
|
||||
family: Monaspace Radon
|
38
config/bin/arch-linux-rank-mirrors
Executable file
38
config/bin/arch-linux-rank-mirrors
Executable file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
command -v /usr/bin/rankmirrors &>/dev/null || {
|
||||
echo "missing 'rankmirrors'; trying to install..." >&2
|
||||
yay -S pacman-contrib
|
||||
}
|
||||
|
||||
command -v /usr/bin/rankmirrors &>/dev/null || {
|
||||
echo "cannot rank mirrors without 'rankmirrors' from pacman-contrib; aborting" >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
echo 'ranking mirrors; this may take a few minutes...' >&2
|
||||
{
|
||||
echo "# mirrors ranked on $(date)"
|
||||
curl -s 'https://archlinux.org/mirrorlist/?country=US&country=CA&protocol=https&use_mirror_status=on' \
|
||||
| sed 's/^#Server/Server/; /^#/d'
|
||||
} | /usr/bin/rankmirrors -n 7 - > "${HOME}/mirrorlist.ranked"
|
||||
|
||||
[ -f ~/mirrorlist.ranked ] || {
|
||||
echo 'failed to rank mirrors :c'
|
||||
return 1
|
||||
}
|
||||
|
||||
echo "
|
||||
finished ranking mirrors!
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >&2
|
||||
diff --side-by-side --color /etc/pacman.d/mirrorlist "${HOME}/mirrorlist.ranked" >&2
|
||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
updated list is currently at ~/mirrorlist.ranked; please review the new list
|
||||
and backup existing list; once you're ready to save them, you can run:
|
||||
|
||||
" >&2
|
||||
|
||||
echo "sudo mv ~/mirrorlist.ranked /etc/pacman.d/mirrorlist && yay -Syyu"
|
@ -1,26 +1,34 @@
|
||||
#!/bin/zsh
|
||||
|
||||
command -v scwrypts &>/dev/null || {
|
||||
[ -f $HOME/.local/bin/scwrypts ] \
|
||||
&& scwrypts() { $HOME/.local/bin/scwrypts $@; } \
|
||||
|| scwrypts() { $HOME/.wryn/zsh/plugins/scwrypts/scwrypts $@; } \
|
||||
;
|
||||
[ "${DOTWRYN}" ] || {
|
||||
notify-send 'I3 UTILS' 'cannot determine $DOTWRYN for utility execution'
|
||||
return 1
|
||||
}
|
||||
|
||||
command -v scwrypts &>/dev/null || {
|
||||
scwrypts() { "${DOTWRYN}/zsh/plugins/scwrypts/scwrypts" $@; }
|
||||
}
|
||||
|
||||
export CI=true
|
||||
export DESKTOP__SFX_PATH="${HOME}/Media/sfx"
|
||||
export SCWRYPTS_LOG_LEVEL=0
|
||||
|
||||
#####################################################################
|
||||
|
||||
case $1 in
|
||||
( next | previous | play-pause ) playerctl $1 ;;
|
||||
( fastforward ) playerctl position 5+ ;;
|
||||
( rewind ) playerctl position 5- ;;
|
||||
|
||||
( volumedown ) scwrypts -n desktop pulseaudio -- sink down ;;
|
||||
( volumeup ) scwrypts -n desktop pulseaudio -- sink up ;;
|
||||
( volumemute ) scwrypts -n desktop pulseaudio -- sink mute ;;
|
||||
( micmute ) scwrypts -n desktop pulseaudio -- source mute ;;
|
||||
( volumedown ) scwrypts media pulseaudio volume -- sink down ;;
|
||||
( volumeup ) scwrypts media pulseaudio volume -- sink up ;;
|
||||
( volumemute ) scwrypts media pulseaudio volume -- sink mute ;;
|
||||
( micmute ) scwrypts media pulseaudio volume -- source mute ;;
|
||||
|
||||
( backlightup ) scwrypts -n desktop backlight -- up ;;
|
||||
( backlightdown ) scwrypts -n desktop backlight -- down ;;
|
||||
( backlightup ) scwrypts desktop backlight -- up ;;
|
||||
( backlightdown ) scwrypts desktop backlight -- down ;;
|
||||
|
||||
( lock ) scwrypts -n desktop lock i3 -- ;;
|
||||
( lock ) scwrypts desktop lock i3 -- ;;
|
||||
|
||||
( bgrandomize ) scwrypts desktop set i3 background -- random ;;
|
||||
|
||||
@ -47,15 +55,7 @@ case $1 in
|
||||
;;
|
||||
|
||||
( screenshot )
|
||||
command -v deepin-screen-recorder || notify-send "I3 UTILS" "no screenshot application available"
|
||||
deepin-screen-recorder
|
||||
DEEPIN_CONFIG="$HOME/.config/deepin/deepin-screen-recorder/deepin-screen-recorder.conf"
|
||||
|
||||
: \
|
||||
&& echo "fixing stupid settings" \
|
||||
&& mv $DEEPIN_CONFIG $DEEPIN_CONFIG.bak \
|
||||
&& sed '/specifiedSavepath=.*home.*Pictures/d' $DEEPIN_CONFIG.bak > $DEEPIN_CONFIG \
|
||||
|| mv $DEEPIN_CONFIG.bak $DEEPIN_CONFIG.conf \
|
||||
;
|
||||
command -v flameshot || notify-send "I3 UTILS" "screenshot application 'flameshot' not available"
|
||||
flameshot gui
|
||||
;;
|
||||
esac
|
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
command -v polybar || return 0
|
||||
command -v /usr/bin/polybar || return 0
|
||||
|
||||
killall -q polybar
|
||||
|
||||
while pgrep -x polybar &>/dev/null; do sleep 0.1; done
|
||||
|
||||
polybar i3 &
|
||||
/usr/bin/polybar i3 &
|
20
config/bin/xorg-activate-default
Executable file
20
config/bin/xorg-activate-default
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/zsh
|
||||
LAYOUT="$DOTWRYN/bin/$(hostnamectl --static)/default"
|
||||
|
||||
until xrandr -q >/dev/null 2>&1; do sleep .1; done
|
||||
|
||||
[ -f "$LAYOUT" ] \
|
||||
&& XRANDR_LAYOUT_MODE=manual \
|
||||
|| XRANDR_LAYOUT_MODE=auto \
|
||||
;
|
||||
|
||||
case $XRANDR_LAYOUT_MODE in
|
||||
manual )
|
||||
"$LAYOUT"
|
||||
;;
|
||||
auto )
|
||||
xrandr --auto
|
||||
;;
|
||||
esac
|
||||
unset XRANDR_LAYOUT_MODE
|
||||
true
|
11
config/colorschemes/active/getty.sh
Normal file
11
config/colorschemes/active/getty.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# do not edit; generated by scwrypts
|
||||
# theme : main
|
||||
#
|
||||
# source this file to apply colorscheme to linux getty
|
||||
#
|
||||
[[ "$TERM" =~ ^linux$ ]] || return 0
|
||||
/bin/echo -e " ]P0000505 ]P1c80064 ]P211bb98 ]P36911aa ]P42262bb ]P59922dd ]P622ccba ]P7d0f0f0 ]P8ff44ff ]P944dddd ]PAaa44ff ]PB229df6 ]PCdd88ff ]PD88ffff ]PEd0f0f0 ]PF7e707e "
|
||||
[ ! $NO_CLEAR ] && clear
|
||||
return 0
|
||||
sed $d
|
1
config/colorschemes/active/name.txt
Normal file
1
config/colorschemes/active/name.txt
Normal file
@ -0,0 +1 @@
|
||||
main
|
@ -1,14 +1,14 @@
|
||||
/**
|
||||
* do not edit; generated by scwrypts
|
||||
* theme : burning-death
|
||||
* theme : main
|
||||
**/
|
||||
|
||||
*{
|
||||
background: #26416e;
|
||||
background: #001129;
|
||||
foreground: #d0f0f0;
|
||||
background-alt: #e77068;
|
||||
background-alt: #9922dd;
|
||||
foreground-alt: #000505;
|
||||
selected: #000505;
|
||||
active: #c24022;
|
||||
urgent: #dc1a4e;
|
||||
active: #6911aa;
|
||||
urgent: #c80064;
|
||||
}
|
1
config/colorschemes/active/source.yaml
Symbolic link
1
config/colorschemes/active/source.yaml
Symbolic link
@ -0,0 +1 @@
|
||||
../main.yaml
|
73
config/colorschemes/halloween.yaml
Normal file
73
config/colorschemes/halloween.yaml
Normal file
@ -0,0 +1,73 @@
|
||||
--- # yamllint disable rule:colons
|
||||
ansi:
|
||||
blue:
|
||||
regular: '#ac0041'
|
||||
bright: '#ff283e'
|
||||
|
||||
magenta:
|
||||
regular: .material.primary.500
|
||||
bright: .material.primary.100
|
||||
|
||||
cyan:
|
||||
regular: .material.error.500
|
||||
bright: .material.error.100
|
||||
|
||||
material:
|
||||
base:
|
||||
primary: .material.primary.400
|
||||
secondary: .material.secondary.900
|
||||
foreground:
|
||||
primary: .material.foreground.primary.400
|
||||
secondary: .material.foreground.secondary.900
|
||||
|
||||
primary:
|
||||
50: '#efe5f9'
|
||||
100: '#d6bff0'
|
||||
200: '#bb94e6'
|
||||
300: '#a066dd'
|
||||
400: '#8b41d5'
|
||||
500: '#750dcc'
|
||||
600: '#6b04c7'
|
||||
700: '#5c00be'
|
||||
800: '#4e00b8'
|
||||
900: '#3700aa'
|
||||
|
||||
secondary:
|
||||
50: '#fff8e1'
|
||||
100: '#ffecb3'
|
||||
200: '#ffe082'
|
||||
300: '#ffd54f'
|
||||
400: '#ffca28'
|
||||
500: '#ffc106'
|
||||
600: '#ffb300'
|
||||
700: '#ffa000'
|
||||
800: '#ff8f00'
|
||||
900: '#ff6f00'
|
||||
|
||||
error:
|
||||
50: '#eaffe5'
|
||||
100: '#cbffbe'
|
||||
200: '#a3ff90'
|
||||
300: '#6cff57'
|
||||
400: '#00fc00'
|
||||
500: '#00f900'
|
||||
600: '#00e700'
|
||||
700: '#00d100'
|
||||
800: '#00bc00'
|
||||
900: '#009600'
|
||||
|
||||
foreground:
|
||||
primary:
|
||||
400: .ansi.gray.white
|
||||
secondary:
|
||||
500: .ansi.gray.black
|
||||
600: .ansi.gray.black
|
||||
700: .ansi.gray.black
|
||||
800: .ansi.gray.black
|
||||
900: .ansi.gray.black
|
||||
error:
|
||||
500: .ansi.gray.black
|
||||
600: .ansi.gray.black
|
||||
700: .ansi.gray.black
|
||||
800: .ansi.gray.black
|
||||
900: .ansi.gray.black
|
1
config/colorschemes/source.yaml
Symbolic link
1
config/colorschemes/source.yaml
Symbolic link
@ -0,0 +1 @@
|
||||
/home/w0ryn/.local/share/wryn/colorschemes/main.yaml
|
2
config/etc/ssh/ssh_config.d/30-1password-ssh-agent.conf
Normal file
2
config/etc/ssh/ssh_config.d/30-1password-ssh-agent.conf
Normal file
@ -0,0 +1,2 @@
|
||||
Host *
|
||||
IdentityAgent ~/.1password/agent.sock
|
@ -0,0 +1,5 @@
|
||||
PasswordAuthentication no
|
||||
|
||||
Match Address 192.168.68.*
|
||||
PasswordAuthentication yes
|
||||
Match All
|
@ -10,7 +10,7 @@ font pango:Monaspace Argon, pango:Noto Color Emoji, pango:Symbols Nerd Font 16
|
||||
## Custom Utility ##############################################################
|
||||
################################################################################
|
||||
|
||||
set $UTILS exec --no-startup-id /home/w0ryn/.config/i3/utils
|
||||
set $UTILS exec --no-startup-id $DOTWRYN/config/bin/i3-utils
|
||||
|
||||
# Audio
|
||||
bindsym XF86AudioRewind $UTILS previous
|
||||
@ -86,7 +86,7 @@ bindsym $mod+6 workspace number "6"; exec --no-startup-id polybar-msg cmd hide
|
||||
bindsym $mod+7 workspace number "7"; exec --no-startup-id polybar-msg cmd show
|
||||
bindsym $mod+8 workspace number "8"; exec --no-startup-id polybar-msg cmd hide
|
||||
bindsym $mod+9 workspace number "9"; exec --no-startup-id polybar-msg cmd show
|
||||
bindsym $mod+0 workspace number "0"; exec --no-startup-id polybar-msg cmd hide
|
||||
bindsym $mod+0 workspace "🎧"; exec --no-startup-id polybar-msg cmd hide
|
||||
bindsym $mod+g workspace "🎮"; exec --no-startup-id polybar-msg cmd hide
|
||||
|
||||
bindsym $mod+Shift+1 move container to workspace number "1"
|
||||
@ -98,7 +98,7 @@ bindsym $mod+Shift+6 move container to workspace number "6"
|
||||
bindsym $mod+Shift+7 move container to workspace number "7"
|
||||
bindsym $mod+Shift+8 move container to workspace number "8"
|
||||
bindsym $mod+Shift+9 move container to workspace number "9"
|
||||
bindsym $mod+Shift+0 move container to workspace number "0"
|
||||
bindsym $mod+Shift+0 move container to workspace "🎧"
|
||||
bindsym $mod+Shift+g move container to workspace "🎮"
|
||||
|
||||
mode "resize" {
|
||||
@ -169,6 +169,8 @@ bindsym $mod+shift+z gaps outer current minus 2; gaps inner current minus 2;
|
||||
################################################################################
|
||||
|
||||
exec --no-startup-id compton
|
||||
exec --no-startup-id 1password --silent
|
||||
exec --no-startup-id scwrypts omni tmux -- --background
|
||||
|
||||
# color settings
|
||||
set $FOCUSED_BORDER #006942
|
||||
|
@ -21,5 +21,5 @@ statusbar:
|
||||
# supported values are 'polybar' and 'i3status'
|
||||
type: polybar
|
||||
|
||||
# a list of i3conifg excerpts that should be appended to the generated config
|
||||
# a list of i3config excerpts that should be appended to the generated config
|
||||
i3configs: []
|
||||
|
@ -4,7 +4,7 @@ tmux new -d -s apps -n 'foreman' 'htop' \; \
|
||||
split-window -d -t apps:foreman "clear; echo 'Keeping apps fresh...'; while true; do sleep 30; done" \
|
||||
2>/dev/null
|
||||
|
||||
for APP in $(ls ${0:a:h} | grep -v 'apps')
|
||||
for APP in $(find "${0:a:h}" -name apps.\*)
|
||||
do
|
||||
echo "looking for $APP"
|
||||
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \
|
8
config/local/altaria/bin/apps.midi
Executable file
8
config/local/altaria/bin/apps.midi
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/zsh
|
||||
|
||||
cd ${XDG_DATA_HOME:-${HOME}/.local/share}/project-source-code/python/xorg-midi/code
|
||||
source ../env/bin/activate
|
||||
|
||||
./midi-controller
|
||||
|
||||
deactivate
|
15
config/local/altaria/bin/beeg-game
Executable file
15
config/local/altaria/bin/beeg-game
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh $@
|
||||
|
||||
#DISABLE+=(livingroom)
|
||||
DISABLE+=(bedroom)
|
||||
DISABLE+=(smol)
|
||||
|
||||
XRANDR_OFF ${DISABLE[@]}
|
||||
|
||||
XRANDR_SET \
|
||||
--compositing enable \
|
||||
--screen-blank disable \
|
||||
--sound-effect gamedock \
|
||||
${XRANDR_ARGS__livingroom[@]} --pos 0x0 --primary \
|
||||
;
|
33
config/local/altaria/bin/default
Executable file
33
config/local/altaria/bin/default
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/zsh
|
||||
[ $1 ] && RESOLUTION=$1 || RESOLUTION=2k
|
||||
source ${0:a:h}/xorg.zsh ${RESOLUTION} ${@:2}
|
||||
|
||||
case $MONITOR_CONFIGURATION in
|
||||
( home )
|
||||
XRANDR_SET \
|
||||
--compositing enable \
|
||||
--screen-blank disable \
|
||||
--sound-effect login \
|
||||
--background ${I3_DEFAULT_THEME_BACKGROUND} \
|
||||
${XRANDR_ARGS__livingroom[@]} --pos 0x0 \
|
||||
${XRANDR_ARGS__bedroom[@]} --pos 0x0 \
|
||||
${XRANDR_ARGS__smol[@]} --pos 0x0 --primary \
|
||||
;;
|
||||
|
||||
( unknown ) # temporary office setup
|
||||
xrandr --output DP-4 --mode 2560x1440 --pos 0x0 --primary
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
scwrypts desktop screen blank -- disable
|
||||
"${DOTWRYN}/bin/polybar"
|
||||
return 0
|
||||
;;
|
||||
|
||||
( unknown )
|
||||
echo 'unknown state; using default configuration to prevent monitor issues'
|
||||
xrandr --output $(xrandr | grep ' connected' | awk '{print $1;}') --primary
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
"$DOTWRYN/bin/polybar"
|
||||
scwrypts desktop play sound -- login
|
||||
return 0
|
||||
;;
|
||||
esac
|
15
config/local/altaria/bin/smol-game
Executable file
15
config/local/altaria/bin/smol-game
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh $@
|
||||
|
||||
DISABLE+=(livingroom)
|
||||
DISABLE+=(bedroom)
|
||||
#DISABLE+=(smol)
|
||||
|
||||
XRANDR_OFF ${DISABLE[@]}
|
||||
|
||||
XRANDR_SET \
|
||||
--compositing enable \
|
||||
--screen-blank disable \
|
||||
--sound-effect gamedock \
|
||||
${XRANDR_ARGS__smol[@]} --pos 0x0 --primary \
|
||||
;
|
137
config/local/altaria/bin/xorg.zsh
Normal file
137
config/local/altaria/bin/xorg.zsh
Normal file
@ -0,0 +1,137 @@
|
||||
#!/bin/zsh
|
||||
#####################################################################
|
||||
|
||||
XRANDR_OUTPUT__livingroom='HDMI-0'
|
||||
XRANDR_OUTPUT__bedroom='DP-0'
|
||||
XRANDR_OUTPUT__smol='DP-4'
|
||||
|
||||
I3_DEFAULT_THEME_BACKGROUND=$(scwrypts -n get theme).jpg
|
||||
|
||||
MONITOR_CONFIGURATION=unknown
|
||||
|
||||
: \
|
||||
&& xrandr --query | grep -q "^${XRANDR_OUTPUT__livingroom} connected" \
|
||||
&& xrandr --query | grep -q "^${XRANDR_OUTPUT__bedroom} connected" \
|
||||
&& xrandr --query | grep -q "^${XRANDR_OUTPUT__smol} connected" \
|
||||
&& MONITOR_CONFIGURATION=home \
|
||||
;
|
||||
|
||||
#####################################################################
|
||||
|
||||
case $1 in
|
||||
( 1080 | 1080p )
|
||||
XRANDR_MODE=(--mode 1920x1080)
|
||||
XRANDR_OFFSET_X=1920
|
||||
XRANDR_OFFSET_Y=1080
|
||||
|
||||
EXTRA_ARGS__livingroom=()
|
||||
EXTRA_ARGS__bedroom=()
|
||||
EXTRA_ARGS__smol=()
|
||||
|
||||
I3_BACKGROUND=link-vs-gdizz.jpg
|
||||
;;
|
||||
|
||||
( 1440 | 1440p | 2k )
|
||||
XRANDR_MODE=(--mode 2560x1440)
|
||||
XRANDR_OFFSET_X=2560
|
||||
XRANDR_OFFSET_Y=1440
|
||||
|
||||
EXTRA_ARGS__livingroom=()
|
||||
EXTRA_ARGS__bedroom=()
|
||||
EXTRA_ARGS__smol=()
|
||||
|
||||
I3_BACKGROUND=roy-art.jpg
|
||||
;;
|
||||
|
||||
( 2160 | 2160p | 4k | '' ) # default for the RTX5080
|
||||
XRANDR_MODE=(--mode 3840x2160)
|
||||
XRANDR_OFFSET_X=3840
|
||||
XRANDR_OFFSET_Y=2160
|
||||
|
||||
EXTRA_ARGS__livingroom=()
|
||||
EXTRA_ARGS__bedroom=()
|
||||
EXTRA_ARGS__smol=(--rate 239.99)
|
||||
|
||||
I3_BACKGROUND=${I3_DEFAULT_THEME_BACKGROUND[@]}
|
||||
;;
|
||||
|
||||
( * )
|
||||
echo "error : unknown resolution '$1'"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
XRANDR_ARGS__livingroom=(--output ${XRANDR_OUTPUT__livingroom[@]} ${XRANDR_MODE[@]} ${EXTRA_ARGS__livingroom[@]})
|
||||
XRANDR_ARGS__bedroom=(--output ${XRANDR_OUTPUT__bedroom[@]} ${XRANDR_MODE[@]} ${EXTRA_ARGS__bedroom[@]})
|
||||
XRANDR_ARGS__smol=(--output ${XRANDR_OUTPUT__smol[@]} ${XRANDR_MODE[@]} ${EXTRA_ARGS__smol[@]})
|
||||
|
||||
##########################################
|
||||
|
||||
source ${HOME}/.config/wryn/env.zsh
|
||||
export DISPLAY=:0
|
||||
|
||||
###############################################################################
|
||||
|
||||
XRANDR_OFF() {
|
||||
local MONITOR ARGS=()
|
||||
for MONITOR in $@
|
||||
do
|
||||
MONITOR="XRANDR_OUTPUT__${MONITOR}"
|
||||
ARGS+=(--output ${(P)MONITOR} --off)
|
||||
done
|
||||
|
||||
xrandr ${ARGS[@]}
|
||||
}
|
||||
|
||||
XRANDR_SET() {
|
||||
local ERRORS=0
|
||||
|
||||
local COMPOSITING=enable
|
||||
local SCREEN_BLANK=enable
|
||||
local BACKGROUND=${I3_BACKGROUND}
|
||||
local SOUND_EFFECT=login
|
||||
local XRANDR_ARGS=()
|
||||
|
||||
while [[ $# -gt 0 ]]
|
||||
do
|
||||
case $1 in
|
||||
( --compositing ) COMPOSITING="$2" ; shift 1 ;;
|
||||
( --screen-blank ) SCREEN_BLANK="$2" ; shift 1 ;;
|
||||
( --background ) BACKGROUND="$2" ; shift 1 ;;
|
||||
( --sound-effect ) SOUND_EFFECT="$2" ; shift 1 ;;
|
||||
|
||||
( * ) XRANDR_ARGS+=($1) ;
|
||||
esac
|
||||
shift 1
|
||||
done
|
||||
|
||||
case ${COMPOSITING} in
|
||||
( enable ) (pkill compton; sleep 1; compton;) & ;;
|
||||
( disable ) pkill compton ;;
|
||||
* )
|
||||
echo "ERROR : invalid setting '${COMPOSITING}' for compositing" >&2
|
||||
return 1
|
||||
esac
|
||||
|
||||
case ${SCREEN_BLANK} in
|
||||
enable | disable ) ;;
|
||||
* )
|
||||
echo "ERROR : invalid setting '${SCREEN_BLANK}' for screen blank" >&2
|
||||
return 1
|
||||
esac
|
||||
|
||||
##########################################
|
||||
|
||||
# disabling for a moment since the latest X11/NVIDIA drivers are causing some issues after "disconnect all"
|
||||
#scwrypts desktop xrandr disconnect all
|
||||
|
||||
xrandr ${XRANDR_ARGS[@]}
|
||||
|
||||
sleep 1
|
||||
|
||||
scwrypts desktop screen blank -- ${SCREEN_BLANK}
|
||||
scwrypts desktop i3 set background -- ${BACKGROUND} || scwrypts desktop i3 set background -- purple.jpg
|
||||
"${DOTWRYN}/bin/polybar"
|
||||
scwrypts desktop play sound -- ${SOUND_EFFECT}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source "$HOME/.config/wryn/env.zsh"
|
||||
source "${HOME}/.config/wryn/env.zsh"
|
||||
NATIVE_MONITOR='eDP1'
|
||||
|
||||
GET_PRIMARY_MONITOR() {
|
||||
@ -15,7 +15,7 @@ GET_ALL_EXTERNAL_MONITORS() {
|
||||
xrandr \
|
||||
| grep ' connect' \
|
||||
| awk '{print $1;}' \
|
||||
| grep -v "$NATIVE_MONITOR" \
|
||||
| grep -v "${NATIVE_MONITOR}" \
|
||||
2>/dev/null
|
||||
}
|
||||
GET_DEFAULT_EXTERNAL_MONITOR() {
|
||||
@ -34,19 +34,19 @@ DISCONNECT_OTHER() {
|
||||
|
||||
for ACTIVE_MONITOR in ${@:2}
|
||||
do
|
||||
INACTIVE_MONITORS=$(echo $INACTIVE_MONITORS | grep -v "^$ACTIVE_MONITOR$")
|
||||
INACTIVE_MONITORS=$(echo ${INACTIVE_MONITORS} | grep -v "^${ACTIVE_MONITOR}$")
|
||||
done
|
||||
|
||||
local MONITOR
|
||||
for MONITOR in $INACTIVE_MONITORS
|
||||
for MONITOR in ${INACTIVE_MONITORS}
|
||||
do
|
||||
xrandr --output $MONITOR --off
|
||||
xrandr --output ${MONITOR} --off
|
||||
done
|
||||
|
||||
sleep 1
|
||||
$DOTWRYN/bin/set-background random
|
||||
${DOTWRYN}/bin/set-background random
|
||||
|
||||
[ $SFX ] && ( $DOTWRYN/bin/play-sound $SFX ) &
|
||||
[ ${SFX} ] && ( scwrypts play sfx -- ${SFX} ) &
|
||||
return 0
|
||||
}
|
||||
|
13
config/local/pikachu/bin/apps
Executable file
13
config/local/pikachu/bin/apps
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/zsh
|
||||
|
||||
tmux new -d -s apps -n 'foreman' 'htop' \; \
|
||||
split-window -d -t apps:foreman "clear; echo 'Keeping apps fresh...'; while true; do sleep 30; done" \
|
||||
2>/dev/null
|
||||
|
||||
${XDG_DATA_HOME}/home/w0ryn/.local/share/project-source-code/yage/dotwryn/code/config/local/pikachu/bin
|
||||
for APP in $(find "${0:a:h}" -name apps.\*)
|
||||
do
|
||||
echo "looking for $APP"
|
||||
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \
|
||||
|| tmux new-window -dn $APP -t apps: "${0:a:h}/$APP"
|
||||
done
|
13
config/local/pikachu/bin/apps.midi
Executable file
13
config/local/pikachu/bin/apps.midi
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/zsh
|
||||
|
||||
cd ${XDG_DATA_HOME:-${HOME}/.local/share}/project-source-code/python/xorg-midi/code
|
||||
source ../env/bin/activate
|
||||
|
||||
while true
|
||||
do
|
||||
clear
|
||||
echo "activating midi controller"
|
||||
./midi-controller
|
||||
echo "midi controller died; waiting to reconnect"
|
||||
sleep 3
|
||||
done
|
6
config/local/pikachu/bin/default
Executable file
6
config/local/pikachu/bin/default
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/zsh
|
||||
|
||||
xrandr --auto
|
||||
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
scwrypts desktop screen blank -- enable
|
10
config/local/pikachu/bin/livingroom
Executable file
10
config/local/pikachu/bin/livingroom
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/zsh
|
||||
|
||||
xrandr --auto
|
||||
|
||||
xrandr --output HDMI-1-0 --off
|
||||
sleep 1
|
||||
xrandr --output HDMI-1-0 --mode 2560x1440
|
||||
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
scwrypts desktop screen blank -- disable
|
11
config/local/pikachu/bin/office
Executable file
11
config/local/pikachu/bin/office
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/zsh
|
||||
|
||||
xrandr --auto
|
||||
|
||||
xrandr --output HDMI-1-0 --off
|
||||
sleep 1
|
||||
xrandr --output HDMI-1-0 --mode 1920x1080
|
||||
xrandr --output eDP-1 --off
|
||||
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
scwrypts desktop screen blank -- disable
|
1
config/local/pikachu/bin/scwrypts
Symbolic link
1
config/local/pikachu/bin/scwrypts
Symbolic link
@ -0,0 +1 @@
|
||||
/home/w0ryn/.local/share/wryn/zsh/plugins/scwrypts/scwrypts
|
18
config/local/pikachu/bin/set-battery-max-charge
Executable file
18
config/local/pikachu/bin/set-battery-max-charge
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
[[ $EUID -eq 0 ]] || {
|
||||
echo "root access required" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
MAX_CHARGE_THRESHOLD=$1
|
||||
[ "$MAX_CHARGE_THRESHOLD" ] \
|
||||
|| MAX_CHARGE_THRESHOLD=75
|
||||
|
||||
DEVICE_SETTING_FILE=/sys/class/power_supply/BAT1/charge_control_end_threshold
|
||||
|
||||
[ "$MAX_CHARGE_THRESHOLD" ] && [[ $MAX_CHARGE_THRESHOLD -ge 40 ]] && [[ $MAX_CHARGE_THRESHOLD -le 100 ]] || {
|
||||
echo -e "Value '$MAX_CHARGE_THRESHOLD' is invalid. If you REALLY want to do this, overwrite the setting yourself\n$DEVICE_SETTING_FILE" >&2
|
||||
exit 2
|
||||
}
|
||||
|
||||
echo "$MAX_CHARGE_THRESHOLD" > "$DEVICE_SETTING_FILE"
|
7
config/local/pikachu/bin/undock
Executable file
7
config/local/pikachu/bin/undock
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/zsh
|
||||
|
||||
xrandr --output HDMI-1-0 --off
|
||||
xrandr --output eDP-1 --mode 2560x1600
|
||||
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
scwrypts desktop screen blank -- disable
|
40
config/local/pikachu/etc/X11/xinit/10-optimus-manager.conf
Normal file
40
config/local/pikachu/etc/X11/xinit/10-optimus-manager.conf
Normal file
@ -0,0 +1,40 @@
|
||||
Section "Files"
|
||||
ModulePath "/usr/lib/nvidia"
|
||||
ModulePath "/usr/lib32/nvidia"
|
||||
ModulePath "/usr/lib32/nvidia/xorg/modules"
|
||||
ModulePath "/usr/lib32/xorg/modules"
|
||||
ModulePath "/usr/lib64/nvidia/xorg/modules"
|
||||
ModulePath "/usr/lib64/nvidia/xorg"
|
||||
ModulePath "/usr/lib64/xorg/modules"
|
||||
EndSection
|
||||
|
||||
Section "ServerLayout"
|
||||
Identifier "layout"
|
||||
Screen 0 "integrated"
|
||||
Inactive "nvidia"
|
||||
Option "AllowNVIDIAGPUScreens"
|
||||
EndSection
|
||||
|
||||
Section "Device"
|
||||
Identifier "integrated"
|
||||
Driver "modesetting"
|
||||
BusID "PCI:101:0:0"
|
||||
Option "DRI" "3"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "integrated"
|
||||
Device "integrated"
|
||||
EndSection
|
||||
|
||||
Section "Device"
|
||||
Identifier "nvidia"
|
||||
Driver "nvidia"
|
||||
BusID "PCI:100:0:0"
|
||||
Option "Coolbits" "28"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "nvidia"
|
||||
Device "nvidia"
|
||||
EndSection
|
@ -0,0 +1,40 @@
|
||||
Section "Files"
|
||||
ModulePath "/usr/lib/nvidia"
|
||||
ModulePath "/usr/lib32/nvidia"
|
||||
ModulePath "/usr/lib32/nvidia/xorg/modules"
|
||||
ModulePath "/usr/lib32/xorg/modules"
|
||||
ModulePath "/usr/lib64/nvidia/xorg/modules"
|
||||
ModulePath "/usr/lib64/nvidia/xorg"
|
||||
ModulePath "/usr/lib64/xorg/modules"
|
||||
EndSection
|
||||
|
||||
Section "ServerLayout"
|
||||
Identifier "layout"
|
||||
Screen 0 "integrated"
|
||||
Inactive "nvidia"
|
||||
Option "AllowNVIDIAGPUScreens"
|
||||
EndSection
|
||||
|
||||
Section "Device"
|
||||
Identifier "integrated"
|
||||
Driver "modesetting"
|
||||
BusID "PCI:101:0:0"
|
||||
Option "DRI" "3"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "integrated"
|
||||
Device "integrated"
|
||||
EndSection
|
||||
|
||||
Section "Device"
|
||||
Identifier "nvidia"
|
||||
Driver "nvidia"
|
||||
BusID "PCI:100:0:0"
|
||||
Option "Coolbits" "28"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "nvidia"
|
||||
Device "nvidia"
|
||||
EndSection
|
@ -0,0 +1 @@
|
||||
ACTION=="add", RUN+="/home/w0ryn/.local/share/wryn/config/local/pikachu/bin/set-battery-max-charge"
|
1
config/local/pikachu/etc/udev/rules.d/91-backlight.rules
Normal file
1
config/local/pikachu/etc/udev/rules.d/91-backlight.rules
Normal file
@ -0,0 +1 @@
|
||||
SUBSYSTEM=="backlight", ACTION=="add", RUN+="/usr/bin/env chgrp video %S%p/brightness", RUN+="/usr/bin/env chmod g+w %S%p/brightness"
|
20
config/local/pikachu/misc/pulseaudio.patch
Normal file
20
config/local/pikachu/misc/pulseaudio.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- a/analog-output-speaker.conf
|
||||
+++ b/analog-output-speaker.conf
|
||||
@@ -71,12 +71,14 @@
|
||||
|
||||
[Element Hardware Master]
|
||||
switch = mute
|
||||
-volume = merge
|
||||
-override-map.1 = all
|
||||
-override-map.2 = all-left,all-right
|
||||
+volume = ignore
|
||||
|
||||
[Element Master]
|
||||
switch = mute
|
||||
+volume = ignore
|
||||
+
|
||||
+[Element PCM]
|
||||
+switch = mute
|
||||
volume = merge
|
||||
override-map.1 = all
|
||||
override-map.2 = all-left,all-right
|
2
config/local/pikachu/misc/pulseaudio.patch.apply
Executable file
2
config/local/pikachu/misc/pulseaudio.patch.apply
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/zsh
|
||||
sudo patch -p1 -d /usr/share/alsa-card-profile/mixer/paths/ -i "${0:a:h}/pulseaudio.patch"
|
1932
config/local/pikachu/user/X11/xkeymap
Normal file
1932
config/local/pikachu/user/X11/xkeymap
Normal file
File diff suppressed because it is too large
Load Diff
2
config/local/pikachu/user/alacritty/local.toml
Normal file
2
config/local/pikachu/user/alacritty/local.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[font]
|
||||
size = 9
|
@ -14,4 +14,4 @@ pkill compton
|
||||
|
||||
scwrypts desktop screen-blank -- disable
|
||||
scwrypts desktop i3 set background -- link-vs-gdizz.jpg
|
||||
scwrypts desktop play sound -- gamedock
|
||||
scwrypts desktop play sfx -- gamedock
|
@ -14,4 +14,4 @@ xrandr ${ARGS[@]} \
|
||||
|
||||
scwrypts desktop screen-blank -- enable
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg || scwrypts desktop i3 set background -- random
|
||||
scwrypts desktop play sound -- gamedock
|
||||
scwrypts desktop play sfx -- gamedock
|
@ -21,7 +21,7 @@ configuration {
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
|
||||
@import "../colorschemes/active/rofi"
|
||||
@import "./colorschemes/active/rofi"
|
||||
|
||||
* {
|
||||
border-colour: var(selected);
|
||||
|
@ -3,19 +3,14 @@
|
||||
#
|
||||
|
||||
SCWRYPTS_SHORTCUT='' # CTRL + W
|
||||
SCWRYPTS_ENV_SHORTCUT='' # CTRL + /
|
||||
|
||||
SCWRYPTS_ENVIRONMENT__SHOW_ENV_HELP=false
|
||||
SCWRYPTS_ENVIRONMENT__PREFERRED_EDIT_MODE=quiet
|
||||
#SCWRYPTS_ENVIRONMENT__SHOW_ENV_HELP=false
|
||||
#SCWRYPTS_ENVIRONMENT__PREFERRED_EDIT_MODE=quiet
|
||||
|
||||
for SEARCH_DIR in \
|
||||
"$HOME/.wryn/scwrypts" \
|
||||
"$HOME/Projects/yage/" \
|
||||
;
|
||||
do
|
||||
[ -d "$SEARCH_DIR" ] || continue
|
||||
for G in "$SEARCH_DIR/"**/*.scwrypts.zsh; do . "$G"; done
|
||||
done
|
||||
SCWRYPTS_GENERATOR__SHOW_HELP=false
|
||||
|
||||
[ -f "$HOME/.config/scwrypts/config.local.zsh" ] \
|
||||
&& source "$HOME/.config/scwrypts/config.local.zsh"
|
||||
[ ${DOTWRYN} ] || source "${HOME}/.zshrc"
|
||||
SCWRYPTS_GROUP_DIRS+=("${DOTWRYN}/scwrypts")
|
||||
|
||||
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/scwrypts/config.local.zsh" ] \
|
||||
&& source "${XDG_CONFIG_HOME:-${HOME}/.config}/scwrypts/config.local.zsh"
|
||||
|
@ -1,57 +0,0 @@
|
||||
#
|
||||
# scwrypts dot-files config
|
||||
#
|
||||
|
||||
TERMINFO_PATH="$DOTWRYN/config/terminfo"
|
||||
SAFE_SYMLINKS=0
|
||||
|
||||
# lines which begin with '#' are ignored
|
||||
SYMLINKS="
|
||||
# --------------------------------------------------------------------------
|
||||
# fully qualified path ~/.config/THE-REST
|
||||
# --------------------------------------------------------------------------
|
||||
$DOTWRYN/bin/i3-utils i3/utils
|
||||
$DOTWRYN/colorschemes/active/kitty.conf kitty/theme.conf
|
||||
$DOTWRYN/colorschemes/active/alacritty.toml alacritty/theme.toml
|
||||
$DOTWRYN/colorschemes/active/alacritty.yaml alacritty/theme.yml
|
||||
$DOTWRYN/config/alacritty.toml alacritty/alacritty.toml
|
||||
$DOTWRYN/config/alacritty.default.toml alacritty/default.toml
|
||||
$DOTWRYN/config/alacritty.yaml alacritty/alacritty.yml
|
||||
$DOTWRYN/config/bat.conf bat/config
|
||||
$DOTWRYN/config/code-activator.conf code-activator-zsh/settings.zsh
|
||||
$DOTWRYN/config/compton.conf compton/compton.conf
|
||||
$DOTWRYN/config/git.conf git/config
|
||||
$DOTWRYN/config/htop.conf htop/htoprc
|
||||
$DOTWRYN/config/i3status.conf i3status/config
|
||||
$DOTWRYN/config/kitty.conf kitty/kitty.conf
|
||||
$DOTWRYN/config/mssqlcli.conf mssqlci/config
|
||||
$DOTWRYN/config/pgcli.conf pgcli/config
|
||||
$DOTWRYN/config/polybar.ini polybar/config.ini
|
||||
$DOTWRYN/config/pylint.conf pylintrc
|
||||
$DOTWRYN/config/ripgrep.conf ripgrep/config
|
||||
$DOTWRYN/config/scwrypts/config.zsh scwrypts/config.zsh
|
||||
$DOTWRYN/config/scwrypts/dotfiles.zsh scwrypts/dotfiles.zsh
|
||||
$DOTWRYN/config/scwrypts/vundle.zsh scwrypts/vundle.zsh
|
||||
$DOTWRYN/config/tmux.conf tmux/tmux.conf
|
||||
$DOTWRYN/config/xcompose.conf X11/xcompose
|
||||
$DOTWRYN/config/xconfig.conf X11/xconfig
|
||||
$DOTWRYN/config/xinitrc.i3 ../.xinitrc
|
||||
$DOTWRYN/config/xinitrc.i3 X11/xinitrc
|
||||
$DOTWRYN/bin/vim ../.local/bin/vim
|
||||
$DOTWRYN/bin/$(hostnamectl --static) ../.$(hostnamectl --static)
|
||||
|
||||
$( () {
|
||||
local SOURCE_CONTROLLED_GROUPS=(dotwryn remote scwrypts)
|
||||
local GROUP_MATCH_STRING="\\($(printf '\|%s' ${SOURCE_CONTROLLED_GROUPS[@]} | sed 's/^\\|//')\\)"
|
||||
|
||||
local _LOCAL='scwrypts/environments'
|
||||
local _DOTWRYN="$DOTWRYN/config/scwrypts/environments"
|
||||
|
||||
find "$HOME/.config/$_LOCAL" -mindepth 1 -maxdepth 1 -name \*.env.yaml \
|
||||
| sed -n "s^.*/\(local\(\.[^.]\+\)\{0,\}\.$GROUP_MATCH_STRING.env.yaml\)$$_DOTWRYN/\1^$_LOCAL/\1p" \
|
||||
| grep -v '\.secret\.' \
|
||||
| sort --unique \
|
||||
| column -ts '^' \
|
||||
;
|
||||
} )
|
||||
"
|
@ -3,6 +3,9 @@
|
||||
### scwrypts runtime configuration (group 'dotwryn') ################
|
||||
#####################################################################
|
||||
|
||||
# enlighten BACKLIGHT_DEVICE (see 'man enlighten')
|
||||
export DESKTOP__BACKLIGHT_DEVICE=
|
||||
|
||||
# directory containing sound effects
|
||||
export DESKTOP__SFX_PATH="$HOME/Media/sfx"
|
||||
export DESKTOP__WALLPAPER_PATH="$HOME/Pictures/bg"
|
||||
|
@ -3,6 +3,9 @@
|
||||
### scwrypts runtime configuration (group 'dotwryn') ################
|
||||
#####################################################################
|
||||
|
||||
# enlighten BACKLIGHT_DEVICE (see 'man enlighten')
|
||||
export DESKTOP__BACKLIGHT_DEVICE=
|
||||
|
||||
# directory containing sound effects
|
||||
export DESKTOP__SFX_PATH="$HOME/Media/sfx" # from local
|
||||
export DESKTOP__WALLPAPER_PATH="$HOME/Pictures/bg" # from local
|
||||
|
@ -3,6 +3,9 @@
|
||||
### scwrypts runtime configuration (group 'dotwryn') ################
|
||||
#####################################################################
|
||||
|
||||
# enlighten BACKLIGHT_DEVICE (see 'man enlighten')
|
||||
export DESKTOP__BACKLIGHT_DEVICE=
|
||||
|
||||
# directory containing sound effects
|
||||
export DESKTOP__SFX_PATH="$HOME/Media/sfx" # from local
|
||||
export DESKTOP__WALLPAPER_PATH="$HOME/Pictures/bg" # from local
|
||||
|
@ -3,6 +3,9 @@
|
||||
### scwrypts runtime configuration (group 'dotwryn') ################
|
||||
#####################################################################
|
||||
|
||||
# enlighten BACKLIGHT_DEVICE (see 'man enlighten')
|
||||
export DESKTOP__BACKLIGHT_DEVICE=
|
||||
|
||||
# directory containing sound effects
|
||||
export DESKTOP__SFX_PATH="$HOME/Media/sfx" # from local
|
||||
export DESKTOP__WALLPAPER_PATH="$HOME/Pictures/bg" # from local
|
||||
|
@ -3,6 +3,9 @@
|
||||
### scwrypts runtime configuration (group 'dotwryn') ################
|
||||
#####################################################################
|
||||
|
||||
# enlighten BACKLIGHT_DEVICE (see 'man enlighten')
|
||||
export DESKTOP__BACKLIGHT_DEVICE=
|
||||
|
||||
# directory containing sound effects
|
||||
export DESKTOP__SFX_PATH="$HOME/Media/sfx" # from local
|
||||
export DESKTOP__WALLPAPER_PATH="$HOME/Pictures/bg" # from local
|
||||
|
14
config/scwrypts/environments/dotwryn/local.pikachu
Normal file
14
config/scwrypts/environments/dotwryn/local.pikachu
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/zsh
|
||||
#####################################################################
|
||||
### scwrypts runtime configuration (group 'dotwryn') ################
|
||||
#####################################################################
|
||||
|
||||
# enlighten BACKLIGHT_DEVICE (see 'man enlighten')
|
||||
export DESKTOP__BACKLIGHT_DEVICE=amdgpu_bl1
|
||||
|
||||
# directory containing sound effects
|
||||
export DESKTOP__SFX_PATH="$HOME/Media/sfx" # from local
|
||||
export DESKTOP__WALLPAPER_PATH="$HOME/Pictures/bg" # from local
|
||||
|
||||
# home server data
|
||||
export WRYN__SERVER_HOSTNAMES=
|
@ -3,6 +3,9 @@
|
||||
### scwrypts runtime configuration (group 'dotwryn') ################
|
||||
#####################################################################
|
||||
|
||||
# enlighten BACKLIGHT_DEVICE (see 'man enlighten')
|
||||
export DESKTOP__BACKLIGHT_DEVICE=
|
||||
|
||||
# directory containing sound effects
|
||||
export DESKTOP__SFX_PATH="$HOME/Media/sfx" # from local
|
||||
export DESKTOP__WALLPAPER_PATH="$HOME/Pictures/bg" # from local
|
||||
|
@ -0,0 +1,4 @@
|
||||
--- # local.pikachu > dotwryn
|
||||
desktop:
|
||||
backlight-device:
|
||||
value: amdgpu_bl1
|
@ -0,0 +1,2 @@
|
||||
--- # local.pikachu > remote
|
||||
# no configuration set
|
@ -0,0 +1,2 @@
|
||||
--- # local.pikachu > scwrypts
|
||||
# no configuration set
|
7
config/scwrypts/environments/remote/local.pikachu
Normal file
7
config/scwrypts/environments/remote/local.pikachu
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/zsh
|
||||
#####################################################################
|
||||
### scwrypts runtime configuration (group 'remote') #################
|
||||
#####################################################################
|
||||
|
||||
# session name for remote connection (default 'remote')
|
||||
export REMOTE_TMUX_SESSION=
|
51
config/scwrypts/environments/scwrypts/local.pikachu
Normal file
51
config/scwrypts/environments/scwrypts/local.pikachu
Normal file
@ -0,0 +1,51 @@
|
||||
#!/bin/zsh
|
||||
#####################################################################
|
||||
### scwrypts runtime configuration (group 'scwrypts') ###############
|
||||
#####################################################################
|
||||
|
||||
# standard AWS environment variables used by awscli and other tools
|
||||
export AWS_ACCOUNT=088935110352 # from local
|
||||
export AWS_PROFILE=yage # from local
|
||||
export AWS_REGION=us-east-2 # from local
|
||||
|
||||
# fully-qualified path to mount the EFS drive
|
||||
export AWS__EFS__LOCAL_MOUNT_POINT=/mnt/efs/yage # from local
|
||||
|
||||
# details for a directus instance
|
||||
export DIRECTUS__API_TOKEN=
|
||||
export DIRECTUS__BASE_URL=https://heretic.directus.app # from local
|
||||
|
||||
# details for discord bot
|
||||
export DISCORD__BOT_TOKEN=
|
||||
export DISCORD__CONTENT_FOOTER=
|
||||
export DISCORD__CONTENT_HEADER='<@380809228450922507> ' # from local
|
||||
export DISCORD__DEFAULT_AVATAR_URL=
|
||||
export DISCORD__DEFAULT_CHANNEL_ID=
|
||||
export DISCORD__DEFAULT_USERNAME=
|
||||
export DISCORD__DEFAULT_WEBHOOK=
|
||||
|
||||
# linear.app project management configuration
|
||||
export LINEAR__API_TOKEN=
|
||||
|
||||
# s3 bucket name and filesystem targets for media backups
|
||||
export MEDIA_SYNC__S3_BUCKET=yage # from local
|
||||
export MEDIA_SYNC__TARGETS=(
|
||||
Pictures
|
||||
Documents
|
||||
Media
|
||||
.local/.porn
|
||||
.local/share/dolphin-emu
|
||||
Games/roms
|
||||
)
|
||||
|
||||
# redis connection credentials
|
||||
export REDIS_AUTH=
|
||||
export REDIS_HOST=
|
||||
export REDIS_PORT=
|
||||
|
||||
# twilio account / credentials
|
||||
export TWILIO__ACCOUNT_SID=ACac926b109b3cd8a78685a2a0994d0271 # from local
|
||||
export TWILIO__API_KEY=
|
||||
export TWILIO__API_SECRET=
|
||||
export TWILIO__DEFAULT_PHONE_FROM=
|
||||
export TWILIO__DEFAULT_PHONE_TO=
|
@ -2,44 +2,7 @@
|
||||
# Scwrypts Build Definitions
|
||||
#
|
||||
|
||||
VUNDLE__BUILD__ale() {
|
||||
# ... build steps from /home/w0ryn/.vim/ale
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__nerdtree() {
|
||||
# ... build steps from /home/w0ryn/.vim/nerdtree
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__unicode.vim() {
|
||||
# ... build steps from /home/w0ryn/.vim/unicode.vim
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__vim-dim() {
|
||||
# ... build steps from /home/w0ryn/.vim/vim-dim
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__vim-fugitive() {
|
||||
# ... build steps from /home/w0ryn/.vim/vim-fugitive
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__vim-go() {
|
||||
# ... build steps from /home/w0ryn/.vim/vim-go
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__vim-surround() {
|
||||
# ... build steps from /home/w0ryn/.vim/vim-surround
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__vim-hexokinase() {
|
||||
# ... build steps from /home/w0ryn/.vim/vim-hexokinase
|
||||
make hexokinase
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__youcompleteme() {
|
||||
# ... build steps from /home/w0ryn/.vim/youcompleteme
|
||||
./install.py --all
|
||||
}
|
||||
|
||||
VUNDLE__BUILD__rust.vim() {
|
||||
# ... build steps from /home/w0ryn/.vim/rust.vim
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
include "%L"
|
||||
|
||||
<Multi_key> <n> <n> : "ñ"
|
||||
<Multi_key> <N> <N> : "Ñ"
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user