some changes; read the diff for more info
This commit is contained in:
parent
8dd113bd7a
commit
83c2a195b2
|
@ -23,6 +23,7 @@
|
||||||
nomacs
|
nomacs
|
||||||
vscodium
|
vscodium
|
||||||
thunderbird
|
thunderbird
|
||||||
|
libreoffice
|
||||||
];
|
];
|
||||||
|
|
||||||
services.hardware.bolt.enable = true; # thunderbolt support
|
services.hardware.bolt.enable = true; # thunderbolt support
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# you can think of this more as post-wm setup
|
# you can think of this more as post-wm setup
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
set_walls() {
|
set_walls() {
|
||||||
for i in $(xrandr | grep ' connected' | cut -d' ' -f1); do
|
for i in $(xrandr | grep ' connected' | cut -d' ' -f1); do
|
||||||
xwallpaper --output $i --zoom ~/.local/share/pape.jpg
|
xwallpaper --output $i --zoom ~/.local/share/pape.jpg
|
||||||
|
@ -40,6 +42,7 @@ assert_edid() {
|
||||||
exists() {
|
exists() {
|
||||||
xrandr | grep ' connected' | grep -c "${1}"
|
xrandr | grep ' connected' | grep -c "${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$(hostname)" in
|
case "$(hostname)" in
|
||||||
"mainsail")
|
"mainsail")
|
||||||
echo "mainsail"
|
echo "mainsail"
|
||||||
|
@ -48,14 +51,26 @@ case "$(hostname)" in
|
||||||
bspc monitor HDMI-1 -d 2 4 6 8 0
|
bspc monitor HDMI-1 -d 2 4 6 8 0
|
||||||
;;
|
;;
|
||||||
"mlg")
|
"mlg")
|
||||||
xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \
|
case "$1" in
|
||||||
--output DP-0 --off \
|
"invert")
|
||||||
--output DP-1-1 --mode 1920x1080 --pos 3000x420 --rotate normal --rate 120 \
|
xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \
|
||||||
--output DP-1-2 --mode 1920x1080 --pos 0x0 --rotate right --rate 60
|
--output DP-0 --off \
|
||||||
bspc monitor DP-1-1 -d 2 4 6 8
|
--output DP-1-1 --mode 1920x1080 --pos 3000x420 --rotate normal --rate 120 \
|
||||||
bspc monitor DP-1-2 -d 9
|
--output DP-1-2 --mode 1920x1080 --pos 0x0 --rotate right --rate 60
|
||||||
bspc monitor HDMI-0 -d 1 3 5 7
|
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
|
xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1
|
||||||
|
|
||||||
# setup synchronization
|
# setup synchronization
|
||||||
|
@ -64,7 +79,7 @@ case "$(hostname)" in
|
||||||
# but it's just a link, so it's a regular file.
|
# but it's just a link, so it's a regular file.
|
||||||
# in conclusion, good either way
|
# in conclusion, good either way
|
||||||
mkdir -p $HOME/.cache/mount_point
|
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
|
ln -sf $HOME/.cache/mount_point $HOME/doc
|
||||||
;;
|
;;
|
||||||
"x230t")
|
"x230t")
|
||||||
|
|
|
@ -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 &
|
|
@ -2,18 +2,10 @@
|
||||||
|
|
||||||
# some housekeeping
|
# some housekeeping
|
||||||
shopt -s autocd
|
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 ls="ls --color=auto"
|
||||||
alias ll="ls -lah --color=auto"
|
alias ll="ls -lah --color=auto"
|
||||||
alias irssi="irssi --home=$HOME/.config/irssi"
|
|
||||||
|
|
||||||
PS1="\w\$ "
|
PS1="\h:\w\$ "
|
||||||
|
|
||||||
repos() {
|
repos() {
|
||||||
sel="$(ls ~/git | fzy | awk '{print "/home/usr/git/"$1}')"
|
sel="$(ls ~/git | fzy | awk '{print "/home/usr/git/"$1}')"
|
||||||
|
@ -22,9 +14,26 @@ repos() {
|
||||||
cd "$sel"
|
cd "$sel"
|
||||||
}
|
}
|
||||||
|
|
||||||
rss() {
|
hist() {
|
||||||
cd ~/.local/share/sfeed/
|
res=$(cat ~/.config/bash/hist | \
|
||||||
touch .urls
|
sort | \
|
||||||
sfeed_curses *
|
uniq | \
|
||||||
cd -
|
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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,10 @@ bspc rule -a Xmessage border=on state=floating
|
||||||
bspc rule -a Zathura state=tiled
|
bspc rule -a Zathura state=tiled
|
||||||
bspc rule -a generic-st-window state=floating manage=on sticky=on border=on
|
bspc rule -a generic-st-window state=floating manage=on sticky=on border=on
|
||||||
bspc rule -a floating-feh state=floating
|
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 normal_border_color "#161510"
|
||||||
bspc config active_border_color "#727A18"
|
bspc config active_border_color "#727A18"
|
||||||
|
|
|
@ -10,4 +10,8 @@
|
||||||
text = "source /home/usr/.config/bash/bashrc";
|
text = "source /home/usr/.config/bash/bashrc";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
fzy
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
pkgs.man-pages
|
pkgs.man-pages
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
time.timeZone = "America/Chicago";
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
rsync
|
rsync
|
||||||
msmtp
|
msmtp
|
||||||
ytfzf
|
ytfzf
|
||||||
|
peaclock
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|
Loading…
Reference in New Issue