Compare commits

...

33 Commits

Author SHA1 Message Date
882ea6ebc1 scwrypts v5 stuff 2025-06-04 11:44:55 -06:00
f6acbd3cb7 cleanup mplayer config file location 2025-05-25 12:29:38 -06:00
7c2d35cd30 remove company from local/default configuration 2025-05-25 12:29:16 -06:00
d3fd54049d vim dictionary update; switch comments to use "grey" 2025-05-25 12:28:13 -06:00
60bc819ba7 v5 updates 2025-05-25 12:27:44 -06:00
4227e1697f scwrypts to v5 2025-05-25 12:27:30 -06:00
3264693663 gitconfig update; fix a case statement in dotwrynscwrypts 2025-02-21 15:59:14 -07:00
5276d2fb79 little fixes with scwrypts v5 on install 2025-02-21 15:57:49 -07:00
af6c15c774 a bunch of little tweaks for working on smaller screens and other readibility things 2025-02-21 15:57:49 -07:00
0db79302d7 more XDG refactors; now with scwrypts v5 going into main I can finally include FROG 🐸 2025-02-21 15:57:49 -07:00
a20d23ad5e media scwrypts v5 refactor 2025-02-21 15:57:49 -07:00
a3410d9b15 remote scwrypts v5 refactor 2025-02-21 15:57:49 -07:00
f11c6dfad6 dotwryn scwrypts v5 refactor 2025-02-21 15:57:49 -07:00
1b70e44700 the GREAT CONFIG MIGRATION; (scwrypts v5 and some neat new config stuffs) 2025-02-21 15:57:49 -07:00
623828461e setup for macos / fedora stuff 2025-02-21 15:56:07 -07:00
9aac8ab514 more macos stuff 2025-02-04 15:53:18 -07:00
7dba5a85ce more macos stuff 2025-02-04 15:36:54 -07:00
1df4b35d63 more macos stuff 2025-02-04 15:34:44 -07:00
65336b03b6 more macos stuff 2025-02-04 15:31:17 -07:00
6180c7e6be more macos stuff 2025-02-04 15:25:36 -07:00
53cee5aa02 BSD-compliant tee for setup 2025-02-04 15:18:02 -07:00
9ee67e844b oh whoops 2025-02-04 15:13:37 -07:00
1b0ecf16b0 fzf trick 2025-02-04 15:13:12 -07:00
7b54257c54 remove fzf from requirements list on setup 2025-02-04 15:10:52 -07:00
d6578c5d4a start macos compatibility 2025-02-04 15:09:26 -07:00
19ff28d77c fedora targets complete 2025-02-04 11:19:54 -07:00
be771bcb7b go again 2025-02-04 11:07:01 -07:00
683ab967db fedora package installer 2025-02-04 10:52:55 -07:00
f5daa98dc3 fedora upgrades 2025-02-04 10:49:59 -07:00
498868c676 halloween colorscheme 2024-10-16 15:31:00 -06:00
a7496b926a fix the git setup thing 2024-08-16 09:43:47 -06:00
9301a32090 HOKAY; XDG_* refactor 2024-08-16 09:41:26 -06:00
7b70567a67 autostart ssh clients and some other niceties 2024-08-14 20:05:38 -06:00
257 changed files with 3762 additions and 1415 deletions

View File

@ -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 \
;

View File

@ -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

View File

@ -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 \
;

View File

@ -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
}

View File

@ -1,8 +0,0 @@
#!/bin/zsh
cd $HOME/Projects/python/xorg-midi/code
source ../env/bin/activate
./midi-controller
deactivate

View File

@ -1,27 +0,0 @@
--- # yamllint disable rule:colons
# do not edit; generated by scwrypts
# theme : main
colors:
primary:
background: '0x000505'
foreground: '0xd0f0f0'
cursor:
cursor: '0xeeddff'
normal:
black: '0x000505'
red: '0xc80064'
green: '0x11bb98'
yellow: '0x6911aa'
blue: '0x2262bb'
magenta: '0x9922dd'
cyan: '0x22ccba'
white: '0xd0f0f0'
bright:
black: '0x424253'
red: '0xff44ff'
green: '0x44dddd'
yellow: '0xaa44ff'
blue: '0x229df6'
magenta: '0xdd88ff'
cyan: '0x88ffff'
white: '0x7e707e'

View File

@ -1 +0,0 @@
/home/w0ryn/.wryn/colorschemes/main.yaml

View File

@ -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

View 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"

View File

@ -1,26 +1,34 @@
#!/bin/zsh #!/bin/zsh
command -v scwrypts &>/dev/null || { [ "${DOTWRYN}" ] || {
[ -f $HOME/.local/bin/scwrypts ] \ notify-send 'I3 UTILS' 'cannot determine $DOTWRYN for utility execution'
&& scwrypts() { $HOME/.local/bin/scwrypts $@; } \ return 1
|| scwrypts() { $HOME/.wryn/zsh/plugins/scwrypts/scwrypts $@; } \
;
} }
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 case $1 in
( next | previous | play-pause ) playerctl $1 ;; ( next | previous | play-pause ) playerctl $1 ;;
( fastforward ) playerctl position 5+ ;; ( fastforward ) playerctl position 5+ ;;
( rewind ) playerctl position 5- ;; ( rewind ) playerctl position 5- ;;
( volumedown ) scwrypts -n desktop pulseaudio -- sink down ;; ( volumedown ) scwrypts media pulseaudio volume -- sink down ;;
( volumeup ) scwrypts -n desktop pulseaudio -- sink up ;; ( volumeup ) scwrypts media pulseaudio volume -- sink up ;;
( volumemute ) scwrypts -n desktop pulseaudio -- sink mute ;; ( volumemute ) scwrypts media pulseaudio volume -- sink mute ;;
( micmute ) scwrypts -n desktop pulseaudio -- source mute ;; ( micmute ) scwrypts media pulseaudio volume -- source mute ;;
( backlightup ) scwrypts -n desktop backlight -- up ;; ( backlightup ) scwrypts desktop backlight -- up ;;
( backlightdown ) scwrypts -n desktop backlight -- down ;; ( backlightdown ) scwrypts desktop backlight -- down ;;
( lock ) scwrypts -n desktop lock i3 -- ;; ( lock ) scwrypts desktop lock i3 -- ;;
( bgrandomize ) scwrypts desktop set i3 background -- random ;; ( bgrandomize ) scwrypts desktop set i3 background -- random ;;

View File

@ -1,8 +1,8 @@
#!/usr/bin/env sh #!/usr/bin/env sh
command -v polybar || return 0 command -v /usr/bin/polybar || return 0
killall -q polybar killall -q polybar
while pgrep -x polybar &>/dev/null; do sleep 0.1; done while pgrep -x polybar &>/dev/null; do sleep 0.1; done
polybar i3 & /usr/bin/polybar i3 &

View File

@ -0,0 +1 @@
../main.yaml

View 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

View File

@ -0,0 +1 @@
/home/w0ryn/.local/share/wryn/colorschemes/main.yaml

View File

@ -10,7 +10,7 @@ font pango:Monaspace Argon, pango:Noto Color Emoji, pango:Symbols Nerd Font 16
## Custom Utility ############################################################## ## 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 # Audio
bindsym XF86AudioRewind $UTILS previous 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+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+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+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+g workspace "🎮"; exec --no-startup-id polybar-msg cmd hide
bindsym $mod+Shift+1 move container to workspace number "1" 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+7 move container to workspace number "7"
bindsym $mod+Shift+8 move container to workspace number "8" bindsym $mod+Shift+8 move container to workspace number "8"
bindsym $mod+Shift+9 move container to workspace number "9" 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 "🎮" bindsym $mod+Shift+g move container to workspace "🎮"
mode "resize" { 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 compton
exec --no-startup-id 1password --silent
exec --no-startup-id scwrypts omni tmux -- --background
# color settings # color settings
set $FOCUSED_BORDER #006942 set $FOCUSED_BORDER #006942

View File

@ -21,5 +21,5 @@ statusbar:
# supported values are 'polybar' and 'i3status' # supported values are 'polybar' and 'i3status'
type: polybar 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: [] i3configs: []

View File

@ -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" \ split-window -d -t apps:foreman "clear; echo 'Keeping apps fresh...'; while true; do sleep 30; done" \
2>/dev/null 2>/dev/null
for APP in $(ls ${0:a:h} | grep -v 'apps') for APP in $(find "${0:a:h}" -name apps.\*)
do do
echo "looking for $APP" echo "looking for $APP"
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \ tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \

View 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

View 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 \
;

View 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

View 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 \
;

View 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}
}

