summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/.local/bin/bdown1
-rwxr-xr-xbin/.local/bin/bup1
-rwxr-xr-xbin/.local/bin/passmenu5
-rwxr-xr-xbspwm/.config/bspwm/bspwmrc30
-rw-r--r--compton/.config/compton.conf75
-rwxr-xr-xlemonbar/launch5
-rwxr-xr-xlemonbar/lime74
-rw-r--r--picom/.config/picom.conf7
-rw-r--r--sxhkd/.config/sxhkd/sxhkdrc106
-rw-r--r--x/.xinitrc12
-rw-r--r--zsh/.zshrc3
11 files changed, 137 insertions, 182 deletions
diff --git a/bin/.local/bin/bdown b/bin/.local/bin/bdown
deleted file mode 100755
index 253666c..0000000
--- a/bin/.local/bin/bdown
+++ /dev/null
@@ -1 +0,0 @@
1for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done
diff --git a/bin/.local/bin/bup b/bin/.local/bin/bup
deleted file mode 100755
index d7c55c3..0000000
--- a/bin/.local/bin/bup
+++ /dev/null
@@ -1 +0,0 @@
1for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done
diff --git a/bin/.local/bin/passmenu b/bin/.local/bin/passmenu
deleted file mode 100755
index 1d22303..0000000
--- a/bin/.local/bin/passmenu
+++ /dev/null
@@ -1,5 +0,0 @@
1#!/bin/sh
2
3password=$(find ~/.password-store/ -type f -name '*.gpg' |
4 sed 's/.*\/\(.*\)\.gpg$/\1/' | dmenu -l 5 -p "Pass:")
5[ -n "$password" ] && st -e pass -c "$password"
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc
index 472e32e..0eff3f8 100755
--- a/bspwm/.config/bspwm/bspwmrc
+++ b/bspwm/.config/bspwm/bspwmrc
@@ -1,16 +1,32 @@
1#! /bin/sh 1#!/bin/bash
2
3sxhkd &
4
5bspc monitor -d term web music files code virt chat game IX X
6 2
3# bspwm
4bspc monitor -d 1 2 3 4 5 6
7bspc config border_width 0 5bspc config border_width 0
8bspc config window_gap 8 6bspc config window_gap 8
9bspc config focus_follows_pointer true
10bspc config split_ratio 0.50 7bspc config split_ratio 0.50
8bspc config focus_follows_pointer true
11bspc config borderless_monocle true 9bspc config borderless_monocle true
12bspc config gapless_monocle true 10bspc config gapless_monocle true
13 11
12# rules
14bspc rule -a Chromium desktop='^2' 13bspc rule -a Chromium desktop='^2'
14bspc rule -a Steam desktop='^6'
15
16# scratchpad
17bspc rule -a scratchpad sticky=on state=floating hidden=on
18[ "$(ps -x | grep -c 'scratchpad')" -eq "1" ] && st -c scratchpad -e ~/bin/scratch &
15 19
16~/bartest | lemonbar -F "#000000" & 20# autostart
21xrdb -merge ~/.Xresources &
22xsetroot -cursor_name left_ptr &
23sxhkd &
24xss-lock -- slock &
25xset b off &
26xset s 300 &
27~/.fehbg &
28urxvtd &
29~/.local/bin/bat_check.sh &
30picom &
31dunst &
32~/bin/panel
diff --git a/compton/.config/compton.conf b/compton/.config/compton.conf
deleted file mode 100644
index 6c99fcc..0000000
--- a/compton/.config/compton.conf
+++ /dev/null
@@ -1,75 +0,0 @@
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 ?= 'Rofi'",
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];
36opacity-rule = [
37 "40:class_g = 'Bspwm' && class_i = 'presel_feedback'",
38 "100:class_g = 'URxvt' && focused",
39 "95:class_g = 'URxvt' && !focused"
40];
41
42## FADING
43fading = true;
44fade-in-step = 0.03;
45fade-out-step = 0.03;
46fade-exclude = [ ];
47
48## GLX
49glx-no-stencil = true;
50glx-no-rebind-pixmap = true;
51use-damage = true;
52
53## WINDOW TYPES
54wintypes:
55{
56 tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
57 dock = { shadow = false; }
58 dnd = { shadow = false; }
59 popup_menu = { opacity = 0.8; }
60 dropdown_menu = { opacity = 0.8; }
61};
62
63## MISC
64backend = "glx";
65mark-wmwin-focused = true;
66mark-ovredir-focused = true;
67use-ewmh-active-win = true;
68detect-rounded-corners = true;
69detect-client-opacity = true;
70refresh-rate = 0;
71vsync = true;
72focus-exclude = [ "class_g = 'Cairo-clock'" ];
73detect-transient = true;
74detect-client-leader = true;
75invert-color-include = [ ];
diff --git a/lemonbar/launch b/lemonbar/launch
new file mode 100755
index 0000000..981c88f
--- /dev/null
+++ b/lemonbar/launch
@@ -0,0 +1,5 @@
1#!/bin/bash
2# Launches an instance of lemonbar
3killall -q lime lemonbar
4
5~/.config/lemonbar/lime | lemonbar -p -F "#2f2f2f" -f "JetBrains Mono Nerd Font Mono:style=medium:pixelsize=12.5:antialias=true:autohint=true:lcdfilter=lcddefault:rgba=rgb"
diff --git a/lemonbar/lime b/lemonbar/lime
new file mode 100755
index 0000000..e2ce156
--- /dev/null
+++ b/lemonbar/lime
@@ -0,0 +1,74 @@
1#!/bin/bash
2# Outputs a configuration for lemonbar
3
4vol(){
5 vol=$(pulsemixer --get-volume | awk '{print $1}')
6 mute=$(pulsemixer --get-mute)
7 if [ "$mute" == 1 ]; then
8 echo -e "%{F#787878}vol%{F-} muted "
9 elif [ "$mute" == 0 ]; then
10 echo -e "%{F#787878}vol%{F-} $vol% "
11 fi
12}
13
14bat() {
15 power=$(cat /sys/class/power_supply/BAT0/capacity)
16 status=$(cat /sys/class/power_supply/BAT0/status)
17 if [ "$status" == "Charging" ]; then
18 echo -e "%{F#787878}bat%{F-} +$power% "
19 elif [ "$status" == "Discharging" ]; then
20 echo -e "%{F#787878}bat%{F-} $power% "
21 fi
22}
23
24dte() {
25 dte=$(date +"%a, %b %d")
26 echo -e "%{F#787878}date%{F-} $dte "
27}
28
29tie() {
30 tme=$(date +"%I:%M %P")
31 echo -e "%{F#787878}time%{F-} $tme "
32}
33
34groups() {
35 cur=`xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}'`
36 tot=`xprop -root _NET_NUMBER_OF_DESKTOPS | awk '{print $3}'`
37
38 for w in `seq 0 $((cur - 1))`; do line="${line}  "; done
39 line="${line}  "
40 for w in `seq $((cur + 2)) $tot`; do line="${line}  "; done
41 echo $line
42}
43
44workspaces() {
45 all=$(bspc query -D)
46 occupied=$(bspc query -D -d .occupied)
47 current=$(bspc query -D -d .focused)
48 result=""
49 padding=" "
50 while IFS= read -r line; do
51 # Get the name of the current desktop
52 name=""
53 if [[ "$occupied" == *"$line"* ]];
54 then
55 name=""
56 fi
57
58 if [[ "$current" == *"$line"* ]];
59 then
60 name=""
61 fi
62
63 result="$result$padding"
64 result="$result$name"
65 result="$result$padding"
66 done <<< "$all"
67 echo -e "$result"
68}
69
70while true; do
71 echo " $(vol) $(bat) $(tie) $(dte) %{F#787878}$(workspaces)%{F-}"
72 xdo above -t $(xdo id -n root) $(xdo id -n lemonbar)
73 sleep 3
74done
diff --git a/picom/.config/picom.conf b/picom/.config/picom.conf
index eb647e8..9b4579a 100644
--- a/picom/.config/picom.conf
+++ b/picom/.config/picom.conf
@@ -6,6 +6,7 @@ shadow-offset-y = -12;
6shadow-exclude = [ 6shadow-exclude = [
7 "name = 'Notification'", 7 "name = 'Notification'",
8 "class_g ?= 'Notify-osd'", 8 "class_g ?= 'Notify-osd'",
9 "class_g ?= 'dmenu'",
9 "name = 'polybar'", 10 "name = 'polybar'",
10 "name = 'Polybar tray window'", 11 "name = 'Polybar tray window'",
11 "class_g ?= 'dwm'", 12 "class_g ?= 'dwm'",
@@ -20,6 +21,7 @@ inactive-opacity-override = false;
20blur-background = true; 21blur-background = true;
21blur-strength = 3; 22blur-strength = 3;
22blur-kern = "3x3box"; 23blur-kern = "3x3box";
24# blur-method = "dual_kawase";
23blur-background-exclude = [ 25blur-background-exclude = [
24 "name = 'polybar'", 26 "name = 'polybar'",
25 "name = 'Polybar tray window'", 27 "name = 'Polybar tray window'",
@@ -69,4 +71,7 @@ detect-transient = true;
69detect-client-leader = true; 71detect-client-leader = true;
70invert-color-include = [ ]; 72invert-color-include = [ ];
71corner-radius = 5; 73corner-radius = 5;
72rounded-corners-exclude = [ "name = 'bar'" ] 74rounded-corners-exclude = [
75 "name = 'bar'",
76 "class_g ?= 'dmenu'",
77];
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
index 2db257e..38b99a4 100644
--- a/sxhkd/.config/sxhkd/sxhkdrc
+++ b/sxhkd/.config/sxhkd/sxhkdrc
@@ -1,165 +1,111 @@
1# wm independent hotkeys
2## terminal emulator
3super + Return 1super + Return
4 urxvtc 2 urxvtc
5super + shift + Return 3super + shift + Return
6 bspc rule -a \* -o state=floating && urxvtc 4 bspc rule -a \* -o state=floating && urxvtc
7
8# program launcher
9super + @space 5super + @space
10 dmenu_run -l 10 6 dmenu_run -i -fn "JetBrains Mono Nerd Font Mono:style=medium:pixelsize=12.5" -nb "#f3f4f5" -nf "#2f2f2f" -sb "#626868" -sf "#ffffff"
11super + c
12 rofi -show calc -modi calc -no-show-match -no-sort -no-history
13super + i
14 ~/.config/rofi/rofi-wifi.sh
15
16# cmus (I don't know why mpDris is not supported. Got it musl problem lol)
17super + {u,n}
18 cmus-remote {-p,-n}
19super + shift + {u,n}
20 cmus-remote {-u,-r}
21
22
23# make sxhkd reload its configuration files:
24super + Escape
25 pkill -USR1 -x sxhkd
26
27#
28# bspwm hotkeys
29super + shift + w 7super + shift + w
30 firefox 8 chromium
31control + alt + l 9control + alt + l
32 xset s activate 10 xset s activate
33super + shift + f 11super + shift + f
34 spacefm 12 urxvtc -e ranger
35Print 13Print
36 scrot -u 14 screenshot f
15control + Print
16 screenshot w
37super + x 17super + x
38 /home/fd0e/.local/bin/shut 18 /home/fd0e/.local/bin/shut
39super + shift + p 19super + shift + p
40 /home/fd0e/.local/bin/passmenu 20 /home/fd0e/.local/bin/passmenu
41# 21super + Escape
22 pkill -USR1 -x sxhkd
23
24# volume
25XF86Audio{RaiseVolume,LowerVolume}
26 pulsemixer --change-volume {+5,-5}
27XF86AudioMute
28 pulsemixer --toggle-mute
29
30# cmus
31XF86Audio{Play,Next,Prev}
32 cmus-remote {-u,-n,-r}
33
34# brightness
35XF86MonBrightnessDown
36 sudo ~/bin/light d
37XF86MonBrightnessUp
38 sudo ~/bin/light u
39
42 40
41# bspwm hotkeys
43# quit/restart bspwm 42# quit/restart bspwm
44super + alt + {q,r} 43super + alt + {q,r}
45 bspc {quit,wm -r} 44 bspc {quit,wm -r}
46
47# close and kill 45# close and kill
48super + {_,shift + }w 46super + {_,shift + }w
49 bspc node -{c,k} 47 bspc node -{c,k}
50
51# alternate between the tiled and monocle layout 48# alternate between the tiled and monocle layout
52super + m 49super + m
53 bspc desktop -l next 50 bspc desktop -l next
54
55# send the newest marked node to the newest preselected node 51# send the newest marked node to the newest preselected node
56super + y 52super + y
57 bspc node newest.marked.local -n newest.!automatic.local 53 bspc node newest.marked.local -n newest.!automatic.local
58
59# swap the current node and the biggest node 54# swap the current node and the biggest node
60super + g 55super + g
61 bspc node -s biggest 56 bspc node -s biggest
62
63#
64# state/flags
65#
66
67# set the window state 57# set the window state
68super + {t,shift + t,s,f} 58super + {t,shift + t,s,f}
69 bspc node -t {tiled,pseudo_tiled,floating,fullscreen} 59 bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
70
71# set the node flags 60# set the node flags
72super + ctrl + {m,x,y,z} 61super + ctrl + {m,x,y,z}
73 bspc node -g {marked,locked,sticky,private} 62 bspc node -g {marked,locked,sticky,private}
74
75#
76# focus/swap
77#
78
79# focus the node in the given direction 63# focus the node in the given direction
80super + {_,shift + }{h,j,k,l} 64super + {_,shift + }{h,j,k,l}
81 bspc node -{f,s} {west,south,north,east} 65 bspc node -{f,s} {west,south,north,east}
82
83# focus the node for the given path jump 66# focus the node for the given path jump
84super + {p,b,comma,period} 67super + {p,b,comma,period}
85 bspc node -f @{parent,brother,first,second} 68 bspc node -f @{parent,brother,first,second}
86
87# focus the next/previous node in the current desktop 69# focus the next/previous node in the current desktop
88alt + {_,shift + }Tab 70alt + {_,shift + }Tab
89 bspc node -f {next,prev}.local 71 bspc node -f {next,prev}.local
90
91# focus the next/previous desktop in the current monitor 72# focus the next/previous desktop in the current monitor
92super + bracket{left,right} 73super + bracket{left,right}
93 bspc desktop -f {prev,next}.local 74 bspc desktop -f {prev,next}.local
94
95# focus the last node/desktop 75# focus the last node/desktop
96super + {grave,Tab} 76super + {grave,Tab}
97 bspc {node,desktop} -f last 77 bspc {node,desktop} -f last
98
99# focus the older or newer node in the focus history 78# focus the older or newer node in the focus history
100super + {o,i} 79super + {o,i}
101 bspc wm -h off; \ 80 bspc wm -h off; \
102 bspc node {older,newer} -f; \ 81 bspc node {older,newer} -f; \
103 bspc wm -h on 82 bspc wm -h on
104
105# focus or send to the given desktop 83# focus or send to the given desktop
106super + {_,shift + }{1-9,0} 84super + {_,shift + }{1-9,0}
107 bspc {desktop -f,node -d} '^{1-9,10}' 85 bspc {desktop -f,node -d} '^{1-9,10}'
108
109#
110# preselect
111#
112
113#remove gaps 86#remove gaps
114super + minus 87super + minus
115 bspc config window_gap 0 88 bspc config window_gap 0
116super + equal 89super + equal
117 bspc config window_gap 8 90 bspc config window_gap 8
118
119# preselect the direction 91# preselect the direction
120super + ctrl + {h,j,k,l} 92super + ctrl + {h,j,k,l}
121 bspc node -p {west,south,north,east} 93 bspc node -p {west,south,north,east}
122
123# preselect the ratio 94# preselect the ratio
124super + ctrl + {1-9} 95super + ctrl + {1-9}
125 bspc node -o 0.{1-9} 96 bspc node -o 0.{1-9}
126
127# cancel the preselection for the focused node 97# cancel the preselection for the focused node
128super + ctrl + space 98super + ctrl + space
129 bspc node -p cancel 99 bspc node -p cancel
130
131# cancel the preselection for the focused desktop 100# cancel the preselection for the focused desktop
132super + ctrl + shift + space 101super + ctrl + shift + space
133 bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel 102 bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
134
135#
136# move/resize
137#
138
139# expand a window by moving one of its side outward 103# expand a window by moving one of its side outward
140super + alt + {h,j,k,l} 104super + alt + {h,j,k,l}
141 bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} 105 bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
142
143# contract a window by moving one of its side inward 106# contract a window by moving one of its side inward
144super + alt + shift + {h,j,k,l} 107super + alt + shift + {h,j,k,l}
145 bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} 108 bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
146
147# move a floating window 109# move a floating window
148super + {Left,Down,Up,Right} 110super + {Left,Down,Up,Right}
149 bspc node -v {-20 0,0 20,0 -20,20 0} 111 bspc node -v {-20 0,0 20,0 -20,20 0}
150
151#Volume
152XF86Audio{RaiseVolume,LowerVolume}
153 pulsemixer --change-volume {+5,-5}
154XF86AudioMute
155 pulsemixer --toggle-mute
156
157#Playerctl
158XF86Audio{Play,Next,Prev}
159 cmus-remote {-u,-n,-r}
160
161#light
162XF86MonBrightnessDown
163 sudo ~/bin/light d
164XF86MonBrightnessUp
165 sudo ~/bin/light u
diff --git a/x/.xinitrc b/x/.xinitrc
index e463e18..7cc89b1 100644
--- a/x/.xinitrc
+++ b/x/.xinitrc
@@ -1,17 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2#.xinitrc 2#/usr/bin/prime-offload &
3/usr/bin/prime-offload &
4xrdb -merge ~/.Xresources &
5xss-lock -- slock &
6xset b off &
7xset s 300 &
8setxkbmap -layout us -option caps:ctrl_modifier & 3setxkbmap -layout us -option caps:ctrl_modifier &
9xcape -e 'Caps_Lock=Escape' & 4xcape -e 'Caps_Lock=Escape' &
10# xrandr --setprovideroutputsource modesetting NVIDIA-0 5# xrandr --setprovideroutputsource modesetting NVIDIA-0
11# xrandr --auto 6# xrandr --auto
12~/.fehbg &
13urxvtd &
14~/.local/bin/bat_check.sh &
15picom &
16dunst &
17exec bspwm 7exec bspwm
diff --git a/zsh/.zshrc b/zsh/.zshrc
index c1e5c28..ebc4f94 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -9,7 +9,8 @@ export VISUAL=nvim
9export EDITOR="$VISUAL" 9export EDITOR="$VISUAL"
10export BROWSER=firefox 10export BROWSER=firefox
11export PATH=$PATH:$HOME/.local/bin:$HOME/bin 11export PATH=$PATH:$HOME/.local/bin:$HOME/bin
12export XDG_CURRENT_DESKTOP=spectrwm 12export TERM=rxvt-unicode-256color
13export XDG_CURRENT_DESKTOP=bspwm
13 14
14#aliases 15#aliases
15alias ls='ls --color=auto' 16alias ls='ls --color=auto'