Browse Source

TODOs

main
Yiğit Çolakoğlu 4 years ago
parent
commit
a21529959c
19 changed files with 149 additions and 97 deletions
  1. +2
    -2
      README.md
  2. +1
    -1
      misc/keyboard
  3. +23
    -4
      misc/profile
  4. +1
    -1
      scripts/dmenu-logout
  5. +43
    -0
      scripts/dmenu-refresh
  6. +15
    -0
      scripts/kbmap_toggle
  7. +2
    -0
      scripts/lock
  8. +4
    -4
      scripts/mailsync
  9. +1
    -1
      scripts/status-bar/cpu-temp
  10. +5
    -0
      scripts/status-bar/keyboard
  11. +6
    -0
      scripts/status-bar/mail
  12. +17
    -6
      scripts/status-bar/weather
  13. +0
    -0
      suckless/dmenu/patches/dmenu-password-4.9.diff
  14. +6
    -2
      suckless/dwm/keybind.h
  15. +2
    -1
      suckless/dwm/rules.h
  16. +3
    -1
      suckless/dwmblocks/config.h
  17. +1
    -1
      suckless/dwmblocks/dwmblocks.c
  18. +17
    -45
      xorg/xinitrc
  19. +0
    -28
      zsh/zshrc

+ 2
- 2
README.md View File

@ -32,6 +32,6 @@ This will download everything you need. After that, I have a list of all the pac
## TODOS ## TODOS
[ ] Neomutt further config [ ] Neomutt further config
[ ] Dwmblocks entry for tracking last mailsync time
[X] Dwmblocks entry for tracking last mailsync time
[ ] Better documentation [ ] Better documentation
[ ] Dmenu for restarting certain processes like dwm, dwmblocks, dunst, mconnect
[X] Dmenu for restarting certain processes like dwm, dwmblocks, dunst, mconnect

+ 1
- 1
misc/keyboard View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
setxkbmap us -variant altgr-intl -option caps:escape # Set keyboard layout. map CapsLock to Esc
setxkbmap us,tr -variant altgr-intl, -option caps:escape # Set keyboard layout. map CapsLock to Esc
xset r rate 120 40 xset r rate 120 40
xmodmap -e "clear control" -e "add control = Control_L" -e "clear mod3" -e "add mod3 = Control_R" # Map right Ctrl to Mod3Mask xmodmap -e "clear control" -e "add control = Control_L" -e "clear mod3" -e "add mod3 = Control_R" # Map right Ctrl to Mod3Mask

+ 23
- 4
misc/profile View File

@ -1,5 +1,24 @@
#!/bin/bash #!/bin/bash
# Start X window manager
TERMINAL=/usr/local/bin/st
TERM=st
startx
# Environment variables
export QT_QPA_PLATFORMTHEME="qt5ct"
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
export SHELL=/bin/zsh
export TERMINAL=/usr/local/bin/st
export TERM=st
export ANDROID_HOME=~/Android/Sdk
export FLUTTER_HOME=~/flutter
export TMUX_PLUGIN_MANAGER_PATH=~/.tmux/plugins
export BORG_KEYS_DIR=~/.keys/borg
export BROWSER=firefox-developer-edition
export EDITOR=vim
export GOPATH=$HOME/go
export ANDROID_HOME=/home/yigit/Android
# Setup PATH
export CM_SYNC_PRIMARY_TO_CLIPBOARD=1
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$FLUTTER_HOME/bin
export PATH="$PATH:/home/yigit/.scripts:/home/yigit/.local/bin:/home/yigit/.gem/ruby/2.7.0/bin:$GOPATH/bin:$GOPATH/binexport:/home/yigit/.local/bin"
export CPATH=/usr/include/opencv4

+ 1
- 1
scripts/dmenu-logout View File

@ -43,7 +43,7 @@ case $selection in
restart restart
;; ;;
logout) logout)
kill -9 $(pidof dwm)
logout
;; ;;
hibernate) hibernate)
sudo systemctl hibernate sudo systemctl hibernate


+ 43
- 0
scripts/dmenu-refresh View File

@ -0,0 +1,43 @@
#!/bin/sh
killprogs() {
pkill -x udisks-glue
pkill -x panel
pkill -x redshift
}
logout() {
pkill dwm
}
DMENU='dmenu -z 1900 -x 10 -y 10 -i'
items="dwm
dwmblocks
mconnect
dunst"
# Open menu
selection=$(printf '%s' "$items" | $DMENU)
case $selection in
dwm)
touch /home/yigit/.cache/dwm-restart
logout
;;
dwmblocks)
kill -9 $(pidof dwmblocks)
dwmblocks > /tmp/dwmblocks.out 2> /tmp/dwmblocks.err &
;;
mconnect)
kill -9 $(pidof mconnect)
mconnect -d &
;;
dunst)
kill -9 $(pidof dunst)
dunst &
;;
esac
exit

+ 15
- 0
scripts/kbmap_toggle View File

@ -0,0 +1,15 @@
#!/bin/bash
layout=$(xkb-switch -p)
if [ "$layout" = "tr" ]; then
xkb-switch -s "us(altgr-intl)"
notify-send "Keyboard layout switched to us"
else
xkb-switch -s "tr"
notify-send "Keyboard layout switched to tr"
fi
kill -58 $(pidof dwmblocks)

+ 2
- 0
scripts/lock View File

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
curl 'http://yeetclock/setcolor?R=2000&G=10&B=000&O=0'
/home/yigit/.scripts/pacontrol.sh open-mute /home/yigit/.scripts/pacontrol.sh open-mute
/home/yigit/.scripts/dunst_toggle.sh -s /home/yigit/.scripts/dunst_toggle.sh -s
betterlockscreen -l -t 'Stay the fuck out!' betterlockscreen -l -t 'Stay the fuck out!'
/home/yigit/.scripts/dunst_toggle.sh -e /home/yigit/.scripts/dunst_toggle.sh -e
/home/yigit/.scripts/pacontrol.sh toggle-mute /home/yigit/.scripts/pacontrol.sh toggle-mute
curl 'http://yeetclock/setcolor?R=136&G=192&B=208'

+ 4
- 4
scripts/mailsync View File

@ -57,8 +57,10 @@ syncandnotify() {
if [ -z "$opts" ]; then mbsync "$acc"; else mbsync "$opts" "$acc"; fi if [ -z "$opts" ]; then mbsync "$acc"; else mbsync "$opts" "$acc"; fi
new=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" 2> /dev/null) new=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" 2> /dev/null)
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l) newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
echo -n "$newcount" > ~/.cache/mcount
date +"%R" > ~/.cache/msync
if [ "$newcount" -gt "0" ]; then if [ "$newcount" -gt "0" ]; then
notify "$acc" "$newcount" &
notify "$acc" "$newcount" &
for file in $new; do for file in $new; do
# Extract subject and sender from mail. # Extract subject and sender from mail.
from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//') from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//')
@ -86,6 +88,4 @@ done
wait wait
notmuch new 2>/dev/null notmuch new 2>/dev/null
#Create a touch file that indicates the time of the last run of mailsync
touch "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun"
kill -57 $(pidof dwmblocks)

+ 1
- 1
scripts/status-bar/cpu-temp View File

@ -5,4 +5,4 @@ source ~/.config.env
temp=$(sed 's/[0-9][0-9][0-9]$/°C/' $TEMP_ZONE) temp=$(sed 's/[0-9][0-9][0-9]$/°C/' $TEMP_ZONE)
icon= icon=
echo "^c#bf616a^$icon^d^ $temp "
echo "^c#bf616a^$icon^d^ $temp"

+ 5
- 0
scripts/status-bar/keyboard View File

@ -0,0 +1,5 @@
#!/bin/bash
layout=$(xkb-switch -p | cut -d "(" -f1)
echo -n "^c#a3be8c^ ^d^$layout"

