diff options
-rwxr-xr-x | bin/.local/bin/fetch | 91 | ||||
-rwxr-xr-x | bin/.local/bin/shut | 11 | ||||
-rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 11 | ||||
-rw-r--r-- | polybar/.config/polybar/config | 48 | ||||
-rw-r--r-- | sxhkd/.config/sxhkd/sxhkdrc | 15 | ||||
-rw-r--r-- | x/.Xresources | 2 | ||||
-rw-r--r-- | x/.xinitrc | 2 | ||||
-rw-r--r-- | zsh/.zshrc | 26 |
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 |
8 | host="$(hostname)" | 8 | host="$(hostname)" |
9 | os='Arch Linux' | 9 | os='Gentoo Linux' |
10 | kernel="$(uname -sr)" | 10 | kernel="$(uname -sr)" |
11 | uptime="$(uptime -p | sed 's/up //')" | 11 | uptime="$(uptime -p | sed 's/up //')" |
12 | packages="$(pacman -Q | wc -l)" | 12 | packages="$(ls -d /var/db/pkg/*/* | wc -l)" |
13 | shell="$(basename ${SHELL})" | 13 | shell="$(basename "$SHELL")" |
14 | 14 | ||
15 | if [ -z "${WM}" ]; then | 15 | ## UI DETECTION |
16 | if [ "${XDG_CURRENT_DESKTOP}" ]; then | 16 | |
17 | envtype='DE' | 17 | if [ -n "${DE}" ]; then |
18 | WM="${XDG_CURRENT_DESKTOP}" | 18 | ui="${DE}" |
19 | elif [ "${DESKTOP_SESSION}" ]; then | 19 | uitype='DE' |
20 | envtype='DE' | 20 | elif [ -n "${WM}" ]; then |
21 | WM="${DESKTOP_SESSION}" | 21 | ui="${WM}" |
22 | else | 22 | uitype='WM' |
23 | envtype='WM' | 23 | elif [ -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' |
26 | elif [ -n "${DESKTOP_SESSION}" ]; then | ||
27 | ui="${DESKTOP_SESSION}" | ||
28 | uitype='DE' | ||
29 | elif [ -f "${HOME}/.xinitrc" ]; then | ||
30 | ui="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)" | ||
31 | uitype='WM' | ||
32 | elif [ -f "${HOME}/.xsession" ]; then | ||
33 | ui="$(tail -n 1 "${HOME}/.xsession" | cut -d ' ' -f 2)" | ||
34 | uitype='WM' | ||
26 | else | 35 | else |
27 | envtype='WM' | 36 | ui='unknown' |
37 | uitype='UI' | ||
28 | fi | 38 | fi |
29 | 39 | ||
30 | ## DEFINE COLORS | 40 | ## DEFINE COLORS |
31 | 41 | ||
32 | # probably don't change these | 42 | # probably don't change these |
33 | bold="$(tput bold)" | 43 | if [ -x "$(command -v tput)" ]; then |
34 | black="$(tput setaf 0)" | 44 | bold="$(tput bold)" |
35 | red="$(tput setaf 1)" | 45 | black="$(tput setaf 0)" |
36 | green="$(tput setaf 2)" | 46 | red="$(tput setaf 1)" |
37 | yellow="$(tput setaf 3)" | 47 | green="$(tput setaf 2)" |
38 | blue="$(tput setaf 4)" | 48 | yellow="$(tput setaf 3)" |
39 | magenta="$(tput setaf 5)" | 49 | blue="$(tput setaf 4)" |
40 | cyan="$(tput setaf 6)" | 50 | magenta="$(tput setaf 5)" |
41 | white="$(tput setaf 7)" | 51 | cyan="$(tput setaf 6)" |
42 | reset="$(tput sgr0)" | 52 | white="$(tput setaf 7)" |
53 | reset="$(tput sgr0)" | ||
54 | fi | ||
43 | 55 | ||
44 | # you can change these | 56 | # you can change these |
45 | lc="${reset}${bold}${cyan}" # labels | 57 | lc="${reset}${bold}${magenta}" # labels |
46 | nc="${reset}${bold}${cyan}" # user and hostname | 58 | nc="${reset}${bold}${magenta}" # user and hostname |
47 | ic="${reset}${bold}${white}" # info | 59 | ic="${reset}" # info |
48 | c0="${reset}${bold}${cyan}" # first color | 60 | c0="${reset}${bold}${magenta}" # first color |
49 | c1="${reset}${cyan}" # second color | 61 | c1="${reset}${magenta}" # second color |
50 | 62 | ||
51 | ## OUTPUT | 63 | ## OUTPUT |
52 | 64 | ||
53 | cat <<EOF | 65 | cat <<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 | ||
63 | EOF | 75 | EOF |
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 | |||
3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Say goodbye") | ||
4 | |||
5 | case $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 | *) ;; | ||
11 | esac | ||
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 @@ | |||
3 | sxhkd & | 3 | sxhkd & |
4 | dunst & | 4 | dunst & |
5 | unclutter & | 5 | unclutter & |
6 | xset b off & | ||
6 | mpDris2 & | 7 | mpDris2 & |
7 | xss-lock -- /home/fd0e/.local/bin/lock & | 8 | #xss-lock -- /home/fd0e/.local/bin/lock & |
8 | /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & | 9 | compton & |
9 | compton --config ~/.config/compton.conf & | ||
10 | ~/scrypts/bat_check.sh & | 10 | ~/scrypts/bat_check.sh & |
11 | redshift -l 13.082680:80.270718 & | 11 | redshift -l 13.082680:80.270718 & |
12 | xbacklight -set 30 & | 12 | ~/.fehbg & |
13 | feh --bg-fill ~/Pictures/bech.jpg & | ||
14 | urxvtd & | 13 | urxvtd & |
15 | 14 | ||
16 | bspc monitor -d term web music files code virt chat game IX X | 15 | bspc monitor -d term web music files code virt chat game IX X |
@@ -23,6 +22,6 @@ bspc config borderless_monocle true | |||
23 | bspc config gapless_monocle true | 22 | bspc config gapless_monocle true |
24 | 23 | ||
25 | bspc rule -a firefox desktop='^2' | 24 | bspc rule -a firefox desktop='^2' |
26 | bspc rule -a Pcmanfm desktop='^4' | 25 | bspc 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 | |||
31 | padding-right = 2 | 31 | padding-right = 2 |
32 | module-margin-left = 1.5 | 32 | module-margin-left = 1.5 |
33 | module-margin-right = 1.5 | 33 | module-margin-right = 1.5 |
34 | font-0 = Hermit:style=medium:pixelsize=10;1 | 34 | font-0 = Hermit:style=medium:size=9;1 |
35 | font-1 = FontAwesome:style=Regular:size=10;1 | 35 | modules-left = alsa battery date time bspwm |
36 | modules-left = pulseaudio battery date time bspwm | ||
37 | modules-center = | 36 | modules-center = |
38 | modules-right = spotify mpd | 37 | ;modules-right = spotify mpd |
39 | tray-position = right | 38 | tray-position = right |
40 | cursor-click = pointer | 39 | cursor-click = pointer |
41 | cursor-scroll = ns-resize | 40 | cursor-scroll = ns-resize |
@@ -123,26 +122,18 @@ battery = BAT0 | |||
123 | adapter = ADP1 | 122 | adapter = ADP1 |
124 | poll-interval = 1 | 123 | poll-interval = 1 |
125 | full-at = 98 | 124 | full-at = 98 |
126 | label-discharging = %percentage%% | 125 | label-discharging = -bat %percentage%% |
127 | label-charging = %percentage%% | 126 | label-charging = +bat %percentage%% |
128 | label-full = %percentage%% | 127 | label-full = ^bat %percentage%% |
129 | format-discharging = <ramp-capacity> <label-discharging> | 128 | format-discharging = <label-discharging> |
130 | format-full = <ramp-capacity> <label-full> | 129 | format-full = <label-full> |
131 | format-charging = <label-charging> | 130 | format-charging = <label-charging> |
132 | ramp-capacity-0 = | 131 | |
133 | ramp-capacity-1 = | 132 | [module/alsa] |
134 | ramp-capacity-2 = | 133 | type = internal/alsa |
135 | ramp-capacity-3 = | 134 | format-volume = vol <label-volume> |
136 | ramp-capacity-4 = | ||
137 | |||
138 | [module/pulseaudio] | ||
139 | type = internal/pulseaudio | ||
140 | format-volume = <ramp-volume> <label-volume> | ||
141 | label-volume = %percentage%% | 135 | label-volume = %percentage%% |
142 | label-muted = 婢 muted | 136 | label-muted = muted |
143 | ramp-volume-0 = | ||
144 | ramp-volume-1 = | ||
145 | ramp-volume-2 = | ||
146 | 137 | ||
147 | [module/spotify] | 138 | [module/spotify] |
148 | type = custom/script | 139 | type = custom/script |
@@ -187,14 +178,3 @@ bar-progress-width = 10 | |||
187 | bar-progress-indicator = | | 178 | bar-progress-indicator = | |
188 | bar-progress-fill = ─ | 179 | bar-progress-fill = ─ |
189 | bar-progress-empty = ─ | 180 | bar-progress-empty = ─ |
190 | |||
191 | [module/backlight] | ||
192 | type = internal/backlight | ||
193 | ; Use the following command to list available cards: | ||
194 | ; $ ls -1 /sys/class/backlight/ | ||
195 | card = intel_backlight | ||
196 | format = <ramp> <label> | ||
197 | label = %percentage%% | ||
198 | ramp-0 = | ||
199 | ramp-1 = | ||
200 | ramp-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 |
9 | super + @space | 9 | super + @space |
10 | rofi -show drun -show-icons | 10 | dmenu_run -l 10 |
11 | |||
12 | super + c | 11 | super + 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 |
14 | super + i | 13 | super + i |
@@ -30,15 +29,15 @@ super + Escape | |||
30 | super + shift + w | 29 | super + shift + w |
31 | firefox | 30 | firefox |
32 | control + alt + l | 31 | control + alt + l |
33 | /home/fd0e/.local/bin/lock | 32 | lock |
34 | super + shift + f | 33 | super + shift + f |
35 | pcmanfm | 34 | spacefm |
36 | 35 | ||
37 | scrot | 36 | scrot |
38 | ctrl + Print | 37 | ctrl + Print |
39 | scrot | 38 | scrot |
40 | super + x | 39 | super + x |
41 | ~/.config/rofi/rofi-power.sh | 40 | shut |
42 | super + shift + p | 41 | super + 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 |
165 | XF86MonBrightness{Down,Up} | 164 | XF86MonBrightnessDown |
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' |
166 | XF86MonBrightnessUp | ||
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 | |||
16 | URxvt.font: xft:Hermit:size=9:style=medium:antialias=true | 16 | URxvt.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 |
19 | URxvt.letterSpace: 1 | 19 | !URxvt.letterSpace: 1 |
20 | urxvt*termName: rxvt | 20 | urxvt*termName: rxvt |
21 | urxvt*scrollBar: false | 21 | urxvt*scrollBar: false |
22 | urxvt*matcher.button: 1 | 22 | urxvt*matcher.button: 1 |
@@ -61,4 +61,4 @@ if [ "$2" = "nvidia" ]; then | |||
61 | xrandr --auto | 61 | xrandr --auto |
62 | fi | 62 | fi |
63 | xsetroot -cursor_name left_ptr | 63 | xsetroot -cursor_name left_ptr |
64 | exec dbus-launch bspwm | 64 | exec bspwm |
@@ -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 |
16 | ZSH_THEME="mh" | 16 | ZSH_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. |
76 | plugins=(git sudo archlinux extract python common-aliases autojump fzf) | 76 | plugins=(git sudo extract python common-aliases) |
77 | 77 | ||
78 | source $ZSH/oh-my-zsh.sh | 78 | source $ZSH/oh-my-zsh.sh |
79 | 79 | ||
@@ -105,36 +105,18 @@ source $ZSH/oh-my-zsh.sh | |||
105 | alias key="vim $HOME/.config/sxhkd/sxhkdrc" | 105 | alias key="vim $HOME/.config/sxhkd/sxhkdrc" |
106 | alias wm="vim ~/.config/bspwm/bspwmrc" | 106 | alias wm="vim ~/.config/bspwm/bspwmrc" |
107 | alias f="ranger" | 107 | alias f="ranger" |
108 | alias bb="cat /proc/acpi/bbswitch" | ||
109 | alias nu="nmcli connection up " | 108 | alias nu="nmcli connection up " |
110 | alias nt="nmtui-connect" | ||
111 | alias nd="nmcli connection down " | ||
112 | alias pg="ping google.com" | ||
113 | alias weather="curl wttr.in" | 109 | alias weather="curl wttr.in" |
114 | alias py="/bin/python" | 110 | alias py="/bin/python" |
115 | alias py2="/bin/python2" | 111 | alias py2="/bin/python2" |
112 | alias pg="ping google.com" | ||
116 | alias pubip="curl ipinfo.io/ip" | 113 | alias pubip="curl ipinfo.io/ip" |
117 | alias mirror="sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist" | ||
118 | alias k="pkill " | 114 | alias k="pkill " |
119 | alias m="ncmpcpp" | 115 | alias m="ncmpcpp" |
120 | alias vimrc="vim $HOME/.config/nvim/init.vim" | 116 | alias vimrc="vim $HOME/.config/nvim/init.vim" |
121 | alias poly="vim $HOME/.config/polybar/config" | 117 | alias poly="vim $HOME/.config/polybar/config" |
122 | alias z="zathura" | ||
123 | alias v="/usr/bin/nvim" | 118 | alias v="/usr/bin/nvim" |
124 | alias vim="/usr/bin/nvim" | 119 | alias vim="/usr/bin/nvim" |
125 | alias sudo="sudo " | 120 | alias sudo="sudo " |
126 | 121 | ||
127 | source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh | 122 | source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh |
128 | source /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 | ||