View File

@ -1,5 +1,5 @@
#!/bin/zsh #!/bin/zsh
source "$HOME/.config/wryn/env.zsh" source "${HOME}/.config/wryn/env.zsh"
NATIVE_MONITOR='eDP1' NATIVE_MONITOR='eDP1'
GET_PRIMARY_MONITOR() { GET_PRIMARY_MONITOR() {
@ -15,7 +15,7 @@ GET_ALL_EXTERNAL_MONITORS() {
xrandr \ xrandr \
| grep ' connect' \ | grep ' connect' \
| awk '{print $1;}' \ | awk '{print $1;}' \
| grep -v "$NATIVE_MONITOR" \ | grep -v "${NATIVE_MONITOR}" \
2>/dev/null 2>/dev/null
} }
GET_DEFAULT_EXTERNAL_MONITOR() { GET_DEFAULT_EXTERNAL_MONITOR() {
@ -34,19 +34,19 @@ DISCONNECT_OTHER() {
for ACTIVE_MONITOR in ${@:2} for ACTIVE_MONITOR in ${@:2}
do do
INACTIVE_MONITORS=$(echo $INACTIVE_MONITORS | grep -v "^$ACTIVE_MONITOR$") INACTIVE_MONITORS=$(echo ${INACTIVE_MONITORS} | grep -v "^${ACTIVE_MONITOR}$")
done done
local MONITOR local MONITOR
for MONITOR in $INACTIVE_MONITORS for MONITOR in ${INACTIVE_MONITORS}
do do
xrandr --output $MONITOR --off xrandr --output ${MONITOR} --off
done done
sleep 1 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 return 0
} }

13
config/local/pikachu/bin/apps Executable file
View 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

View 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

View File

@ -0,0 +1,6 @@
#!/bin/zsh
xrandr --auto
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
scwrypts desktop screen blank -- enable

View 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
View 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

View File

@ -0,0 +1 @@
/home/w0ryn/.local/share/wryn/zsh/plugins/scwrypts/scwrypts

View File

@ -4,7 +4,6 @@
exit 1 exit 1
} }
MAX_CHARGE_THRESHOLD=$1 MAX_CHARGE_THRESHOLD=$1
[ "$MAX_CHARGE_THRESHOLD" ] \ [ "$MAX_CHARGE_THRESHOLD" ] \
|| MAX_CHARGE_THRESHOLD=75 || MAX_CHARGE_THRESHOLD=75

View 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

View 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

View File

@ -0,0 +1 @@
ACTION=="add", RUN+="/home/w0ryn/.local/share/wryn/config/local/pikachu/bin/set-battery-max-charge"

View 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

View File

@ -0,0 +1,2 @@
#!/bin/zsh
sudo patch -p1 -d /usr/share/alsa-card-profile/mixer/paths/ -i "${0:a:h}/pulseaudio.patch"

View File

@ -0,0 +1,2 @@
[font]
size = 9

View File

@ -14,4 +14,4 @@ pkill compton
scwrypts desktop screen-blank -- disable scwrypts desktop screen-blank -- disable
scwrypts desktop i3 set background -- link-vs-gdizz.jpg scwrypts desktop i3 set background -- link-vs-gdizz.jpg
scwrypts desktop play sound -- gamedock scwrypts desktop play sfx -- gamedock

View File

@ -14,4 +14,4 @@ xrandr ${ARGS[@]} \
scwrypts desktop screen-blank -- enable scwrypts desktop screen-blank -- enable
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg || scwrypts desktop i3 set background -- random 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

View File

