some changes; read the diff for more info

This commit is contained in:
randomuser 2024-02-24 17:22:30 -06:00
parent 8dd113bd7a
commit 83c2a195b2
8 changed files with 69 additions and 24 deletions

View File

@ -23,6 +23,7 @@
nomacs
vscodium
thunderbird
libreoffice
];
services.hardware.bolt.enable = true; # thunderbolt support

View File

@ -1,6 +1,8 @@
#!/bin/sh
# you can think of this more as post-wm setup
set -x
set_walls() {
for i in $(xrandr | grep ' connected' | cut -d' ' -f1); do
xwallpaper --output $i --zoom ~/.local/share/pape.jpg
@ -40,6 +42,7 @@ assert_edid() {
exists() {
xrandr | grep ' connected' | grep -c "${1}"
}
case "$(hostname)" in
"mainsail")
echo "mainsail"
@ -48,6 +51,8 @@ case "$(hostname)" in
bspc monitor HDMI-1 -d 2 4 6 8 0
;;
"mlg")
case "$1" in
"invert")
xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \
--output DP-0 --off \
--output DP-1-1 --mode 1920x1080 --pos 3000x420 --rotate normal --rate 120 \
@ -55,7 +60,17 @@ case "$(hostname)" in
bspc monitor DP-1-1 -d 2 4 6 8
bspc monitor DP-1-2 -d 9
bspc monitor HDMI-0 -d 1 3 5 7
;;
*)
xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \
--output DP-0 --off \
--output DP-1-2 --mode 1920x1080 --pos 3000x420 --rotate normal --rate 120 \
--output DP-1-1 --mode 1920x1080 --pos 0x0 --rotate right --rate 60
bspc monitor DP-1-2 -d 2 4 6 8
bspc monitor DP-1-1 -d 9
bspc monitor HDMI-0 -d 1 3 5 7
;;
esac
xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1
# setup synchronization
@ -64,7 +79,7 @@ case "$(hostname)" in
# but it's just a link, so it's a regular file.
# in conclusion, good either way
mkdir -p $HOME/.cache/mount_point
sshfs usr@mainsail:./doc $HOME/.cache/mount_point
sshfs usr@192.168.1.120:/home/usr/doc $HOME/.cache/mount_point
ln -sf $HOME/.cache/mount_point $HOME/doc
;;
"x230t")

12
builds/utils/sh/gaming Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
discord &
st -c send-to-9 -e cmus &
st -c send-to-9 -e ncpamixer &
sleep 1
cmus-remote <<EOF
view playlist
win-down
win-activate
EOF
steam &

View File

@ -2,18 +2,10 @@
# some housekeeping
shopt -s autocd
alias rc=". ~/.config/bash/bashrc"
alias erc="nvim ~/.config/bash/bashrc"
alias reload=". ~/.config/bash/bashrc"
alias sched="nvim $DOTREMINDERS"
alias cal="rem -cl"
alias shutdown="sudo shutdown -h now"
alias ls="ls --color=auto"
alias ll="ls -lah --color=auto"
alias irssi="irssi --home=$HOME/.config/irssi"
PS1="\w\$ "
PS1="\h:\w\$ "
repos() {
sel="$(ls ~/git | fzy | awk '{print "/home/usr/git/"$1}')"
@ -22,9 +14,26 @@ repos() {
cd "$sel"
}
rss() {
cd ~/.local/share/sfeed/
touch .urls
sfeed_curses *
cd -
hist() {
res=$(cat ~/.config/bash/hist | \
sort | \
uniq | \
shuf | \
fzy)
[ -n "$res" ] && $($res)
}
search() {
res=$(find /home/usr/ /home/usr/doc/ \
-mindepth 1 \
-not -path '*/.*' \
-not -path './Mail/*' \
-not -path './vdir/*' \
-not -path '*venv*' \
-not -path '*node_modules*' \
-not -path '*__pycache__*' \
-type d | cut -c 11- | fzy)
[ -n "$res" ] && cd /home/usr/"$res"
}

View File

@ -8,6 +8,10 @@ bspc rule -a Xmessage border=on state=floating
bspc rule -a Zathura state=tiled
bspc rule -a generic-st-window state=floating manage=on sticky=on border=on
bspc rule -a floating-feh state=floating
bspc rule -a send-to-9 desktop=9
bspc rule -a steam desktop=1
bspc rule -a discord desktop=2
bspc config normal_border_color "#161510"
bspc config active_border_color "#727A18"

View File

@ -10,4 +10,8 @@
text = "source /home/usr/.config/bash/bashrc";
};
};
environment.systemPackages = with pkgs; [
fzy
];
}

View File

@ -12,7 +12,6 @@
pkgs.man-pages
];
networking.networkmanager.enable = true;
time.timeZone = "America/Chicago";

View File

@ -24,6 +24,7 @@
rsync
msmtp
ytfzf
peaclock
];
services.xserver = {