dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit d00fb3532f27b3aa32d2a41767fcffa3f0481a9b
parent bb123498da973c34fda74050a23a89cec2510a3a
Author: Cem Keylan <warc1998@gmail.com>
Date:   Wed,  5 Jun 2019 10:28:11 +0300

Huge modifications

Diffstat:
M.bashrc | 3++-
M.config/i3/config | 7++++++-
M.config/polybar/config | 44+++++++++++++-------------------------------
M.config/terminator/config | 10+++++++---
Mbin/cfi | 1+
Mbin/cfp | 1+
Mbin/dwatch | 2+-
Abin/mpctoggle | 11+++++++++++
Abin/sdmenu | 10++++++++++
Mbin/todo | 2+-
Mbin/wallset | 2+-
11 files changed, 54 insertions(+), 39 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -108,7 +108,7 @@ if ${use_color} ; then if [[ ${EUID} == 0 ]] ; then PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] ' else - PS1="${BCyan}\u${BGreen}@${BCyan}\h${BWhite} \W${BGreen} \$\[\033[00m\] " + PS1="\[${BYellow}\]\u\[${BGreen}\]@\[${BCyan}\]\h\[${BWhite}\] \[${BRed}\]\W\[${BWhite}\]\[${BGreen}\] \[${BCyan}\]->\[${NC}\] " fi alias ls='ls --color=auto' @@ -140,6 +140,7 @@ alias mutt="neomutt" alias cfb="vim $HOME/.bashrc" alias sb="source $HOME/.bashrc" alias dot="cd $HOME/dotfiles" +alias vim="nvim" # Lol I forget typing nvim xhost +local:root > /dev/null 2>&1 diff --git a/.config/i3/config b/.config/i3/config @@ -20,7 +20,7 @@ set $brow qutebrowser set $fm terminator -e "lf && exit" # Music Player -set $music terminator -e "ncmpcpp --port 6601 && exit" +set $music terminator -e "ncmpcpp && exit" ################################### @@ -174,6 +174,9 @@ exec --no-startup-id xautolock -time 10 -locker 'i3lock-fancy' bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% && mpv /usr/share/sounds/LinuxMint/stereo/volume.oga #increase sound volume bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% && mpv /usr/share/sounds/LinuxMint/stereo/volume.oga #decrease sound volume bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle && mpv /usr/share/sounds/LinuxMint/stereo/volume.oga # mute sound +bindsym XF86AudioPlay exec --no-startup-id $HOME/bin/mpctoggle +bindsym XF86AudioNext exec --no-startup-id mpc next +bindsym XF86AudioPrev exec --no-startup-id mpc prev ########### Nightmode Commands ######### @@ -243,6 +246,8 @@ bindsym $altmod+u exec --no-startup-id $HOME/bin/dmenuumount # Disable (if override exists for nightmode and set background exec --no-startup-id $HOME/bin/nightmodetoggle disable +# Numlock On +exec --no-startup-id numlockx on # Start Compositor exec --no-startup-id compton diff --git a/.config/polybar/config b/.config/polybar/config @@ -209,9 +209,9 @@ content = " Navigate" [module/mlaunch] type = custom/text -click-right = terminator -e "ncmpcpp --port 6601 && exit" -click-left = terminator -e "ncmpcpp --port 6601 && exit" -click-middle = terminator -e "ncmpcpp --port 6601 && exit" +click-right = terminator -e "ncmpcpp && exit" +click-left = terminator -e "ncmpcpp && exit" +click-middle = terminator -e "ncmpcpp && exit" content =  [module/i3] @@ -297,7 +297,7 @@ type = internal/mpd format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> <label-time> interval = 0.5 host = localhost -port = 6601 +port = 6600 label-time = " %elapsed% / %total%" label-song = %artist% - %title% @@ -380,9 +380,9 @@ format-disconnected = type = custom/text content =  -click-left = notify-send "Weekly Summary" "$(calcurse -Q --days 7)" -click-middle = notify-send "Weekly Summary" "$(calcurse -Q --days 7)" -click-right = notify-send "Weekly Summary" "$(calcurse -Q --days 7)" +click-left = notify-send "Weekly Summary" "$(echo -e Today: && date && printf "\nTODO:\n" && calcurse -Q --days 10 --filter-uncompleted | sed "/to do:/d" -)" +click-middle = notify-send "Weekly Summary" "$(echo -e Today: && date && printf "\nTODO:\n" && calcurse -Q --days 10 --filter-uncompleted | sed "/to do:/d" -)" +click-right = notify-send "Weekly Summary" "$(echo -e Today: && date && printf "\nTODO:\n" && calcurse -Q --days 10 --filter-uncompleted | sed "/to do:/d" -)" [module/mailcheck] ; You should probably delete this @@ -477,32 +477,14 @@ animation-discharging-foreground = ${colors.foreground-alt} animation-discharging-framerate = 750 [module/powermenu] -type = custom/menu - -expand-right = true - -format-spacing = 1 - -label-open =  -label-open-font = 4 -label-open-foreground = ${root.power} -label-close = Cancel -label-close-foreground = ${root.power} -label-separator = | -label-separator-foreground = ${root.foreground} - -menu-0-0 = Reboot -menu-0-0-exec = menu-open-1 -menu-0-1 = Halt -menu-0-1-exec = menu-open-2 -menu-0-2 = Suspend -menu-0-2-exec = systemctl suspend +type = custom/text -menu-1-0 = Confirm Reboot -menu-1-0-exec = reboot +content =  +content-foreground = ${root.power} -menu-2-0 = Confirm Halt -menu-2-0-exec = shutdown -P now +click-left = $HOME/bin/sdmenu +click-middle = $HOME/bin/sdmenu +click-right = $HOME/bin/sdmenu [settings] screenchange-reload = true diff --git a/.config/terminator/config b/.config/terminator/config @@ -16,16 +16,20 @@ [plugins] [profiles] [[default]] - background_color = "#282e44" - background_darkness = 0.76 + background_color = "#282a36" + background_darkness = 0.92 background_type = transparent cursor_color = "#aaaaaa" + cursor_shape = ibeam scrollback_infinite = True scrollbar_position = hidden show_titlebar = False + use_system_font = False [[notintransparentmood]] - background_color = "#282e44" + background_color = "#282a36" cursor_color = "#aaaaaa" + cursor_shape = ibeam scrollback_infinite = True scrollbar_position = hidden show_titlebar = False + use_system_font = False diff --git a/bin/cfi b/bin/cfi @@ -3,4 +3,5 @@ echo $HOME/.config/i3/config | entr -p -n /usr/bin/i3 restart >/dev/null 2>&1 & vim $HOME/.config/i3/config sleep 1 +[ -z "$(pidof entr)" ] && exit kill $(pidof entr) diff --git a/bin/cfp b/bin/cfp @@ -3,4 +3,5 @@ echo $HOME/.config/polybar/config | entr -p -n /home/cem/bin/polyrestart >/dev/null 2>&1 & vim $HOME/.config/polybar/config sleep 1 +[ -z "$(pidof entr)" ] && exit kill $(pidof entr) diff --git a/bin/dwatch b/bin/dwatch @@ -1,6 +1,6 @@ #!/bin/sh -VID=$(ls $HOME/.watchlater | dmenu -p "What will you watch") +VID=$(ls $HOME/.watchlater | dmenu -l 30 -p "What will you watch") if [ "$VID" = "" ] then exit diff --git a/bin/mpctoggle b/bin/mpctoggle @@ -0,0 +1,11 @@ +#!/bin/sh + +answer="$(mpc)" +case $answer in + *playing*) + mpc pause + ;; + *paused*) + mpc play + ;; +esac diff --git a/bin/sdmenu b/bin/sdmenu @@ -0,0 +1,10 @@ +#!/bin/bash + +choice="$(printf "Suspend\nShutdown\nReboot" | dmenu -l 3 -p "Power Menu")" + +case $choice in + Shutdown) $HOME/bin/yousure ;; + Suspend) systemctl suspend ;; + Reboot) $HOME/bin/yousurereb ;; + *) exit ;; +esac diff --git a/bin/todo b/bin/todo @@ -9,5 +9,5 @@ then echo "Nothing to do!" fi else - calcurse -Q | sed 1d - | head -n 1 - | cut -c 4- + calcurse -t | sed 1d - | head -n 1 - | cut -c 4- fi diff --git a/bin/wallset b/bin/wallset @@ -7,7 +7,7 @@ then else export nightmode="Morning" fi -export selection=$(ls $HOME/Pictures/Wallpapers/$nightmode | grep -i .jpg | dmenu) +export selection=$(ls $HOME/Pictures/Wallpapers/$nightmode | grep -i .jpg | dmenu -l 10) if [$selection = ""] then exit