+ 6
- 0
scripts/status-bar/mail View File

@ -0,0 +1,6 @@
#!/bin/bash
mcount=$(cat ~/.cache/mcount)
msync=$(cat ~/.cache/msync)
echo -n "^c#a3be8c^ ^d^ $msync ^c#81a1c1^ ^d^ $mcount"

+ 17
- 6
scripts/status-bar/weather View File

@ -3,18 +3,26 @@
export LOCATION=ankara export LOCATION=ankara
weatherreport="${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" weatherreport="${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport"
weatherreportjson="${XDG_DATA_HOME:-$HOME/.local/share}/weatherreportjson"
getforecast() { curl -sf "wttr.in/$LOCATION" > "$weatherreport" || exit 1 ;} getforecast() { curl -sf "wttr.in/$LOCATION" > "$weatherreport" || exit 1 ;}
getforecastjson() { curl -sf "wttr.in/$LOCATION?format=j1" > "$weatherreportjson" || exit 1 ;}
# Some very particular and terse stream manipulation. We get the maximum # Some very particular and terse stream manipulation. We get the maximum
# precipitation chance and the daily high and low from the downloaded file and # precipitation chance and the daily high and low from the downloaded file and
# display them with coresponding emojis. # display them with coresponding emojis.
showweather() { printf "%s" "$(sed '16q;d' "$weatherreport" |
grep -wo "[0-9]*%" | sort -rn | sed "s/^/\^c#81a1c1\^  \^d\^/g;1q" | tr -d '\n')"
sed '13q;d' "$weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ^c#ebcb8b^ 滛^d^ "$2 "°"}' ;}
showweather() {
jq -r '.weather|.[0]|.hourly|.[0]|.FeelsLikeC,.chanceofrain,.chanceofsnow,.WindGustKmph' "$weatherreportjson" |sed ':a;N;$!ba;s/\n/ /g' \
| awk -F' ' '{
if ($2 < $3)
print "^c#ffffff^ ^d^" $3 "% ^c#ebcb8b^ 盛 ^d^ " $1 "°"
else
print "^c#81a1c1^ ^d^" $2 "% ^c#ebcb8b^ 盛 ^d^ " $1 "°"}'
}
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e less -Srf "$weatherreport" ;;
2) getforecast && showweather ;;
1) setsid -f "$TERMINAL" -c weather -n weather -e less -Srf "$weatherreport" ;;
2) getforecast && showweather && kill -50 $(pidof dwmblocks) ;;
3) notify-send " Weather module" "\- Left click for full forecast. 3) notify-send " Weather module" "\- Left click for full forecast.
- Middle click to update forecast. - Middle click to update forecast.
: Chance of rain/snow : Chance of rain/snow
@ -25,7 +33,10 @@ esac
# The test if our forcecast is updated to the day. If it isn't download a new # The test if our forcecast is updated to the day. If it isn't download a new
# weather report from wttr.in with the above function. # weather report from wttr.in with the above function.
[ "$(stat -c %y "$weatherreport" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] ||
[ "$(date -r "/home/yigit/.local/share/weatherreport" "+%d-%m-%Y")" = "$(date '+%d-%m-%Y')" ] ||
getforecast getforecast
[ "$(date -r "/home/yigit/.local/share/weatherreportjson" "+%d-%m-%Y %H")" = "$(date '+%d-%m-%Y %H')" ] ||
getforecastjson
showweather showweather

suckless/dmenu/dmenu-password-4.9.diff → suckless/dmenu/patches/dmenu-password-4.9.diff View File


+ 6
- 2
suckless/dwm/keybind.h View File

@ -26,11 +26,13 @@ static const char *clipmenu[] = {"/usr/bin/clipmenu","-i",NULL};
static const char *play[] = {"/usr/bin/playerctl","play-pause",NULL}; static const char *play[] = {"/usr/bin/playerctl","play-pause",NULL};
static const char *prev[] = {"/usr/bin/playerctl","previous",NULL}; static const char *prev[] = {"/usr/bin/playerctl","previous",NULL};
static const char *next[] = {"/usr/bin/playerctl","next",NULL}; static const char *next[] = {"/usr/bin/playerctl","next",NULL};
static const char *outmenu[] = {"/home/yigit/.scripts/dmenu-logout"};
static const char *outmenu[] = {"/home/yigit/.scripts/dmenu-logout", NULL};
static const char *refresh[] = {"/home/yigit/.scripts/dmenu-refresh", NULL};
static const char *keyboard[] = {"/home/yigit/.scripts/kbmap_toggle", NULL};
static const char *screenshot[] = { "scrot", "/tmp/%Y-%m-%d-%s_$wx$h.png", "-e","xclip -selection clipboard -target image/png -i $f; cp $f ~/Pictures/Screenshots;notify-send \"SNAP\" \"$f\"", NULL }; static const char *screenshot[] = { "scrot", "/tmp/%Y-%m-%d-%s_$wx$h.png", "-e","xclip -selection clipboard -target image/png -i $f; cp $f ~/Pictures/Screenshots;notify-send \"SNAP\" \"$f\"", NULL };
static const char *windowshot[] = { "scrot", "-u", "/tmp/%Y-%m-%d-%s_$wx$h.png", "-e","xclip -selection clipboard -target image/png -i $f; cp $f ~/Pictures/Screenshots;notify-send \"SNAP\" \"$f\"", NULL }; static const char *windowshot[] = { "scrot", "-u", "/tmp/%Y-%m-%d-%s_$wx$h.png", "-e","xclip -selection clipboard -target image/png -i $f; cp $f ~/Pictures/Screenshots;notify-send \"SNAP\" \"$f\"", NULL };
static const char *simcrop[] = {"simcrop","-fc","-sc",NULL};
static const char *simcrop[] = {"simcrop","-fc","-sc", "-g", "900x500",NULL};
static const char *notification_off[] = {"/home/yigit/.scripts/dunst_toggle.sh","-s",NULL}; static const char *notification_off[] = {"/home/yigit/.scripts/dunst_toggle.sh","-s",NULL};
static const char *notification_on[] = {"/home/yigit/.scripts/dunst_toggle.sh", "-e",NULL}; static const char *notification_on[] = {"/home/yigit/.scripts/dunst_toggle.sh", "-e",NULL};
@ -110,6 +112,8 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_p, spawn, {.v = genpwd} }, { MODKEY|ShiftMask, XK_p, spawn, {.v = genpwd} },
{ MODKEY|ShiftMask, XK_b, spawn, {.v = bluetooth } }, { MODKEY|ShiftMask, XK_b, spawn, {.v = bluetooth } },
{ MODKEY|Mod1Mask, XK_n, spawn, {.v = network_manager} }, /*Spiral*/ { MODKEY|Mod1Mask, XK_n, spawn, {.v = network_manager} }, /*Spiral*/
{ MODKEY|Mod1Mask, XK_k, spawn, {.v = keyboard} }, /*tiled*/
{ MODKEY|ShiftMask, XK_r, spawn, {.v = refresh} }, /*tiled*/
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = upbright } }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = upbright } },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = downbright } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = downbright } },


+ 2
- 1
suckless/dwm/rules.h View File

@ -33,6 +33,7 @@ static const Rule rules[] = {
RULE(.instance = "sxiv", 0, .isfloating = 1, .floatpos="100% 1% 600W 350H") RULE(.instance = "sxiv", 0, .isfloating = 1, .floatpos="100% 1% 600W 350H")
RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 1000W 700H") RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 1000W 700H")
RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 250W 600H") // Why did I put this here? RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 250W 600H") // Why did I put this here?
// RULE(.title = "SimCrop", 0, .isfloating = 1, .floatpos="50% 50% 800W 500H")
RULE(.class = "weather", 0, .isfloating = 1, .floatpos="50% 50% 1200W 800H") // Why did I put this here?
RULE(.title = "SimCrop", 0, .isfloating = 1, .floatpos="50% 50% 800W 500H")
}; };

+ 3
- 1
suckless/dwmblocks/config.h View File

@ -4,12 +4,14 @@
static Block blocks[] = { static Block blocks[] = {
{ "", PATH("screensaver"), 120, 19}, { "", PATH("screensaver"), 120, 19},
{ "", PATH("dunst"), 120, 18}, { "", PATH("dunst"), 120, 18},
{ "", PATH("mail"), 120, 23},
{ "", PATH("keyboard"), 120, 24},
{ "", PATH("mconnect"), 120, 20}, { "", PATH("mconnect"), 120, 20},
{ "", PATH("cpu-temp"), 30, 17}, { "", PATH("cpu-temp"), 30, 17},
{ "", PATH("memory"), 120, 21}, { "", PATH("memory"), 120, 21},
{ "", PATH("weather"), 60, 16}, { "", PATH("weather"), 60, 16},
{ "", PATH("arch"), 120, 15}, { "", PATH("arch"), 120, 15},
{ "", PATH("volume"), 5, 14},
{ "", PATH("volume"), 5, 14},
{ "", PATH("network"), 120, 13}, { "", PATH("network"), 120, 13},
{ "", PATH("battery"), 60, 12}, { "", PATH("battery"), 60, 12},
{ "", PATH("time"), 30, 11}, { "", PATH("time"), 30, 11},


+ 1
- 1
suckless/dwmblocks/dwmblocks.c View File

@ -36,7 +36,7 @@ static Display *dpy;
static int screen; static int screen;
static Window root; static Window root;
static char statusbar[LENGTH(blocks)][CMDLENGTH] = {0}; static char statusbar[LENGTH(blocks)][CMDLENGTH] = {0};
static char statusstr[2][512];
static char statusstr[2][1024];
static int statusContinue = 1; static int statusContinue = 1;
static void (*writestatus) () = setroot; static void (*writestatus) () = setroot;


+ 17
- 45
xorg/xinitrc View File

@ -1,57 +1,35 @@
#! /bin/sh #! /bin/sh
# Environment variables
export QT_QPA_PLATFORMTHEME="qt5ct"
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
export SHELL=/bin/zsh
export TERMINAL=/usr/local/bin/st
export TERM=st
export ANDROID_HOME=~/Android/Sdk
export FLUTTER_HOME=~/flutter
export TMUX_PLUGIN_MANAGER_PATH=~/.tmux/plugins
export BORG_KEYS_DIR=~/.keys/borg
export BROWSER=~/.scripts/tabbed_surf
export EDITOR=vim
# Setup PATH
export PATH="~/.scripts/:~/.local/bin/:$PATH"
export CM_SYNC_PRIMARY_TO_CLIPBOARD=1
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$FLUTTER_HOME/bin
pkill -f aw-watcher-window
pkill -f aw-watcher-afk
pkill -f aw-server
pkill -f clipmenud pkill -f clipmenud
pkill -f "bash /sbin/clipmenud" pkill -f "bash /sbin/clipmenud"
pkill -f "/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh" pkill -f "/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh"
pkill -f "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" pkill -f "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
source ~/.config.env source ~/.config.env
# setxkbmap tr
# ~/.scripts/tabbed_surf &
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK export SSH_AUTH_SOCK
clipmenud > /tmp/clipmenud.out 2> /tmp/clipmenud.err & clipmenud > /tmp/clipmenud.out 2> /tmp/clipmenud.err &
rm -f ~/.surf/tabbed-surf.xid rm -f ~/.surf/tabbed-surf.xid
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
feh --bg-fill /home/yigit/.dotfiles/backgrounds/wallpaper.jpg #Backgroun
feh --bg-fill /home/yigit/.dotfiles/backgrounds/wallpaper.jpg
xrdb ~/.Xresources & xrdb ~/.Xresources &
dwmblocks > /tmp/dwmblocks.out 2> /tmp/dwmblocks.err &
~/.scripts/mailsync
if [ "$NEXTCLOUD" = true ] ; then if [ "$NEXTCLOUD" = true ] ; then
nextcloud --background & nextcloud --background &
fi fi
if [ "$MCONNECT" = true ] ; then if [ "$MCONNECT" = true ] ; then
/usr/local/bin/mconnect -d > /tmp/mconnect 2> /tmp/mconnect.err & /usr/local/bin/mconnect -d > /tmp/mconnect 2> /tmp/mconnect.err &
fi fi
if [ "$ACTIVITYWATCHER" = true ] ; then
pkill -f aw-watcher-window
pkill -f aw-watcher-afk
pkill -f aw-server
aw-server &
aw-watcher-window &
aw-watcher-afk &
fi
xss-lock -- /home/yigit/.scripts/lock & xss-lock -- /home/yigit/.scripts/lock &
# aw-server &
# aw-watcher-window &
# aw-watcher-afk &
echo "on" > ~/.cache/dunst echo "on" > ~/.cache/dunst
echo "on" > ~/.cache/screensaver echo "on" > ~/.cache/screensaver
dbus-update-activation-environment --systemd DISPLAY dbus-update-activation-environment --systemd DISPLAY
@ -68,17 +46,11 @@ xset b 100
dunst & dunst &
csum=""
new_csum=$(sha1sum $(which dwm))
while true
touch ~/.cache/dwm-restart
while [ -f /home/yigit/.cache/dwm-restart ];
do do
if [ "$csum" != "$new_csum" ]
then
csum=$new_csum
dwm > /tmp/dwm.log 2> /tmp/dwm.err
else
exit 0
fi
new_csum=$(sha1sum $(which dwm))
sleep 0.5
rm -rf /home/yigit/.cache/dwm-restart
dwm > /tmp/dwm.log 2> /tmp/dwm.err
dwmblocks > /tmp/dwmblocks.out 2> /tmp/dwmblocks.err &
sleep 0.2
done done

+ 0
- 28
zsh/zshrc View File

@ -1,10 +1,5 @@
#if [ "$TMUX" = "" ]; then ~/.scripts/st_tmux; fi
eval "$(direnv hook zsh)" >> /tmp/direnv eval "$(direnv hook zsh)" >> /tmp/direnv
neofetch --ascii ~/.config/neofetch/ascii.txt neofetch --ascii ~/.config/neofetch/ascii.txt
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi fi
@ -12,24 +7,6 @@ fi
# Created by kuro for 5.8 # Created by kuro for 5.8
source <(antibody init) source <(antibody init)
# Environment variables
export GOPATH=$HOME/go
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
export ANDROID_HOME=~/Android/Sdk
export FLUTTER_HOME=~/flutter
export TMUX_PLUGIN_MANAGER_PATH=~/.tmux/plugins
export BORG_KEYS_DIR=~/.keys/borg
export BROWSER=~/.scripts/tabbed_surf
export EDITOR=vim
# Setup PATH
export PATH="~/.scripts/:~/.local/bin/:$PATH"
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$FLUTTER_HOME/bin
export PATH="$PATH:/home/yigit/.scripts:/home/yigit/.gem/ruby/2.7.0/bin:$GOPATH/bin:$GOPATH/binexport:/home/yigit/.local/bin"
HISTFILE=~/.zsh_history HISTFILE=~/.zsh_history
HISTSIZE=10000 HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=10000
@ -66,8 +43,3 @@ export KEYTIMEOUT=5
# added by travis gem # added by travis gem
[ ! -s /home/yigit/.travis/travis.sh ] || source /home/yigit/.travis/travis.sh [ ! -s /home/yigit/.travis/travis.sh ] || source /home/yigit/.travis/travis.sh
#zle-line-init() { zle -K vicmd; }
#zle -N zle-line-init

Loading…
Cancel
Save