summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-03-24 12:23:17 +0000
committerShubham Saini <shubham6405@gmail.com>2020-03-24 12:23:17 +0000
commit064fb93965974ed826a7e9cdf854e9c5ec935342 (patch)
tree75789e39783d7def078085b96d71d55e20555cbd
parentafb012025a944617e912c20e98190f8538d78262 (diff)
gentooman
-rwxr-xr-xbin/.local/bin/fetch91
-rwxr-xr-xbin/.local/bin/shut11
-rwxr-xr-xbspwm/.config/bspwm/bspwmrc11
-rw-r--r--polybar/.config/polybar/config48
-rw-r--r--sxhkd/.config/sxhkd/sxhkdrc15
-rw-r--r--x/.Xresources2
-rw-r--r--x/.xinitrc2
-rw-r--r--zsh/.zshrc26
8 files changed, 96 insertions, 110 deletions
diff --git a/bin/.local/bin/fetch b/bin/.local/bin/fetch
index 609850c..93d7fc7 100755
--- a/bin/.local/bin/fetch
+++ b/bin/.local/bin/fetch
@@ -1,63 +1,76 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# ufetch-arch - tiny system info for arch 3# ufetch-gentoo - tiny system info for gentoo
4 4
5## INFO 5## INFO
6 6
7# user is already defined 7# user is already defined
8host="$(hostname)" 8host="$(hostname)"
9os='Arch Linux' 9os='Gentoo Linux'
10kernel="$(uname -sr)" 10kernel="$(uname -sr)"
11uptime="$(uptime -p | sed 's/up //')" 11uptime="$(uptime -p | sed 's/up //')"
12packages="$(pacman -Q | wc -l)" 12packages="$(ls -d /var/db/pkg/*/* | wc -l)"
13shell="$(basename ${SHELL})" 13shell="$(basename "$SHELL")"
14 14
15if [ -z "${WM}" ]; then 15## UI DETECTION
16 if [ "${XDG_CURRENT_DESKTOP}" ]; then 16
17 envtype='DE' 17if [ -n "${DE}" ]; then
18 WM="${XDG_CURRENT_DESKTOP}" 18 ui="${DE}"
19 elif [ "${DESKTOP_SESSION}" ]; then 19 uitype='DE'
20 envtype='DE' 20elif [ -n "${WM}" ]; then
21 WM="${DESKTOP_SESSION}" 21 ui="${WM}"
22 else 22 uitype='WM'
23 envtype='WM' 23elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then
24 WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)" 24 ui="${XDG_CURRENT_DESKTOP}"
25 fi 25 uitype='DE'
26elif [ -n "${DESKTOP_SESSION}" ]; then
27 ui="${DESKTOP_SESSION}"
28 uitype='DE'
29elif [ -f "${HOME}/.xinitrc" ]; then
30 ui="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
31 uitype='WM'
32elif [ -f "${HOME}/.xsession" ]; then
33 ui="$(tail -n 1 "${HOME}/.xsession" | cut -d ' ' -f 2)"
34 uitype='WM'
26else 35else
27 envtype='WM' 36 ui='unknown'
37 uitype='UI'
28fi 38fi
29 39
30## DEFINE COLORS 40## DEFINE COLORS
31 41
32# probably don't change these 42# probably don't change these
33bold="$(tput bold)" 43if [ -x "$(command -v tput)" ]; then
34black="$(tput setaf 0)" 44 bold="$(tput bold)"
35red="$(tput setaf 1)" 45 black="$(tput setaf 0)"
36green="$(tput setaf 2)" 46 red="$(tput setaf 1)"
37yellow="$(tput setaf 3)" 47 green="$(tput setaf 2)"
38blue="$(tput setaf 4)" 48 yellow="$(tput setaf 3)"
39magenta="$(tput setaf 5)" 49 blue="$(tput setaf 4)"
40cyan="$(tput setaf 6)" 50 magenta="$(tput setaf 5)"
41white="$(tput setaf 7)" 51 cyan="$(tput setaf 6)"
42reset="$(tput sgr0)" 52 white="$(tput setaf 7)"
53 reset="$(tput sgr0)"
54fi
43 55
44# you can change these 56# you can change these
45lc="${reset}${bold}${cyan}" # labels 57lc="${reset}${bold}${magenta}" # labels
46nc="${reset}${bold}${cyan}" # user and hostname 58nc="${reset}${bold}${magenta}" # user and hostname
47ic="${reset}${bold}${white}" # info 59ic="${reset}" # info
48c0="${reset}${bold}${cyan}" # first color 60c0="${reset}${bold}${magenta}" # first color
49c1="${reset}${cyan}" # second color 61c1="${reset}${magenta}" # second color
50 62
51## OUTPUT 63## OUTPUT
52 64
53cat <<EOF 65cat <<EOF
54 66
55${c0} /\ ${nc}${USER}${ic}@${nc}${host}${reset} 67${c0} .-----. ${nc}${USER}${ic}@${nc}${host}${reset}
56${c0} /^^\ ${lc}OS: ${ic}${os}${reset} 68${c0} .\` _ \`. ${lc}OS: ${ic}${os}${reset}
57${c0} /\ \ ${lc}KERNEL: ${ic}${kernel}${reset} 69${c0} \`. (${c1}_) ${c0}\`. ${lc}KERNEL: ${ic}${kernel}${reset}
58${c0} / ${c1}__ \ ${lc}UPTIME: ${ic}${uptime}${reset} 70${c0} \`${c1}. / ${lc}UPTIME: ${ic}${uptime}${reset}
59${c1} / ( ) \ ${lc}PACKAGES: ${ic}${packages}${reset} 71${c1} .\` .\` ${lc}PACKAGES: ${ic}${packages}${reset}
60${c1} / __| |__\\\\ ${lc}SHELL: ${ic}${shell}${reset} 72${c1} / .\` ${lc}SHELL: ${ic}${shell}${reset}
61${c1} /// \\\\\ ${lc}${envtype}: ${ic}${WM}${reset} 73${c1} \____.-\` ${lc}${uitype}: ${ic}${ui}${reset}
62 74
63EOF 75EOF
76
diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut
new file mode 100755
index 0000000..dc391e1
--- /dev/null
+++ b/bin/.local/bin/shut
@@ -0,0 +1,11 @@
1#!/bin/bash
2
3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Say goodbye")
4
5case $RET in
6 shutdown) sudo poweroff ;;
7 reboot) sudo reboot ;;
8 sleep) lock & sudo sh -c "echo -n mem > /sys/power/state" ;;
9 lock) lock ;;
10 *) ;;
11esac
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc
index 54f2aa6..8320458 100755
--- a/bspwm/.config/bspwm/bspwmrc
+++ b/bspwm/.config/bspwm/bspwmrc
@@ -3,14 +3,13 @@
3sxhkd & 3sxhkd &
4dunst & 4dunst &
5unclutter & 5unclutter &
6xset b off &
6mpDris2 & 7mpDris2 &
7xss-lock -- /home/fd0e/.local/bin/lock & 8#xss-lock -- /home/fd0e/.local/bin/lock &
8/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & 9compton &
9compton --config ~/.config/compton.conf &
10~/scrypts/bat_check.sh & 10~/scrypts/bat_check.sh &
11redshift -l 13.082680:80.270718 & 11redshift -l 13.082680:80.270718 &
12xbacklight -set 30 & 12~/.fehbg &
13feh --bg-fill ~/Pictures/bech.jpg &
14urxvtd & 13urxvtd &
15 14
16bspc monitor -d term web music files code virt chat game IX X 15bspc monitor -d term web music files code virt chat game IX X
@@ -23,6 +22,6 @@ bspc config borderless_monocle true
23bspc config gapless_monocle true 22bspc config gapless_monocle true
24 23
25bspc rule -a firefox desktop='^2' 24bspc rule -a firefox desktop='^2'
26bspc rule -a Pcmanfm desktop='^4' 25bspc rule -a Spacefm desktop='^4'
27 26
28$HOME/.config/polybar/launch.sh & 27$HOME/.config/polybar/launch.sh &
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config
index 8260bc9..fa869f3 100644
--- a/polybar/.config/polybar/config
+++ b/polybar/.config/polybar/config
@@ -31,11 +31,10 @@ padding-left = 2
31padding-right = 2 31padding-right = 2
32module-margin-left = 1.5 32module-margin-left = 1.5
33module-margin-right = 1.5 33module-margin-right = 1.5
34font-0 = Hermit:style=medium:pixelsize=10;1 34font-0 = Hermit:style=medium:size=9;1
35font-1 = FontAwesome:style=Regular:size=10;1 35modules-left = alsa battery date time bspwm
36modules-left = pulseaudio battery date time bspwm
37modules-center = 36modules-center =
38modules-right = spotify mpd 37;modules-right = spotify mpd
39tray-position = right 38tray-position = right
40cursor-click = pointer 39cursor-click = pointer
41cursor-scroll = ns-resize 40cursor-scroll = ns-resize
@@ -123,26 +122,18 @@ battery = BAT0
123adapter = ADP1 122adapter = ADP1
124poll-interval = 1 123poll-interval = 1
125full-at = 98 124full-at = 98
126label-discharging = %percentage%% 125label-discharging = -bat %percentage%%
127label-charging = %percentage%% 126label-charging = +bat %percentage%%
128label-full = %percentage%% 127label-full = ^bat %percentage%%
129format-discharging = <ramp-capacity> <label-discharging> 128format-discharging = <label-discharging>
130format-full = <ramp-capacity> <label-full> 129format-full = <label-full>
131format-charging =  <label-charging> 130format-charging = <label-charging>
132ramp-capacity-0 =  131
133ramp-capacity-1 =  132[module/alsa]
134ramp-capacity-2 =  133type = internal/alsa
135ramp-capacity-3 =  134format-volume = vol <label-volume>
136ramp-capacity-4 = 
137
138[module/pulseaudio]
139type = internal/pulseaudio
140format-volume = <ramp-volume> <label-volume>
141label-volume = %percentage%% 135label-volume = %percentage%%
142label-muted = 婢 muted 136label-muted = muted
143ramp-volume-0 = 
144ramp-volume-1 = 
145ramp-volume-2 = 
146 137
147[module/spotify] 138[module/spotify]
148type = custom/script 139type = custom/script
@@ -187,14 +178,3 @@ bar-progress-width = 10
187bar-progress-indicator = | 178bar-progress-indicator = |
188bar-progress-fill = ─ 179bar-progress-fill = ─
189bar-progress-empty = ─ 180bar-progress-empty = ─
190
191[module/backlight]
192type = internal/backlight
193; Use the following command to list available cards:
194; $ ls -1 /sys/class/backlight/
195card = intel_backlight
196format = <ramp> <label>
197label = %percentage%%
198ramp-0 = 
199ramp-1 = 
200ramp-2 = 
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
index b7e3d8a..22fe28e 100644
--- a/sxhkd/.config/sxhkd/sxhkdrc
+++ b/sxhkd/.config/sxhkd/sxhkdrc
@@ -7,8 +7,7 @@ super + shift + Return
7 7
8# program launcher 8# program launcher
9super + @space 9super + @space
10 rofi -show drun -show-icons 10 dmenu_run -l 10
11
12super + c 11super + c
13 rofi -show calc -modi calc -no-show-match -no-sort -no-history 12 rofi -show calc -modi calc -no-show-match -no-sort -no-history
14super + i 13super + i
@@ -30,15 +29,15 @@ super + Escape
30super + shift + w 29super + shift + w
31 firefox 30 firefox
32control + alt + l 31control + alt + l
33 /home/fd0e/.local/bin/lock 32 lock
34super + shift + f 33super + shift + f
35 pcmanfm 34 spacefm
36Print 35Print
37 scrot 36 scrot
38ctrl + Print 37ctrl + Print
39 scrot 38 scrot
40super + x 39super + x
41 ~/.config/rofi/rofi-power.sh 40 shut
42super + shift + p 41super + shift + p
43 rofi-pass 42 rofi-pass
44# 43#
@@ -162,5 +161,7 @@ XF86Audio{Play,Next,Prev}
162 playerctl {play-pause,next,previous} 161 playerctl {play-pause,next,previous}
163 162
164#light 163#light
165XF86MonBrightness{Down,Up} 164XF86MonBrightnessDown
166 xbacklight {-dec 3,-inc 3} 165 sudo sh -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done'
166XF86MonBrightnessUp
167 sudo sh -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done'
diff --git a/x/.Xresources b/x/.Xresources
index 71e4fb8..26d3024 100644
--- a/x/.Xresources
+++ b/x/.Xresources
@@ -16,7 +16,7 @@ URxvt.scrollTtyKeypress: true
16URxvt.font: xft:Hermit:size=9:style=medium:antialias=true 16URxvt.font: xft:Hermit:size=9:style=medium:antialias=true
17!URxvt.boldFont: xft:Hermit:size=9:style=Bold:antialias=true 17!URxvt.boldFont: xft:Hermit:size=9:style=Bold:antialias=true
18!URxvt.italicFont: xft:Hermit:size=9:style=Italic:antialias=true 18!URxvt.italicFont: xft:Hermit:size=9:style=Italic:antialias=true
19URxvt.letterSpace: 1 19!URxvt.letterSpace: 1
20urxvt*termName: rxvt 20urxvt*termName: rxvt
21urxvt*scrollBar: false 21urxvt*scrollBar: false
22urxvt*matcher.button: 1 22urxvt*matcher.button: 1
diff --git a/x/.xinitrc b/x/.xinitrc
index 1da9231..13792ac 100644
--- a/x/.xinitrc
+++ b/x/.xinitrc
@@ -61,4 +61,4 @@ if [ "$2" = "nvidia" ]; then
61 xrandr --auto 61 xrandr --auto
62fi 62fi
63xsetroot -cursor_name left_ptr 63xsetroot -cursor_name left_ptr
64exec dbus-launch bspwm 64exec bspwm
diff --git a/zsh/.zshrc b/zsh/.zshrc
index bddd6dd..2dd7790 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -13,7 +13,7 @@ export XDG_CURRENT_DESKTOP=bspwm
13# load a random theme each time oh-my-zsh is loaded, in which case, 13# load a random theme each time oh-my-zsh is loaded, in which case,
14# to know which specific one was loaded, run: echo $RANDOM_THEME 14# to know which specific one was loaded, run: echo $RANDOM_THEME
15# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes 15# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
16ZSH_THEME="mh" 16ZSH_THEME="half-life"
17 17
18# Set list of themes to pick from when loading at random 18# Set list of themes to pick from when loading at random
19# Setting this variable when ZSH_THEME=random will cause zsh to load 19# Setting this variable when ZSH_THEME=random will cause zsh to load
@@ -73,7 +73,7 @@ ZSH_THEME="mh"
73# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 73# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
74# Example format: plugins=(rails git textmate ruby lighthouse) 74# Example format: plugins=(rails git textmate ruby lighthouse)
75# Add wisely, as too many plugins slow down shell startup. 75# Add wisely, as too many plugins slow down shell startup.
76plugins=(git sudo archlinux extract python common-aliases autojump fzf) 76plugins=(git sudo extract python common-aliases)
77 77
78source $ZSH/oh-my-zsh.sh 78source $ZSH/oh-my-zsh.sh
79 79
@@ -105,36 +105,18 @@ source $ZSH/oh-my-zsh.sh
105alias key="vim $HOME/.config/sxhkd/sxhkdrc" 105alias key="vim $HOME/.config/sxhkd/sxhkdrc"
106alias wm="vim ~/.config/bspwm/bspwmrc" 106alias wm="vim ~/.config/bspwm/bspwmrc"
107alias f="ranger" 107alias f="ranger"
108alias bb="cat /proc/acpi/bbswitch"
109alias nu="nmcli connection up " 108alias nu="nmcli connection up "
110alias nt="nmtui-connect"
111alias nd="nmcli connection down "
112alias pg="ping google.com"
113alias weather="curl wttr.in" 109alias weather="curl wttr.in"
114alias py="/bin/python" 110alias py="/bin/python"
115alias py2="/bin/python2" 111alias py2="/bin/python2"
112alias pg="ping google.com"
116alias pubip="curl ipinfo.io/ip" 113alias pubip="curl ipinfo.io/ip"
117alias mirror="sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist"
118alias k="pkill " 114alias k="pkill "
119alias m="ncmpcpp" 115alias m="ncmpcpp"
120alias vimrc="vim $HOME/.config/nvim/init.vim" 116alias vimrc="vim $HOME/.config/nvim/init.vim"
121alias poly="vim $HOME/.config/polybar/config" 117alias poly="vim $HOME/.config/polybar/config"
122alias z="zathura"
123alias v="/usr/bin/nvim" 118alias v="/usr/bin/nvim"
124alias vim="/usr/bin/nvim" 119alias vim="/usr/bin/nvim"
125alias sudo="sudo " 120alias sudo="sudo "
126 121
127source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh 122source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
128source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
129
130
131# Import colorscheme from 'wal' asynchronously
132# & # Run the process in the background.
133# ( ) # Hide shell job control messages.
134#(cat ~/.cache/wal/sequences &)
135
136# Alternative (blocks terminal for 0-3ms)
137#cat ~/.cache/wal/sequences
138
139# To add support for TTYs this line can be optionally added.
140#source ~/.cache/wal/colors-tty.sh