summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/.local/bin/shut6
-rwxr-xr-xbin/.local/bin/statusbar25
-rw-r--r--nvim/.config/nvim/init.vim1
-rw-r--r--picom/.config/picom.conf77
-rw-r--r--spectrwm/.config/spectrwm/keybindings.conf2
-rw-r--r--spectrwm/.config/spectrwm/spectrwm.conf38
-rw-r--r--x/.Xresources2
-rw-r--r--x/.xinitrc3
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
3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara") 3RET=$(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
5case $RET in 5case $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 *) ;;
11esac 11esac
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
3BOLD='\033[1m'
4BB='\033[00m'
5
6vol(){
7 vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }')
8 echo -e "+@fg=1;vol+@fg=0; $vol "
9}
10
11bat() {
12 power=$(cat /sys/class/power_supply/BAT0/capacity)
13 echo -e "+@fg=1;bat+@fg=0; $power% "
14}
15
16dte() {
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
22while :; do
23 echo "$(vol) $(bat) $(dte)"
24 sleep 2
25done
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
39let g:deoplete#enable_at_startup = 1 39let g:deoplete#enable_at_startup = 1
40let g:python3_host_prog= "/usr/local/bin/python3.7"
41 40
42" git gutter settings 41" git gutter settings
43let g:gitgutter_override_sign_column_highlight = 0 42let 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
2shadow = true;
3shadow-radius = 0.5;
4shadow-offset-x = 3;
5shadow-offset-y = 3;
6shadow-opacity = 0.65;
7log-level = "warn";
8shadow-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
23frame-opacity = 1.0;
24inactive-opacity-override = false;
25blur-background = true;
26blur-strength = 3;
27blur-kern = "3x3box";
28blur-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];
38opacity-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
45fading = true;
46fade-in-step = 0.03;
47fade-out-step = 0.03;
48fade-exclude = [ ];
49
50## GLX
51glx-no-stencil = true;
52glx-no-rebind-pixmap = true;
53use-damage = true;
54
55## WINDOW TYPES
56wintypes:
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
66backend = "glx";
67mark-wmwin-focused = true;
68mark-ovredir-focused = true;
69use-ewmh-active-win = true;
70detect-rounded-corners = true;
71detect-client-opacity = true;
72refresh-rate = 0;
73vsync = true;
74focus-exclude = [ "class_g = 'Cairo-clock'" ];
75detect-transient = true;
76detect-client-leader = true;
77invert-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
14bind[focus_urgent] = MOD+u 14bind[focus_urgent] = MOD+u
15bind[height_grow] = MOD+Shift+equal 15bind[height_grow] = MOD+Shift+equal
16bind[height_shrink] = MOD+Shift+minus 16bind[height_shrink] = MOD+Shift+minus
17bind[iconify] = MOD+x 17#bind[iconify] = MOD+x
18bind[initscr] = MOD+Shift+i 18bind[initscr] = MOD+Shift+i
19bind[lock] = MOD+Shift+Delete 19bind[lock] = MOD+Shift+Delete
20bind[master_add] = MOD+comma 20bind[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
18color_focus_maximized = yellow 18color_focus_maximized = yellow
19color_unfocus = rgb:88/88/88 19color_unfocus = rgb:88/88/88
20color_unfocus_maximized = rgb:88/88/00 20color_unfocus_maximized = rgb:88/88/00
21region_padding = 6 21region_padding = 10
22tile_gap = 6 22tile_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
36bar_border_unfocus[1] = rgb:00/40/40 36bar_border_unfocus[1] = rgb:00/40/40
37bar_color[1] = black 37bar_color[1] = black
38bar_color_selected[1] = rgb:00/80/80 38bar_color_selected[1] = rgb:00/80/80
39bar_font_color[1] = rgb:a0/a0/a0 39bar_font_color[1] = rgb:b5/b5/b5, rgb:73/73/73, rgb:5e/5e/5e
40bar_font_color_selected = black 40bar_font_color_selected = black
41bar_font = Hermit:size=9 41bar_font = Hermit:size=9
42# bar_action = baraction.sh 42bar_action = ~/.local/bin/statusbar
43bar_action_expand = 1
43bar_justify = left 44bar_justify = left
44bar_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
46bar_format = +|L+1<+L +@fg=2;+C+@fg=0; +|R+A
45workspace_indicator = listcurrent,listactive,markcurrent,printnames 47workspace_indicator = listcurrent,listactive,markcurrent,printnames
46bar_at_bottom = 0 48bar_at_bottom = 0
47stack_enabled = 1 49stack_enabled = 0
48clock_enabled = 1 50clock_enabled = 0
49clock_format = %a %b %d %R %Z %Y 51clock_format = %a %b %d %R %Z %Y
50iconic_enabled = 0 52iconic_enabled = 0
51maximize_hide_bar = 0 53maximize_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 69autorun = ws[1]:urxvtd
68autorun = ws[1]:~/.fehbg 70autorun = ws[1]:~/.fehbg
71autorun = ws[1]:picom
72autorun = ws[2]:firefox
73autorun = ws[1]:~/bin/xss
74autorun = 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 103program[lock] = xset s activate
98program[term] = urxvtc 104program[term] = urxvtc
99program[menu] = dmenu_run -nb $bar_color -nf $bar_font_color -sb $bar_border -sf darkgray -fn "Hermit:size=10" 105program[menu] = ~/bin/menu
106program[bup] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done'
107program[bdown] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done'
108program[soundinc] = amixer set Master 5%+
109program[sounddec] = amixer set Master 5%-
110program[soundmute] = amixer set Master toggle
111program[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
119bind[bup] = XF86MonBrightnessUp
120bind[bdown] = XF86MonBrightnessDown
121bind[soundinc] = XF86AudioRaiseVolume
122bind[sounddec] = XF86AudioLowerVolume
123bind[soundmute] = XF86AudioMute
124bind[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
diff --git a/x/.xinitrc b/x/.xinitrc
index a685f5f..aad789f 100644
--- a/x/.xinitrc
+++ b/x/.xinitrc
@@ -1,3 +1,4 @@
1#exec dbus-launch --exit-with-session spectrwm
1xrdb ~/.Xresources & 2xrdb ~/.Xresources &
2urxvtd & 3xset s 600 &
3exec dbus-launch --exit-with-session spectrwm 4exec dbus-launch --exit-with-session spectrwm