vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit ef25028e9ff99307b4f31be9a1a0c19d353842ec
Author: Cem Keylan <warc1998@gmail.com>
Date:   Tue, 21 May 2019 01:11:03 +0300

Initial Commit

Diffstat:
A.bashrc | 148+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/i3/config | 231+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/polybar/config | 425+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/terminator/config | 20++++++++++++++++++++
A.fehbg | 2++
AREADME.md | 10++++++++++
Abin/cfi | 6++++++
Abin/cfp | 6++++++
Abin/dotget | 10++++++++++
Abin/polyrestart | 7+++++++
Abin/todo | 8++++++++
Abin/todoadd | 7+++++++
Abin/todorm | 5+++++
13 files changed, 885 insertions(+), 0 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -0,0 +1,148 @@ +# +# ~/.bashrc +# + +[[ $- != *i* ]] && return + +colors() { + local fgc bgc vals seq0 + + printf "Color escapes are %s\n" '\e[${value};...;${value}m' + printf "Values 30..37 are \e[33mforeground colors\e[m\n" + printf "Values 40..47 are \e[43mbackground colors\e[m\n" + printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n" + + # foreground colors + for fgc in {30..37}; do + # background colors + for bgc in {40..47}; do + fgc=${fgc#37} # white + bgc=${bgc#40} # black + + vals="${fgc:+$fgc;}${bgc}" + vals=${vals%%;} + + seq0="${vals:+\e[${vals}m}" + printf " %-9s" "${seq0:-(default)}" + printf " ${seq0}TEXT\e[m" + printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m" + done + echo; echo + done +} + +[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion + +# Change the window title of X terminals +case ${TERM} in + xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) + PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' + ;; + screen*) + PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' + ;; +esac + +use_color=true + +# Set colorful PS1 only on colorful terminals. +# dircolors --print-database uses its own built-in database +# instead of using /etc/DIR_COLORS. Try to use the external file +# first to take advantage of user additions. Use internal bash +# globbing instead of external grep binary. +safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM +match_lhs="" +[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)" +[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)" +[[ -z ${match_lhs} ]] \ + && type -P dircolors >/dev/null \ + && match_lhs=$(dircolors --print-database) +[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true + +if ${use_color} ; then + # Enable colors for ls, etc. Prefer ~/.dir_colors #64489 + if type -P dircolors >/dev/null ; then + if [[ -f ~/.dir_colors ]] ; then + eval $(dircolors -b ~/.dir_colors) + elif [[ -f /etc/DIR_COLORS ]] ; then + eval $(dircolors -b /etc/DIR_COLORS) + fi + fi + + if [[ ${EUID} == 0 ]] ; then + PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] ' + else + PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] ' + fi + + alias ls='ls --color=auto' + alias grep='grep --colour=auto' + alias egrep='egrep --colour=auto' + alias fgrep='fgrep --colour=auto' +else + if [[ ${EUID} == 0 ]] ; then + # show root@ when we don't have colors + PS1='\u@\h \W \$ ' + else + PS1='\u@\h \w \$ ' + fi +fi + +unset use_color safe_term match_lhs sh + +alias cp="cp -i" # confirm before overwriting something +alias df='df -h' # human-readable sizes +alias free='free -m' # show sizes in MB +alias np='nano -w PKGBUILD' +alias more=less +alias ncmpcpp="ncmpcpp --port 6601" + +xhost +local:root > /dev/null 2>&1 + +complete -cf sudo + +# Bash won't get SIGWINCH if another process is in the foreground. +# Enable checkwinsize so that bash will check the terminal size when +# it regains control. #65623 +# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11) +shopt -s checkwinsize + +shopt -s expand_aliases + +# export QT_SELECT=4 + +# Enable history appending instead of overwriting. #139609 +shopt -s histappend + +# +# # ex - archive extractor +# # usage: ex <file> +ex () +{ + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xjf $1 ;; + *.tar.gz) tar xzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xf $1 ;; + *.tbz2) tar xjf $1 ;; + *.tgz) tar xzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1;; + *.7z) 7z x $1 ;; + *) echo "'$1' cannot be extracted via ex()" ;; + esac + else + echo "'$1' is not a valid file" + fi +} + +# better yaourt colors +export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35" +export PATH=/home/cem/.gem/ruby/2.6.0/bin/:$PATH + +# Personal Scripts +export PATH=/home/cem/bin/:$PATH +alias rm='rm -v' diff --git a/.config/i3/config b/.config/i3/config @@ -0,0 +1,231 @@ +# +# ____ _ __ _ +# / ___|___ _ __ ___ | |/ /___ _ _| | __ _ _ __ +#| | / _ \ '_ ` _ \ | ' // _ \ | | | |/ _` | '_ \ +#| |__| __/ | | | | | | . \ __/ |_| | | (_| | | | | +# \____\___|_| |_| |_| |_|\_\___|\__, |_|\__,_|_| |_| +# |___/ +# +# i3 config file (v4) + +######## Default Programs ######### + +# Terminal +set $term terminator + +# First Browser +set $fbrow firefox + +# Secondary Browser +set $sbrow qutebrowser + +# File Manager +set $fm nemo + +################################### + +# Mod will be ALT for me +set $mod Mod1 + +# Configure i3-gaps +gaps inner 15 +gaps outer 15 +for_window [class=".*"] border pixel 2 + +# Font +font pango:monospace 11 + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# kill focused window +bindsym $mod+Shift+q kill + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+b split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym h resize shrink width 10 px or 10 ppt + bindsym j resize grow height 10 px or 10 ppt + bindsym k resize shrink height 10 px or 10 ppt + bindsym l resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + + +# Auto Locking +exec --no-startup-id xautolock -time 10 -locker 'i3lock -i /home/cem/background2.png' + +exec_always --no-startup-id /home/cem/bin/polyrestart +# Pulse Audio controls +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 + + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness + + + + +######## Application Shortcuts ######### + +# Launch File Manager +bindsym $mod+n exec $fm + +# Launch First Browser (Web Browser) +bindsym $mod+i exec $fbrow + +# Launch Secondary Browser +bindsym $mod+o exec $sbrow + +# Launch Terminal +bindsym $mod+Return exec $term + +# Launch Console Music Player +bindsym $mod+m exec --no-startup-id $term -e "ncmpcpp --port 6601 && exit" + +# Application Launcher +bindsym $mod+d exec --no-startup-id rofi -show drun -theme Arc-Dark + +# Command Launcher +bindsym $mod+u exec --no-startup-id rofi -show run -theme Arc-Dark + +######################################## + + +########### Startup commands ########### + +# Set background +exec --no-startup-id /home/cem/.fehbg + +# Start Nextcloud Sync Client +exec --no-startup-id nextcloud + +# Start Compositor +exec --no-startup-id compton + +# Start Music Player Daemon +exec --no-startup-id mpd /home/cem/.config/mpd/mpd.conf + +# Launch Clip Manager +exec --no-startup-id clipit + +# Start Network Manager Applet +exec --no-startup-id nm-applet + +# Launch Policy Kit Daemon +exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 diff --git a/.config/polybar/config b/.config/polybar/config @@ -0,0 +1,425 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/jaagr/polybar +; +; The README contains alot of information +; +;========================================================== + +[colors] +background = #222 +background-alt = #444 +foreground = #fff +foreground-alt = #fff +primary = #1a94ff +secondary = #e60053 +alert = #bd2c40 +barback = #aa222222 + +[bar/top] +;monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 27 +;offset-x = 1% +;offset-y = 1% +radius = 0.0 +fixed-center = true +background = ${colors.barback} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=10;2 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1 +font-3 = Material Icons:style=Regular:size=13;4 + +modules-left = rofi mlaunch mpd +modules-center = title +modules-right = backlight pulseaudio wlan eth battery time powermenu + +tray-position = none + +cursor-click = pointer +cursor-scroll = ns-resize + +[bar/bottom] +;monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 27 +;offset-x = 1% +;offset-y = 1% +radius = 0.0 +fixed-center = false +background = ${colors.barback} +foreground = ${colors.foreground} +bottom = true + +line-size = 3 +line-color = #f00 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=10;2 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1 +font-3 = Material Icons:style=Regular:size=13;4 + +modules-left = i3 bspwm +modules-center = +modules-right = xkeyboard filesystem rootfs memory cpu + +tray-position = right +tray-padding = 2 +;tray-background = #0063ff + +;wm-restack = bspwm +;wm-restack = i3 + +;override-redirect = true + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/title] +type = internal/xwindow + +[module/bspwm] +type = internal/bspwm + +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-padding = 2 + +label-urgent = %index%! +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %index% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +; Separator in between workspaces +; label-separator = | + +[module/rofi] +type = custom/text + +click-left = rofi -show drun -theme Arc-Dark +click-middle = rofi -show drun -theme Arc-Dark +click-right = rofi -show drun -theme Arc-Dark +content = " " +content-suffix = " Navigate" +content-suffix-foreground = #fff +content-foreground = ${colors.primary} + +[module/mlaunch] +type = custom/text + +click-right = ario +click-left = ario +click-middle = ario +content =  +content-foreground = #fff + +[module/i3] +type = internal/i3 +format = <label-state> <label-mode> +index-sort = true +wrapping-scroll = false + +; Only show workspaces on the same output as the bar +;pin-workspaces = true + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.primary} + +; focused = Active workspace on focused monitor +label-focused = %index% +label-focused-background = ${colors.primary} +;label-focused-background = ${module/bspwm.label-focused-background} +label-focused-underline = ${module/bspwm.label-focused-underline} +label-focused-padding = ${module/bspwm.label-focused-padding} + +; unfocused = Inactive workspace on any monitor +label-unfocused = %index% +label-unfocused-padding = ${module/bspwm.label-occupied-padding} +label-unfocused-underline = ${colors.primary} + +; visible = Active workspace on unfocused monitor +label-visible = %index% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %index% +label-urgent-background = ${module/bspwm.label-urgent-background} +label-urgent-padding = ${module/bspwm.label-urgent-padding} + +; Separator in between workspaces +; label-separator = | + + +[module/xwindow] +type = internal/xwindow +label = %title:0:30:...% + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +format-prefix = " " +format-prefix-foreground = ${colors.foreground-alt} + +label-layout = %layout% | + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-background = ${colors.secondary} +label-indicator-underline = ${colors.secondary} + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = /home + +label-mounted = /home : %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.alert} + +[module/rootfs] +type = internal/fs +interval = 25 +mount-0 = / +label-mounted = / : %percentage_used%% | +label-unmounted = %mountpoint% not unmounted +label-unmounted-foreground = ${colors.alert} + +[module/mpd] +type = internal/mpd +format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> <label-time> +interval = 0.5 +host = localhost +port = 6601 + +label-time = " %elapsed% / %total%" +label-song = %artist% - %title% +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  +icon-prev-foreground = #00aaff +icon-next-foreground = #00aaff +icon-stop-foreground = #ff0000 +icon-play-foreground = #00aa00 +icon-pause-foreground = #ecec00 + +format-offline = <label-offline> +label-offline = + +label-song-maxlen = 50 +label-song-ellipsis = true + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "CPU " +format-prefix-foreground = ${colors.foreground-alt} +format-underline = ${colors.primary} +label = %percentage:2%% + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = "RAM " +format-prefix-foreground = ${colors.foreground-alt} +format-underline = ${colors.primary} +label = %percentage_used%% + +[module/wlan] +type = internal/network +interface = wlo1 +interval = 3.0 + +format-connected = <label-connected> +label-connected =  %essid% %local_ip% + +format-disconnected = <label-disconnected> +;format-disconnected-underline = ${self.format-connected-underline} +label-disconnected =  disconnected + +ramp-signal-0 =  +ramp-signal-1 =  +ramp-signal-2 =  +ramp-signal-3 =  +ramp-signal-4 =  +ramp-signal-foreground = ${colors.primary} + +[module/eth] +type = internal/network +interface = eno1 +interval = 3.0 + +format-connected-underline = ${colors.primary} +format-connected-prefix =  +format-connected-prefix-foreground = ${colors.primary} +label-connected = %local_ip% +label-connected-foreground = ${colors.foreground-alt} + +format-disconnected = +;format-disconnected = <label-disconnected> +;format-disconnected-underline = ${self.format-connected-underline} +;label-disconnected = %ifname% disconnected +;label-disconnected-foreground = ${colors.foreground-alt} + +[module/time] +type = internal/date +interval = 1 + +date = " %A" +date-alt =" %e/%B/%Y" + +time = " %H:%M" +time-alt = " %H:%M:%S" + +label = %date% %time% + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume = <ramp-volume> <label-volume> +label-volume = %percentage%% +label-volume-foreground = ${colors.foreground} + +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-foreground = ${colors.primary} + +label-muted =  +label-muted-foreground = ${colors.primary} + +[module/backlight] +type = internal/backlight +card = intel_backlight + +format = <ramp> <label> +label = %percentage%% + +ramp-3 =  +ramp-2 =  +ramp-1 =  +ramp-0 =  +ramp-foreground = ${colors.primary} + +[module/battery] +type = internal/battery +battery = BAT0 +adapter = ADP1 +full-at = 98 + +format-charging =  <label-charging> +format-charging-underline = ${colors.primary} + +format-discharging = <ramp-capacity> <label-discharging> + +format-full-prefix = " " +format-full-prefix-foreground = ${colors.primary} +format-full-underline = ${colors.primary} + +ramp-capacity-0 =  +ramp-capacity-1 =  +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-3-foreground = ${colors.primary} +ramp-capacity-1-foreground = #ffaa00 +ramp-capacity-0-foreground = #ff383b + +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-foreground = ${colors.primary} +animation-charging-framerate = 750 + +animation-discharging-0 =  +animation-discharging-1 =  +animation-discharging-2 =  +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 = ${colors.primary} +label-close = Cancel +label-close-foreground = ${colors.primary} +label-separator = | +label-separator-foreground = ${colors.foreground-alt} + +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 + +menu-1-0 = Confirm Reboot +menu-1-0-exec = reboot + +menu-2-0 = Confirm Halt +menu-2-0-exec = shutdown -P now + +[settings] +screenchange-reload = true +;compositing-background = xor +;compositing-background = screen +;compositing-foreground = source +;compositing-border = over +;pseudo-transparency = false + +[global/wm] +margin-top = 5 +margin-bottom = 5 + +; vim:ft=dosini diff --git a/.config/terminator/config b/.config/terminator/config @@ -0,0 +1,20 @@ +[global_config] +[keybindings] +[layouts] + [[default]] + [[[child1]]] + parent = window0 + profile = default + type = Terminal + [[[window0]]] + parent = "" + type = Window +[plugins] +[profiles] + [[default]] + background_darkness = 0.72 + background_type = transparent + cursor_color = "#aaaaaa" + scrollback_infinite = True + scrollbar_position = hidden + show_titlebar = False diff --git a/.fehbg b/.fehbg @@ -0,0 +1,2 @@ +#!/bin/sh +feh --bg-fill '/home/cem/Pictures/ben-klea-1518594-unsplash.jpg' diff --git a/README.md b/README.md @@ -0,0 +1,10 @@ +# Dotfiles + +These are my dotfiles which include my, + +* i3 Configuration +* Polybar Configuration +* Bashrc +* Custom Scripts + +More to be added soon diff --git a/bin/cfi b/bin/cfi @@ -0,0 +1,6 @@ +#!/bin/bash + +echo $HOME/.config/i3/config | entr -p -n /usr/bin/i3 restart &>/dev/null & +vim $HOME/.config/i3/config +sleep 0.5 +kill $(pidof entr) diff --git a/bin/cfp b/bin/cfp @@ -0,0 +1,6 @@ +#!/bin/bash + +echo $HOME/.config/polybar/config | entr -p -n /home/cem/bin/polyrestart &>/dev/null & +vim $HOME/.config/polybar/config +sleep 0.5 +kill $(pidof entr) diff --git a/bin/dotget b/bin/dotget @@ -0,0 +1,10 @@ +#!/bin/bash + +cp -u -v $HOME/.config/i3/config $HOME/dotfiles/.config/i3/config +cp -u -v $HOME/.config/polybar/config $HOME/dotfiles/.config/polybar/config + +cp -u -r -v $HOME/bin $HOME/dotfiles/bin +cp -u -v $HOME/.bashrc $HOME/dotfiles/.bashrc +cp -u -v $HOME/.fehbg $HOME/dotfiles/.fehbg + +cp -u -v $HOME/.config/terminator/config $HOME/dotfiles/.config/terminator/config diff --git a/bin/polyrestart b/bin/polyrestart @@ -0,0 +1,7 @@ +#!/bin/sh + +kill $(pidof polybar) +sleep 0.5 +polybar -q top &>/dev/null & +sleep 0.5 +polybar -q bottom &>/dev/null & diff --git a/bin/todo b/bin/todo @@ -0,0 +1,8 @@ +#!/bin/bash + +if [[ $(cat $HOME/todo.txt) == "" ]] +then + echo "Nothing to do!" +else + echo $(head -n 1 $HOME/todo.txt) +fi diff --git a/bin/todoadd b/bin/todoadd @@ -0,0 +1,7 @@ +#!/bin/bash + +# Add to todo.txt file + +echo $1 | tee -a $HOME/todo.txt + + diff --git a/bin/todorm b/bin/todorm @@ -0,0 +1,5 @@ +#!/bin/bash + +# Removes the first line of todo.txt + +tail -n +2 $HOME/todo.txt > $HOME/todo.txt.tmp && mv $HOME/todo.txt.tmp $HOME/todo.txt