@ -21,7 +21,7 @@ configuration {
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "../colorschemes/active/rofi" @import "./colorschemes/active/rofi"
* { * {
border-colour: var(selected); border-colour: var(selected);

View File

@ -3,19 +3,14 @@
# #
SCWRYPTS_SHORTCUT='' # CTRL + W SCWRYPTS_SHORTCUT='' # CTRL + W
SCWRYPTS_ENV_SHORTCUT='' # CTRL + /
SCWRYPTS_ENVIRONMENT__SHOW_ENV_HELP=false #SCWRYPTS_ENVIRONMENT__SHOW_ENV_HELP=false
SCWRYPTS_ENVIRONMENT__PREFERRED_EDIT_MODE=quiet #SCWRYPTS_ENVIRONMENT__PREFERRED_EDIT_MODE=quiet
for SEARCH_DIR in \ SCWRYPTS_GENERATOR__SHOW_HELP=false
"$HOME/.wryn/scwrypts" \
"$HOME/Projects/yage/" \
;
do
[ -d "$SEARCH_DIR" ] || continue
for G in "$SEARCH_DIR/"**/*.scwrypts.zsh; do . "$G"; done
done
[ -f "$HOME/.config/scwrypts/config.local.zsh" ] \ [ ${DOTWRYN} ] || source "${HOME}/.zshrc"
&& source "$HOME/.config/scwrypts/config.local.zsh" 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"

View File

@ -1,60 +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/flameshot.ini flameshot/flameshot.ini
$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 '^' \
;
} )
"
true

View File

@ -0,0 +1,4 @@
--- # local.pikachu > dotwryn
desktop:
backlight-device:
value: amdgpu_bl1

View File

@ -0,0 +1,2 @@
--- # local.pikachu > remote
# no configuration set

View File

@ -0,0 +1,2 @@
--- # local.pikachu > scwrypts
# no configuration set

View File

@ -2,44 +2,7 @@
# Scwrypts Build Definitions # 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() { VUNDLE__BUILD__vim-hexokinase() {
# ... build steps from /home/w0ryn/.vim/vim-hexokinase # ... build steps from /home/w0ryn/.vim/vim-hexokinase
make 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
}

View File

@ -1 +0,0 @@
ACTION=="add", RUN+="/home/w0ryn/.wryn/bin/pikachu/set-battery-max-charge"

3
config/user/X11/xinitrc Normal file
View File

@ -0,0 +1,3 @@
#!/bin/zsh
source "${HOME}/.zshrc" &>/dev/null
source "${DOTWRYN}/config/xinitrc.i3wm"

View File

@ -0,0 +1,3 @@
[general]
hist_file = ~/.local/state/python/bpythhon_hist

View File

@ -2,8 +2,8 @@
contrastOpacity=188 contrastOpacity=188
contrastUiColor=#11bb98 contrastUiColor=#11bb98
disabledTrayIcon=false disabledTrayIcon=false
drawColor=#e9a02f drawColor=#6911aa
drawThickness=15 drawThickness=9
filenamePattern=%Y-%m-%d_%I%H.SCREENSHOT filenamePattern=%Y-%m-%d_%I%H.SCREENSHOT
saveAsFileExtension=png saveAsFileExtension=png
savePath=/home/w0ryn/Pictures/screenshot savePath=/home/w0ryn/Pictures/screenshot

View File

@ -1,29 +1,57 @@
[user] [user]
email = yage@yage.io email = yage@yage.io
name = yage name = yage
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICk2AL/QX5yr2UR2FsHg74bVLpQUpr1/lbgvoFi85J0c
[push] [push]
default = current default = current
[difftool] [difftool]
trustExitCode = true trustExitCode = true
prompt = false prompt = false
[diff] [diff]
tool = vimdiff tool = vimdiff
[merge] [merge]
tool = vimdiff tool = vimdiff
[pull] [pull]
default = current default = current
rebase = true rebase = true
[rebase] [rebase]
autostash = true autostash = true
[color] [color]
diff = always diff = always
status = always status = always
branch = always branch = always
[submodule] [submodule]
recurse = true recurse = true
[alias] [alias]
serve = !git daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/ serve = !git daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
[init] [init]
defaultBranch = main defaultBranch = main
[safe] [safe]
directory = /opt/flutter directory = /opt/flutter
[gpg]
format = ssh
[gpg "ssh"]
program = /opt/1Password/op-ssh-sign
allowedSignersFile = /home/w0ryn/.ssh/allowed_signers
[commit]
gpgsign = true
[tag]
gpgsign = true
[format]
signoff = true

Some files were not shown because too many files have changed in this diff Show More