adding nix configs
This commit is contained in:
parent
bd0cf6ff9b
commit
3521d5da4b
18 changed files with 408 additions and 21 deletions
|
@ -17,7 +17,7 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
|
|||
fi
|
||||
else
|
||||
if [ $KDE_FULL_SESSION = "true" ]; then
|
||||
ww -f emacs -c emacsclient
|
||||
/home/chris/scripts/ww -f emacs -c emacsclient
|
||||
exit
|
||||
else
|
||||
# WAYLAND
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/run/current-system/sw/bin/bash
|
||||
# Get the percentage of used memory and print it
|
||||
read used total <<< $(free -m | awk '/Mem/{printf $2" "$3}')
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
muunread="$(mu find flag:unread AND NOT flag:trashed AND NOT maildir:\"/outlook/Junk\" AND NOT maildir:\"/office/Junk Email\" AND NOT maildir:\"/outlook/Deleted\" AND NOT maildir:\"/office/Deleted Items\" | wc -l)"
|
||||
|
||||
echo " $muunread | color=#f3f99d font='VictorMono Nerd Font' size=11"
|
||||
echo " $muunread | color=#f3f99d font='VictorMono Nerd Font' size=11"
|
||||
# echo " $muunread | color=#AF8700 font='VictorMono Nerd Font' size=11"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Check to see if firefox is running
|
||||
if pgrep -x qutebrowser > /dev/null; then
|
||||
# Check to see if qb is running
|
||||
if [ $(pgrep -c qutebrowser) -gt 0 ]; then
|
||||
|
||||
echo "qb running"
|
||||
|
||||
|
@ -20,7 +20,7 @@ if pgrep -x qutebrowser > /dev/null; then
|
|||
fi
|
||||
else
|
||||
if [ $KDE_FULL_SESSION = "true" ]; then
|
||||
ww -f org.qutebrowser.qutebrowser -c qutebrowser
|
||||
/home/chris/scripts/ww -f org.qutebrowser.qutebrowser -c qutebrowser
|
||||
exit
|
||||
else
|
||||
echo "other wayland"
|
||||
|
|
|
@ -14,7 +14,7 @@ else
|
|||
fi
|
||||
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme ~/.config/rofi/launchers-git/$style-clipboard.rasi $@ &
|
||||
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
|
||||
c=0
|
||||
while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
|
||||
sleep .1
|
||||
|
@ -22,5 +22,5 @@ if [ $XDG_SESSION_TYPE = "x11" ]; then
|
|||
[[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
|
||||
done
|
||||
else
|
||||
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme ~/.config/rofi/launchers-git/$style-clipboard.rasi
|
||||
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme ~/.config/rofi/launchers-git/$style.rasi
|
||||
fi
|
||||
|
|
5
scripts/update-nix
Executable file
5
scripts/update-nix
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
nix-channel --update
|
||||
sudo nix-channel --update
|
||||
home-manager switch
|
||||
sudo nixos-rebuild switch
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/run/current-system/sw/bin/bash
|
||||
# Usage: ww -f "window class filter" -c "run if not found"
|
||||
# Usage: ww -fa "window title filter" -c "run if not found"
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ fi
|
|||
defcmd="fzf"
|
||||
guicmd="rofi -no-lazy-grab -dmenu -i -theme launchers-git/"$style".rasi" #uncomment next line for dmenu
|
||||
#guicmd="dmenu -i -l 15"
|
||||
promptcmd="$defcmd"
|
||||
promptcmd="$guicmd"
|
||||
# if [ -z "$*" ]; then
|
||||
# echo -n "Search: "
|
||||
# read -r query
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue