diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-04-20 06:34:27 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-04-20 06:34:27 +0000 |
commit | 04eaf5c25193ba74c1613c958015f47e2b896e50 (patch) | |
tree | 9f577ad83ff95dad560539725d5c39b504a06dc6 | |
parent | 8422687d96868ab8eb84bc60efb6b0647841dcdc (diff) |
mass changes
-rwxr-xr-x | bin/.local/bin/shut | 6 | ||||
-rwxr-xr-x | bin/.local/bin/statusbar | 25 | ||||
-rw-r--r-- | nvim/.config/nvim/init.vim | 1 | ||||
-rw-r--r-- | picom/.config/picom.conf | 77 | ||||
-rw-r--r-- | spectrwm/.config/spectrwm/keybindings.conf | 2 | ||||
-rw-r--r-- | spectrwm/.config/spectrwm/spectrwm.conf | 38 | ||||
-rw-r--r-- | x/.Xresources | 2 | ||||
-rw-r--r-- | x/.xinitrc | 3 |
8 files changed, 137 insertions, 17 deletions
diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut index 527dfb1..801d5bf 100755 --- a/bin/.local/bin/shut +++ b/bin/.local/bin/shut | |||
@@ -1,11 +1,11 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara") | 3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10") |
4 | 4 | ||
5 | case $RET in | 5 | case $RET in |
6 | shutdown) sudo poweroff ;; | 6 | shutdown) sudo poweroff ;; |
7 | reboot) sudo reboot ;; | 7 | reboot) sudo reboot ;; |
8 | sleep) /home/fd0e/.local/bin/lock & sudo sh -c "echo -n mem > /sys/power/state" ;; | 8 | sleep) xset s activate & sudo zzz ;; |
9 | lock) /home/fd0e/.local/bin/lock ;; | 9 | lock) xset s activate ;; |
10 | *) ;; | 10 | *) ;; |
11 | esac | 11 | esac |
diff --git a/bin/.local/bin/statusbar b/bin/.local/bin/statusbar new file mode 100755 index 0000000..020429e --- /dev/null +++ b/bin/.local/bin/statusbar | |||
@@ -0,0 +1,25 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | BOLD='\033[1m' | ||
4 | BB='\033[00m' | ||
5 | |||
6 | vol(){ | ||
7 | vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }') | ||
8 | echo -e "+@fg=1;vol+@fg=0; $vol " | ||
9 | } | ||
10 | |||
11 | bat() { | ||
12 | power=$(cat /sys/class/power_supply/BAT0/capacity) | ||
13 | echo -e "+@fg=1;bat+@fg=0; $power% " | ||
14 | } | ||
15 | |||
16 | dte() { | ||
17 | dte="$(date +"%A, %B %d")" | ||
18 | time="$(date +"%l:%M %p")" | ||
19 | echo -e "+@fg=1;date+@fg=0; $dte +@fg=1;time+@fg=0; $time" | ||
20 | } | ||
21 | |||
22 | while :; do | ||
23 | echo "$(vol) $(bat) $(dte)" | ||
24 | sleep 2 | ||
25 | done | ||
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index a9523f9..3b390a3 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim | |||
@@ -37,7 +37,6 @@ set copyindent " copy indent from the previous line | |||
37 | 37 | ||
38 | " deoplete | 38 | " deoplete |
39 | let g:deoplete#enable_at_startup = 1 | 39 | let g:deoplete#enable_at_startup = 1 |
40 | let g:python3_host_prog= "/usr/local/bin/python3.7" | ||
41 | 40 | ||
42 | " git gutter settings | 41 | " git gutter settings |
43 | let g:gitgutter_override_sign_column_highlight = 0 | 42 | let g:gitgutter_override_sign_column_highlight = 0 |
diff --git a/picom/.config/picom.conf b/picom/.config/picom.conf new file mode 100644 index 0000000..68c6ee5 --- /dev/null +++ b/picom/.config/picom.conf | |||
@@ -0,0 +1,77 @@ | |||
1 | ## SHADOWS | ||
2 | shadow = true; | ||
3 | shadow-radius = 0.5; | ||
4 | shadow-offset-x = 3; | ||
5 | shadow-offset-y = 3; | ||
6 | shadow-opacity = 0.65; | ||
7 | log-level = "warn"; | ||
8 | shadow-exclude = [ | ||
9 | "name = 'Notification'", | ||
10 | "class_g = 'conky'", | ||
11 | "class_g ?= 'Notify-osd'", | ||
12 | "class_g = 'Cairo-clock'", | ||
13 | "class_g ?= 'slop'", | ||
14 | "name = 'polybar'", | ||
15 | "name = 'Polybar tray window'", | ||
16 | "class_g ?= 'dmenu'", | ||
17 | "class_g ?= 'dwm'", | ||
18 | "class_g = 'Firefox' && argb", | ||
19 | "_GTK_FRAME_EXTENTS@:c" | ||
20 | ]; | ||
21 | |||
22 | ## OPACITY | ||
23 | frame-opacity = 1.0; | ||
24 | inactive-opacity-override = false; | ||
25 | blur-background = true; | ||
26 | blur-strength = 3; | ||
27 | blur-kern = "3x3box"; | ||
28 | blur-background-exclude = [ | ||
29 | "class_g ?= 'slop'", | ||
30 | "name = 'polybar'", | ||
31 | "name = 'Polybar tray window'", | ||
32 | "class_g = 'conky'", | ||
33 | "class_g ?= 'Rofi'", | ||
34 | "class_g ?= 'zoom'", | ||
35 | "window_type = 'dock'", | ||
36 | "window_type = 'desktop'" | ||
37 | ]; | ||
38 | opacity-rule = [ | ||
39 | "40:class_g = 'Bspwm' && class_i = 'presel_feedback'", | ||
40 | "100:class_g = 'URxvt' && focused", | ||
41 | "95:class_g = 'URxvt' && !focused" | ||
42 | ]; | ||
43 | |||
44 | ## FADING | ||
45 | fading = true; | ||
46 | fade-in-step = 0.03; | ||
47 | fade-out-step = 0.03; | ||
48 | fade-exclude = [ ]; | ||
49 | |||
50 | ## GLX | ||
51 | glx-no-stencil = true; | ||
52 | glx-no-rebind-pixmap = true; | ||
53 | use-damage = true; | ||
54 | |||
55 | ## WINDOW TYPES | ||
56 | wintypes: | ||
57 | { | ||
58 | tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; | ||
59 | dock = { shadow = false; } | ||
60 | dnd = { shadow = false; } | ||
61 | popup_menu = { opacity = 0.8; } | ||
62 | dropdown_menu = { opacity = 0.8; } | ||
63 | }; | ||
64 | |||
65 | ## MISC | ||
66 | backend = "glx"; | ||
67 | mark-wmwin-focused = true; | ||
68 | mark-ovredir-focused = true; | ||
69 | use-ewmh-active-win = true; | ||
70 | detect-rounded-corners = true; | ||
71 | detect-client-opacity = true; | ||
72 | refresh-rate = 0; | ||
73 | vsync = true; | ||
74 | focus-exclude = [ "class_g = 'Cairo-clock'" ]; | ||
75 | detect-transient = true; | ||
76 | detect-client-leader = true; | ||
77 | invert-color-include = [ ]; | ||
diff --git a/spectrwm/.config/spectrwm/keybindings.conf b/spectrwm/.config/spectrwm/keybindings.conf index d736a07..8635a11 100644 --- a/spectrwm/.config/spectrwm/keybindings.conf +++ b/spectrwm/.config/spectrwm/keybindings.conf | |||
@@ -14,7 +14,7 @@ bind[focus_prev] = MOD+Shift+Tab | |||
14 | bind[focus_urgent] = MOD+u | 14 | bind[focus_urgent] = MOD+u |
15 | bind[height_grow] = MOD+Shift+equal | 15 | bind[height_grow] = MOD+Shift+equal |
16 | bind[height_shrink] = MOD+Shift+minus | 16 | bind[height_shrink] = MOD+Shift+minus |
17 | bind[iconify] = MOD+x | 17 | #bind[iconify] = MOD+x |
18 | bind[initscr] = MOD+Shift+i | 18 | bind[initscr] = MOD+Shift+i |
19 | bind[lock] = MOD+Shift+Delete | 19 | bind[lock] = MOD+Shift+Delete |
20 | bind[master_add] = MOD+comma | 20 | bind[master_add] = MOD+comma |
diff --git a/spectrwm/.config/spectrwm/spectrwm.conf b/spectrwm/.config/spectrwm/spectrwm.conf index 0046444..8f3a125 100644 --- a/spectrwm/.config/spectrwm/spectrwm.conf +++ b/spectrwm/.config/spectrwm/spectrwm.conf | |||
@@ -18,8 +18,8 @@ color_focus = red | |||
18 | color_focus_maximized = yellow | 18 | color_focus_maximized = yellow |
19 | color_unfocus = rgb:88/88/88 | 19 | color_unfocus = rgb:88/88/88 |
20 | color_unfocus_maximized = rgb:88/88/00 | 20 | color_unfocus_maximized = rgb:88/88/00 |
21 | region_padding = 6 | 21 | region_padding = 10 |
22 | tile_gap = 6 | 22 | tile_gap = 10 |
23 | 23 | ||
24 | # Region containment | 24 | # Region containment |
25 | # Distance window must be dragged/resized beyond the region edge before it is | 25 | # Distance window must be dragged/resized beyond the region edge before it is |
@@ -36,16 +36,18 @@ bar_border[1] = rgb:00/80/80 | |||
36 | bar_border_unfocus[1] = rgb:00/40/40 | 36 | bar_border_unfocus[1] = rgb:00/40/40 |
37 | bar_color[1] = black | 37 | bar_color[1] = black |
38 | bar_color_selected[1] = rgb:00/80/80 | 38 | bar_color_selected[1] = rgb:00/80/80 |
39 | bar_font_color[1] = rgb:a0/a0/a0 | 39 | bar_font_color[1] = rgb:b5/b5/b5, rgb:73/73/73, rgb:5e/5e/5e |
40 | bar_font_color_selected = black | 40 | bar_font_color_selected = black |
41 | bar_font = Hermit:size=9 | 41 | bar_font = Hermit:size=9 |
42 | # bar_action = baraction.sh | 42 | bar_action = ~/.local/bin/statusbar |
43 | bar_action_expand = 1 | ||
43 | bar_justify = left | 44 | bar_justify = left |
44 | bar_format = +N:+I +S <+D>+4<%a %b %d %R %Z %Y+8<+4<+V | 45 | #bar_format = +N:+I +S <+D>+4<%a %b %d %R %Z %Y+8<+4<+V |
46 | bar_format = +|L+1<+L +@fg=2;+C+@fg=0; +|R+A | ||
45 | workspace_indicator = listcurrent,listactive,markcurrent,printnames | 47 | workspace_indicator = listcurrent,listactive,markcurrent,printnames |
46 | bar_at_bottom = 0 | 48 | bar_at_bottom = 0 |
47 | stack_enabled = 1 | 49 | stack_enabled = 0 |
48 | clock_enabled = 1 | 50 | clock_enabled = 0 |
49 | clock_format = %a %b %d %R %Z %Y | 51 | clock_format = %a %b %d %R %Z %Y |
50 | iconic_enabled = 0 | 52 | iconic_enabled = 0 |
51 | maximize_hide_bar = 0 | 53 | maximize_hide_bar = 0 |
@@ -64,8 +66,12 @@ urgent_enabled = 1 | |||
64 | # region = screen[1]:1280x1024+1280+0 | 66 | # region = screen[1]:1280x1024+1280+0 |
65 | 67 | ||
66 | # Launch applications in a workspace of choice | 68 | # Launch applications in a workspace of choice |
67 | #autorun = ws[1]:urxvtd | 69 | autorun = ws[1]:urxvtd |
68 | autorun = ws[1]:~/.fehbg | 70 | autorun = ws[1]:~/.fehbg |
71 | autorun = ws[1]:picom | ||
72 | autorun = ws[2]:firefox | ||
73 | autorun = ws[1]:~/bin/xss | ||
74 | autorun = ws[1]:~/.local/bin/bat_check.sh | ||
69 | 75 | ||
70 | # Customize workspace layout at start | 76 | # Customize workspace layout at start |
71 | # layout = ws[1]:4:0:0:0:vertical | 77 | # layout = ws[1]:4:0:0:0:vertical |
@@ -94,9 +100,15 @@ keyboard_mapping = ~/.config/spectrwm/keybindings.conf | |||
94 | # PROGRAMS | 100 | # PROGRAMS |
95 | 101 | ||
96 | # Validated default programs: | 102 | # Validated default programs: |
97 | # program[lock] = xlock | 103 | program[lock] = xset s activate |
98 | program[term] = urxvtc | 104 | program[term] = urxvtc |
99 | program[menu] = dmenu_run -nb $bar_color -nf $bar_font_color -sb $bar_border -sf darkgray -fn "Hermit:size=10" | 105 | program[menu] = ~/bin/menu |
106 | program[bup] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' | ||
107 | program[bdown] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' | ||
108 | program[soundinc] = amixer set Master 5%+ | ||
109 | program[sounddec] = amixer set Master 5%- | ||
110 | program[soundmute] = amixer set Master toggle | ||
111 | program[shut] = ~/.local/bin/shut | ||
100 | # program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected | 112 | # program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected |
101 | # program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected | 113 | # program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected |
102 | 114 | ||
@@ -104,6 +116,12 @@ program[menu] = dmenu_run -nb $bar_color -nf $bar_font_color -sb $bar_border -s | |||
104 | # bind[] = MOD+Shift+Delete # disable lock | 116 | # bind[] = MOD+Shift+Delete # disable lock |
105 | # bind[] = MOD+Shift+Return # disable term | 117 | # bind[] = MOD+Shift+Return # disable term |
106 | # bind[] = MOD+p # disable menu | 118 | # bind[] = MOD+p # disable menu |
119 | bind[bup] = XF86MonBrightnessUp | ||
120 | bind[bdown] = XF86MonBrightnessDown | ||
121 | bind[soundinc] = XF86AudioRaiseVolume | ||
122 | bind[sounddec] = XF86AudioLowerVolume | ||
123 | bind[soundmute] = XF86AudioMute | ||
124 | bind[shut] = MOD+x | ||
107 | 125 | ||
108 | # Optional default programs that will only be validated if you override: | 126 | # Optional default programs that will only be validated if you override: |
109 | # program[screenshot_all] = screenshot.sh full # optional | 127 | # program[screenshot_all] = screenshot.sh full # optional |
diff --git a/x/.Xresources b/x/.Xresources index d544342..855758d 100644 --- a/x/.Xresources +++ b/x/.Xresources | |||
@@ -38,7 +38,7 @@ URxvt*inheritPixmap: False | |||
38 | 38 | ||
39 | ! special | 39 | ! special |
40 | *.foreground: #c6c8d1 | 40 | *.foreground: #c6c8d1 |
41 | *.background: #0c0c0f | 41 | *.background: #000000 |
42 | *.cursorColor: #c6c8d1 | 42 | *.cursorColor: #c6c8d1 |
43 | 43 | ||
44 | ! black | 44 | ! black |
@@ -1,3 +1,4 @@ | |||
1 | #exec dbus-launch --exit-with-session spectrwm | ||
1 | xrdb ~/.Xresources & | 2 | xrdb ~/.Xresources & |
2 | urxvtd & | 3 | xset s 600 & |
3 | exec dbus-launch --exit-with-session spectrwm | 4 | exec dbus-launch --exit-with-session spectrwm |