diff options
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | alacritty/.config/alacritty/alacritty.yml | 2 | ||||
-rw-r--r-- | arch.png | bin | 0 -> 754559 bytes | |||
-rwxr-xr-x | bin/.local/bin/dotstow | 21 | ||||
-rwxr-xr-x | bin/.local/bin/fetch | 63 | ||||
-rwxr-xr-x | bin/.local/bin/gitit | 10 | ||||
-rwxr-xr-x | bin/.local/bin/unblock | 9 | ||||
-rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 11 | ||||
-rw-r--r-- | compton/.config/compton.conf | 228 | ||||
-rw-r--r-- | nvim/.config/nvim/init.vim | 40 | ||||
-rw-r--r-- | polybar/.config/polybar/config | 5 | ||||
-rw-r--r-- | rofi/.config/rofi/config | 51 | ||||
-rwxr-xr-x | rofi/.config/rofi/rofi-power.sh | 2 | ||||
-rw-r--r-- | sxhkd/.config/sxhkd/sxhkdrc | 6 | ||||
-rw-r--r-- | x/.Xresources | 18 | ||||
-rw-r--r-- | x/.xinitrc | 23 | ||||
-rw-r--r-- | zsh/.zshrc | 10 |
17 files changed, 394 insertions, 118 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..04999ab --- /dev/null +++ b/README.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # dot-files | ||
2 | Dot files for my setup (bspwm, rofi, compton, neovim, i3blocks, polybar, lockscreen, i3[not using anymore]) | ||
3 | |||
4 | ![alt text](arch.png) | ||
5 | |||
6 | # To replicate | ||
7 | ```shell | ||
8 | $ git clone https://github.com/anon6405/dotfiles.git | ||
9 | $ sudo pacman -S stow (use your choice of package manager) | ||
10 | $ cd dotfiles | ||
11 | $ stow * | ||
12 | ``` | ||
13 | That's all | ||
diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index c76c7d5..21ee0f5 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml | |||
@@ -42,7 +42,7 @@ font: | |||
42 | style: Regular | 42 | style: Regular |
43 | 43 | ||
44 | # Point size | 44 | # Point size |
45 | size: 9 | 45 | size: 8.5 |
46 | 46 | ||
47 | offset: | 47 | offset: |
48 | x: 0 | 48 | x: 0 |
diff --git a/arch.png b/arch.png new file mode 100644 index 0000000..c7f54c2 --- /dev/null +++ b/arch.png | |||
Binary files differ | |||
diff --git a/bin/.local/bin/dotstow b/bin/.local/bin/dotstow new file mode 100755 index 0000000..bcadc5e --- /dev/null +++ b/bin/.local/bin/dotstow | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # This script will Stow all the dotfiles located in the ~/dotfiles folder. | ||
4 | # The -R flag is used to force a 'restow' which will remove any existing symlinks before attempting to Stow. | ||
5 | |||
6 | echo "Stowing Dotfiles..."; | ||
7 | |||
8 | cd ~/dotfiles | ||
9 | for file in ~/dotfiles/*; do | ||
10 | # Only run Stow on the directories in the dotfiles folder and not the individual files. | ||
11 | # Using 'basename' strips the filepath from the directory name. | ||
12 | if [ -d ${file} ]; then | ||
13 | stow -R $(basename $file) | ||
14 | echo "$(basename $file) stowed."; | ||
15 | fi | ||
16 | done | ||
17 | |||
18 | # Return back to the your PWD from before you ran the script | ||
19 | cd ~- | ||
20 | |||
21 | echo 'All stowed'; | ||
diff --git a/bin/.local/bin/fetch b/bin/.local/bin/fetch new file mode 100755 index 0000000..609850c --- /dev/null +++ b/bin/.local/bin/fetch | |||
@@ -0,0 +1,63 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # ufetch-arch - tiny system info for arch | ||
4 | |||
5 | ## INFO | ||
6 | |||
7 | # user is already defined | ||
8 | host="$(hostname)" | ||
9 | os='Arch Linux' | ||
10 | kernel="$(uname -sr)" | ||
11 | uptime="$(uptime -p | sed 's/up //')" | ||
12 | packages="$(pacman -Q | wc -l)" | ||
13 | shell="$(basename ${SHELL})" | ||
14 | |||
15 | if [ -z "${WM}" ]; then | ||
16 | if [ "${XDG_CURRENT_DESKTOP}" ]; then | ||
17 | envtype='DE' | ||
18 | WM="${XDG_CURRENT_DESKTOP}" | ||
19 | elif [ "${DESKTOP_SESSION}" ]; then | ||
20 | envtype='DE' | ||
21 | WM="${DESKTOP_SESSION}" | ||
22 | else | ||
23 | envtype='WM' | ||
24 | WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)" | ||
25 | fi | ||
26 | else | ||
27 | envtype='WM' | ||
28 | fi | ||
29 | |||
30 | ## DEFINE COLORS | ||
31 | |||
32 | # probably don't change these | ||
33 | bold="$(tput bold)" | ||
34 | black="$(tput setaf 0)" | ||
35 | red="$(tput setaf 1)" | ||
36 | green="$(tput setaf 2)" | ||
37 | yellow="$(tput setaf 3)" | ||
38 | blue="$(tput setaf 4)" | ||
39 | magenta="$(tput setaf 5)" | ||
40 | cyan="$(tput setaf 6)" | ||
41 | white="$(tput setaf 7)" | ||
42 | reset="$(tput sgr0)" | ||
43 | |||
44 | # you can change these | ||
45 | lc="${reset}${bold}${cyan}" # labels | ||
46 | nc="${reset}${bold}${cyan}" # user and hostname | ||
47 | ic="${reset}${bold}${white}" # info | ||
48 | c0="${reset}${bold}${cyan}" # first color | ||
49 | c1="${reset}${cyan}" # second color | ||
50 | |||
51 | ## OUTPUT | ||
52 | |||
53 | cat <<EOF | ||
54 | |||
55 | ${c0} /\ ${nc}${USER}${ic}@${nc}${host}${reset} | ||
56 | ${c0} /^^\ ${lc}OS: ${ic}${os}${reset} | ||
57 | ${c0} /\ \ ${lc}KERNEL: ${ic}${kernel}${reset} | ||
58 | ${c0} / ${c1}__ \ ${lc}UPTIME: ${ic}${uptime}${reset} | ||
59 | ${c1} / ( ) \ ${lc}PACKAGES: ${ic}${packages}${reset} | ||
60 | ${c1} / __| |__\\\\ ${lc}SHELL: ${ic}${shell}${reset} | ||
61 | ${c1} /// \\\\\ ${lc}${envtype}: ${ic}${WM}${reset} | ||
62 | |||
63 | EOF | ||
diff --git a/bin/.local/bin/gitit b/bin/.local/bin/gitit new file mode 100755 index 0000000..af3eeec --- /dev/null +++ b/bin/.local/bin/gitit | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | set -e | ||
3 | printf "\033[0;32mDeploying updates to GitHub...\033[0m\n" | ||
4 | git add . | ||
5 | msg="changes" | ||
6 | if [ -n "$*" ]; then | ||
7 | msg="$*" | ||
8 | fi | ||
9 | git commit -m "$msg" | ||
10 | git push origin master | ||
diff --git a/bin/.local/bin/unblock b/bin/.local/bin/unblock new file mode 100755 index 0000000..cf3aa81 --- /dev/null +++ b/bin/.local/bin/unblock | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/sh | ||
2 | #whitelist escape | ||
3 | set -e | ||
4 | printf "\033[0;35mSetting wlo1 down....\033[0m\n" | ||
5 | sudo ip link set wlo1 down | ||
6 | printf "\033[0;36mChanging MAC address....\033[0m\n" | ||
7 | sudo macchanger --mac=60:8E:08:B2:38:77 wlo1 | ||
8 | printf "\033[0;32mEnjoy....\033[0m\n" | ||
9 | |||
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index ac37b7c..435fa42 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc | |||
@@ -1,17 +1,15 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | 2 | ||
3 | sxhkd & | 3 | sxhkd & |
4 | urxvtd & | ||
5 | dunst & | 4 | dunst & |
6 | xset b off & | ||
7 | xset s 600 & | ||
8 | xbacklight -set 40 & | ||
9 | xss-lock -- /home/ssaini/bin/lock & | ||
10 | unclutter & | 5 | unclutter & |
6 | xss-lock -- /home/fd0e/bin/lock & | ||
11 | compton --config ~/.config/compton.conf & | 7 | compton --config ~/.config/compton.conf & |
12 | ~/scrypts/bat_check.sh & | 8 | ~/scrypts/bat_check.sh & |
13 | redshift -l 13.082680:80.270718 & | 9 | redshift -l 13.082680:80.270718 & |
10 | xbacklight -set 30 & | ||
14 | feh --bg-fill ~/Pictures/road.jpg & | 11 | feh --bg-fill ~/Pictures/road.jpg & |
12 | urxvtd & | ||
15 | 13 | ||
16 | bspc monitor -d term web music files code virt chat game IX X | 14 | bspc monitor -d term web music files code virt chat game IX X |
17 | 15 | ||
@@ -22,7 +20,8 @@ bspc config split_ratio 0.52 | |||
22 | bspc config borderless_monocle true | 20 | bspc config borderless_monocle true |
23 | bspc config gapless_monocle true | 21 | bspc config gapless_monocle true |
24 | 22 | ||
25 | bspc rule -a Firefox desktop='^2' | 23 | bspc rule -a firefox desktop='^2' |
24 | bspc rule -a Brave-browser desktop='^2' | ||
26 | bspc rule -a Spotify desktop='^3' | 25 | bspc rule -a Spotify desktop='^3' |
27 | bspc rule -a telegram-desktop desktop='^7' | 26 | bspc rule -a telegram-desktop desktop='^7' |
28 | bspc rule -a Pcmanfm desktop='^4' | 27 | bspc rule -a Pcmanfm desktop='^4' |
diff --git a/compton/.config/compton.conf b/compton/.config/compton.conf index 58a96ef..e177591 100644 --- a/compton/.config/compton.conf +++ b/compton/.config/compton.conf | |||
@@ -1,58 +1,234 @@ | |||
1 | # Shadow | 1 | # Thank you code_nomad: http://9m.no/ꪯ鵞 |
2 | # Found on https://git.archlinux.org/svntogit/community.git/tree/trunk/compton.conf?h=packages/compton#n80 | ||
3 | |||
4 | ################################# | ||
5 | # | ||
6 | # Backend | ||
7 | # | ||
8 | ################################# | ||
9 | |||
10 | # Backend to use: "xrender" or "glx". | ||
11 | # GLX backend is typically much faster but depends on a sane driver. | ||
12 | backend = "glx"; | ||
13 | |||
14 | ################################# | ||
15 | # | ||
16 | # GLX backend | ||
17 | # | ||
18 | ################################# | ||
19 | |||
20 | glx-no-stencil = true; | ||
21 | |||
22 | # GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. | ||
23 | # My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, | ||
24 | # but a 20% increase when only 1/4 is. | ||
25 | # My tests on nouveau show terrible slowdown. | ||
26 | # Useful with --glx-swap-method, as well. | ||
27 | glx-copy-from-front = false; | ||
28 | |||
29 | # GLX backend: Use MESA_copy_sub_buffer to do partial screen update. | ||
30 | # My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. | ||
31 | # May break VSync and is not available on some drivers. | ||
32 | # Overrides --glx-copy-from-front. | ||
33 | # glx-use-copysubbuffermesa = true; | ||
34 | |||
35 | # GLX backend: Avoid rebinding pixmap on window damage. | ||
36 | # Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). | ||
37 | # Recommended if it works. | ||
38 | # glx-no-rebind-pixmap = true; | ||
39 | |||
40 | |||
41 | # GLX backend: GLX buffer swap method we assume. | ||
42 | # Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). | ||
43 | # undefined is the slowest and the safest, and the default value. | ||
44 | # copy is fastest, but may fail on some drivers, | ||
45 | # 2-6 are gradually slower but safer (6 is still faster than 0). | ||
46 | # Usually, double buffer means 2, triple buffer means 3. | ||
47 | # buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers. | ||
48 | # Useless with --glx-use-copysubbuffermesa. | ||
49 | # Partially breaks --resize-damage. | ||
50 | # Defaults to undefined. | ||
51 | glx-swap-method = "undefined"; | ||
52 | |||
53 | ################################# | ||
54 | # | ||
55 | # Shadows | ||
56 | # | ||
57 | ################################# | ||
58 | |||
59 | # Enabled client-side shadows on windows. | ||
2 | shadow = true; | 60 | shadow = true; |
61 | # Don't draw shadows on DND windows. | ||
3 | no-dnd-shadow = true; | 62 | no-dnd-shadow = true; |
63 | # Avoid drawing shadows on dock/panel windows. | ||
4 | no-dock-shadow = true; | 64 | no-dock-shadow = true; |
65 | # Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows. | ||
5 | clear-shadow = true; | 66 | clear-shadow = true; |
6 | shadow-radius = 7; | 67 | # The blur radius for shadows. (default 12) |
7 | shadow-offset-x = -7; | 68 | shadow-radius = 5; |
8 | shadow-offset-y = -7; | 69 | # The left offset for shadows. (default -15) |
70 | shadow-offset-x = -5; | ||
71 | # The top offset for shadows. (default -15) | ||
72 | shadow-offset-y = -5; | ||
73 | # The translucency for shadows. (default .75) | ||
9 | shadow-opacity = 0.5; | 74 | shadow-opacity = 0.5; |
10 | shadow-exclude = [ "class_g = 'Firefox' && argb", "bounding_shaped" ]; | ||
11 | 75 | ||
76 | # Set if you want different colour shadows | ||
77 | # shadow-red = 0.0; | ||
78 | # shadow-green = 0.0; | ||
79 | # shadow-blue = 0.0; | ||
80 | |||
81 | # The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches | ||
82 | # (most applications are fine, only apps that do weird things with xshapes or argb are affected). | ||
83 | # This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher. | ||
84 | shadow-exclude = [ | ||
85 | "! name~=''", | ||
86 | "name = 'Notification'", | ||
87 | "name = 'Plank'", | ||
88 | "name = 'Docky'", | ||
89 | "name = 'Kupfer'", | ||
90 | "name = 'xfce4-notifyd'", | ||
91 | "name *= 'VLC'", | ||
92 | "name *= 'compton'", | ||
93 | "name *= 'Chromium'", | ||
94 | "name *= 'Chrome'", | ||
95 | "class_g = 'Conky'", | ||
96 | "class_g = 'Kupfer'", | ||
97 | "class_g = 'Synapse'", | ||
98 | "class_g ?= 'Notify-osd'", | ||
99 | "class_g ?= 'Cairo-dock'", | ||
100 | "class_g ?= 'Xfce4-notifyd'", | ||
101 | "class_g ?= 'Xfce4-power-manager'", | ||
102 | "_GTK_FRAME_EXTENTS@:c" | ||
103 | ]; | ||
104 | # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) | ||
105 | shadow-ignore-shaped = false; | ||
106 | |||
107 | ################################# | ||
108 | # | ||
12 | # Opacity | 109 | # Opacity |
13 | menu-opacity = 1.0; | 110 | # |
14 | inactive-opacity = 1.0; | 111 | ################################# |
112 | |||
113 | menu-opacity = 0.9; | ||
114 | inactive-opacity = 0.9; | ||
115 | active-opacity = 1; | ||
116 | frame-opacity = 1; | ||
117 | inactive-opacity-override = false; | ||
15 | alpha-step = 0.06; | 118 | alpha-step = 0.06; |
16 | blur-background = false; | 119 | |
17 | blur-kern = "3x3box"; | 120 | # Dim inactive windows. (0.0 - 1.0) |
121 | inactive-dim = 0.1; | ||
122 | # Do not let dimness adjust based on window opacity. | ||
123 | # inactive-dim-fixed = true; | ||
124 | # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. | ||
125 | # blur-background = true; | ||
126 | # Blur background of opaque windows with transparent frames as well. | ||
127 | # blur-background-frame = true; | ||
128 | # Do not let blur radius adjust based on window opacity. | ||
18 | blur-background-fixed = false; | 129 | blur-background-fixed = false; |
19 | blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ]; | 130 | blur-background-exclude = [ |
131 | "window_type = 'dock'", | ||
132 | "window_type = 'desktop'" | ||
133 | ]; | ||
20 | 134 | ||
135 | ################################# | ||
136 | # | ||
21 | # Fading | 137 | # Fading |
138 | # | ||
139 | ################################# | ||
140 | |||
141 | # Fade windows during opacity changes. | ||
22 | fading = true; | 142 | fading = true; |
23 | fade-delta = 5; | 143 | # The time between steps in a fade in milliseconds. (default 10). |
144 | fade-delta = 4; | ||
145 | # Opacity change between steps while fading in. (default 0.028). | ||
24 | fade-in-step = 0.03; | 146 | fade-in-step = 0.03; |
147 | # Opacity change between steps while fading out. (default 0.03). | ||
25 | fade-out-step = 0.03; | 148 | fade-out-step = 0.03; |
149 | # Fade windows in/out when opening/closing | ||
150 | # no-fading-openclose = true; | ||
151 | |||
152 | # Specify a list of conditions of windows that should not be faded. | ||
26 | fade-exclude = [ ]; | 153 | fade-exclude = [ ]; |
27 | 154 | ||
155 | ################################# | ||
156 | # | ||
28 | # Other | 157 | # Other |
29 | backend = "glx"; | 158 | # |
159 | ################################# | ||
160 | |||
161 | # Try to detect WM windows and mark them as active. | ||
30 | mark-wmwin-focused = true; | 162 | mark-wmwin-focused = true; |
163 | # Mark all non-WM but override-redirect windows active (e.g. menus). | ||
31 | mark-ovredir-focused = true; | 164 | mark-ovredir-focused = true; |
32 | use-ewmh-active-win = false; | 165 | # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events. |
166 | # Usually more reliable but depends on a EWMH-compliant WM. | ||
167 | use-ewmh-active-win = true; | ||
168 | # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. | ||
33 | detect-rounded-corners = true; | 169 | detect-rounded-corners = true; |
170 | |||
171 | # Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows. | ||
172 | # This prevents opacity being ignored for some apps. | ||
173 | # For example without this enabled my xfce4-notifyd is 100% opacity no matter what. | ||
34 | detect-client-opacity = true; | 174 | detect-client-opacity = true; |
175 | |||
176 | # Specify refresh rate of the screen. | ||
177 | # If not specified or 0, compton will try detecting this with X RandR extension. | ||
35 | refresh-rate = 0; | 178 | refresh-rate = 0; |
36 | vsync = "none"; | 179 | |
180 | # Set VSync method. VSync methods currently available: | ||
181 | # none: No VSync | ||
182 | # drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers. | ||
183 | # opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers. | ||
184 | # opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers. | ||
185 | # opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental. | ||
186 | # opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use. | ||
187 | # (Note some VSync methods may not be enabled at compile time.) | ||
188 | vsync = "opengl-swc"; | ||
189 | |||
190 | # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. | ||
191 | # Reported to have no effect, though. | ||
37 | dbe = false; | 192 | dbe = false; |
193 | # Painting on X Composite overlay window. Recommended. | ||
38 | paint-on-overlay = true; | 194 | paint-on-overlay = true; |
39 | sw-opti = false; | 195 | |
40 | unredir-if-possible = false; | 196 | # Limit compton to repaint at most once every 1 / refresh_rate second to boost performance. |
197 | # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, | ||
198 | # unless you wish to specify a lower refresh rate than the actual value. | ||
199 | sw-opti = true; | ||
200 | |||
201 | # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. | ||
202 | # Known to cause flickering when redirecting/unredirecting windows. | ||
203 | # paint-on-overlay may make the flickering less obvious. | ||
204 | unredir-if-possible = true; | ||
205 | |||
206 | # Specify a list of conditions of windows that should always be considered focused. | ||
41 | focus-exclude = [ ]; | 207 | focus-exclude = [ ]; |
208 | |||
209 | # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time. | ||
42 | detect-transient = true; | 210 | detect-transient = true; |
211 | # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time. | ||
212 | # WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too. | ||
43 | detect-client-leader = true; | 213 | detect-client-leader = true; |
44 | invert-color-include = [ ]; | ||
45 | |||
46 | # GLX backend | ||
47 | glx-no-stencil = true; | ||
48 | glx-copy-from-front = false; | ||
49 | glx-use-copysubbuffermesa = false; | ||
50 | glx-no-rebind-pixmap = false; | ||
51 | glx-swap-method = "undefined"; | ||
52 | 214 | ||
215 | ################################# | ||
216 | # | ||
53 | # Window type settings | 217 | # Window type settings |
218 | # | ||
219 | ################################# | ||
220 | |||
54 | wintypes: | 221 | wintypes: |
55 | { | 222 | { |
56 | tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; }; | 223 | tooltip = |
224 | { | ||
225 | # fade: Fade the particular type of windows. | ||
226 | fade = true; | ||
227 | # shadow: Give those windows shadow | ||
228 | shadow = false; | ||
229 | # opacity: Default opacity for the type of windows. | ||
230 | opacity = 0.85; | ||
231 | # focus: Whether to always consider windows of this type focused. | ||
232 | focus = true; | ||
233 | }; | ||
57 | }; | 234 | }; |
58 | |||
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 730f54c..59ce2b3 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim | |||
@@ -38,8 +38,6 @@ set copyindent " copy indent from the previous line | |||
38 | 38 | ||
39 | " deoplete | 39 | " deoplete |
40 | let g:deoplete#enable_at_startup = 1 | 40 | let g:deoplete#enable_at_startup = 1 |
41 | "let g:python3_host_prog= '/bin/python3' | ||
42 | "let g:python_host_prog= '/bin/python2' | ||
43 | 41 | ||
44 | " git gutter settings | 42 | " git gutter settings |
45 | let g:gitgutter_override_sign_column_highlight = 0 | 43 | let g:gitgutter_override_sign_column_highlight = 0 |
@@ -108,27 +106,27 @@ if !exists('g:airline_symbols') | |||
108 | endif | 106 | endif |
109 | 107 | ||
110 | " unicode symbols | 108 | " unicode symbols |
111 | "let g:airline_left_sep = '»' | 109 | let g:airline_left_sep = '»' |
112 | "let g:airline_left_sep = '▶' | 110 | let g:airline_left_sep = '▶' |
113 | "let g:airline_right_sep = '«' | 111 | let g:airline_right_sep = '«' |
114 | "let g:airline_right_sep = '◀' | 112 | let g:airline_right_sep = '◀' |
115 | "let g:airline_symbols.linenr = '␊' | 113 | let g:airline_symbols.linenr = '␊' |
116 | "let g:airline_symbols.linenr = '' | 114 | let g:airline_symbols.linenr = '' |
117 | "let g:airline_symbols.linenr = '¶' | 115 | let g:airline_symbols.linenr = '¶' |
118 | "let g:airline_symbols.branch = '⎇' | 116 | let g:airline_symbols.branch = '⎇' |
119 | "let g:airline_symbols.paste = 'ρ' | 117 | let g:airline_symbols.paste = 'ρ' |
120 | "let g:airline_symbols.paste = 'Þ' | 118 | let g:airline_symbols.paste = 'Þ' |
121 | "let g:airline_symbols.paste = '∥' | 119 | let g:airline_symbols.paste = '∥' |
122 | "let g:airline_symbols.whitespace = 'Ξ' | 120 | let g:airline_symbols.whitespace = 'Ξ' |
123 | 121 | ||
124 | " airline symbols | 122 | " airline symbols |
125 | "let g:airline_left_sep = '' | 123 | let g:airline_left_sep = '' |
126 | "let g:airline_left_alt_sep = '' | 124 | let g:airline_left_alt_sep = '' |
127 | "let g:airline_right_sep = '' | 125 | let g:airline_right_sep = '' |
128 | "let g:airline_right_alt_sep = '' | 126 | let g:airline_right_alt_sep = '' |
129 | "let g:airline_symbols.branch = '' | 127 | let g:airline_symbols.branch = '' |
130 | "let g:airline_symbols.readonly = '' | 128 | let g:airline_symbols.readonly = '' |
131 | "let g:airline_symbols.linenr = '' | 129 | let g:airline_symbols.linenr = '' |
132 | 130 | ||
133 | "Airline Themes | 131 | "Airline Themes |
134 | "let g:airline_theme='dark' | 132 | "let g:airline_theme='dark' |
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 90d308f..942cb19 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config | |||
@@ -5,6 +5,7 @@ screenchange-reload = true | |||
5 | #background = ${xrdb:color0:#222} | 5 | #background = ${xrdb:color0:#222} |
6 | background = ${xrdb:background:#0d0f14} | 6 | background = ${xrdb:background:#0d0f14} |
7 | background-alt = ${xrdb:color0:#000} | 7 | background-alt = ${xrdb:color0:#000} |
8 | ;foreground = ${xrdb:color7:#222} | ||
8 | foreground = ${xrdb:foreground:#c5c8c6} | 9 | foreground = ${xrdb:foreground:#c5c8c6} |
9 | foreground-alt = ${xrdb:colorBD:#444} | 10 | foreground-alt = ${xrdb:colorBD:#444} |
10 | primary = ${xrdb:color4:#ffb52a} | 11 | primary = ${xrdb:color4:#ffb52a} |
@@ -64,7 +65,7 @@ ws-icon-7 = game;戮 | |||
64 | ws-icon-default = | 65 | ws-icon-default = |
65 | 66 | ||
66 | label-focused = %name% | 67 | label-focused = %name% |
67 | label-focused-foreground = ${xrdb:color6:#ffd7b1} | 68 | label-focused-foreground = ${xrdb:color4:#ffd7b1} |
68 | label-focused-padding = 1 | 69 | label-focused-padding = 1 |
69 | ;label-focused-font = 10 | 70 | ;label-focused-font = 10 |
70 | 71 | ||
@@ -125,7 +126,7 @@ full-at = 98 | |||
125 | label-discharging = %percentage%% | 126 | label-discharging = %percentage%% |
126 | label-charging = %percentage%% | 127 | label-charging = %percentage%% |
127 | label-full = %percentage%% | 128 | label-full = %percentage%% |
128 | format-discharging = <ramp-capacity> <label-discharging> | 129 | format-discharging = <ramp-capacity> <label-discharging> |
129 | format-full = <ramp-capacity> <label-full> | 130 | format-full = <ramp-capacity> <label-full> |
130 | format-charging = <label-charging> | 131 | format-charging = <label-charging> |
131 | ramp-capacity-0 = | 132 | ramp-capacity-0 = |
diff --git a/rofi/.config/rofi/config b/rofi/.config/rofi/config index 499f20f..5d6b73f 100644 --- a/rofi/.config/rofi/config +++ b/rofi/.config/rofi/config | |||
@@ -1,42 +1,11 @@ | |||
1 | rofi.modi: ssh,drun,run | 1 | !rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi |
2 | rofi.sidebar-mode: true | 2 | rofi.lines: 6 |
3 | rofi.terminal: termite | 3 | !rofi.separator-style: none |
4 | rofi.ssh-client: ssh | 4 | !rofi.columns: 1 |
5 | rofi.ssh-command: {terminal} -e "{ssh-client} {host}" | 5 | rofi.font: Hermit 12 |
6 | rofi.opacity: 100 | 6 | !rofi.bw: 0 |
7 | rofi.width: 50 | 7 | !rofi.eh: 2 |
8 | rofi.lines: 8 | 8 | !rofi.hide-scrollbar: true |
9 | rofi.columns: 1 | 9 | rofi.auto-select: false |
10 | rofi.font: Hermit 12 | 10 | !rofi.display-drun:? |
11 | rofi.fg: #5294E2 | ||
12 | rofi.bg: #5d729f | ||
13 | rofi.fg-active: #34405a | ||
14 | rofi.fg-urgent: #34405a | ||
15 | rofi.hlfg-active: #5e73a0 | ||
16 | rofi.hlfg-urgent: #5e73a0 | ||
17 | rofi.bg-active: #34405a | ||
18 | rofi.bg-urgent: #34405a | ||
19 | rofi.hlbg-active: #5d729f | ||
20 | rofi.hlbg-urgent: #5d729f | ||
21 | rofi.bgalt: #5671a0 | ||
22 | rofi.hlfg: #34405a | ||
23 | rofi.hlbg: #34405a | ||
24 | rofi.bc: #789ee1 | ||
25 | ! State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg' | ||
26 | rofi.color-normal: #353944, #FFFFFF, #353944, #5294E2, #FFFFFF | ||
27 | rofi.color-normal: #353944, #FFFFFF, #353944, #5294E2, #FFFFFF | ||
28 | rofi.color-normal: #353944, #FFFFFF, #353944, #5294E2, #FFFFFF | ||
29 | 11 | ||
30 | ! 'background', 'border' | ||
31 | rofi.color-window: #353944, #404552 | ||
32 | rofi.bw: 10 | ||
33 | rofi.location: 0 | ||
34 | rofi.padding: 20 | ||
35 | rofi.levenshtein-sort: true | ||
36 | rofi.case-sensitive: false | ||
37 | rofi.fuzzy: false | ||
38 | rofi.line-margin: 2 | ||
39 | rofi.separator-style: solid | ||
40 | rofi.hide-scrollbar: true | ||
41 | rofi.markup-rows: false | ||
42 | rofi.scrollbar-width: 8 | ||
diff --git a/rofi/.config/rofi/rofi-power.sh b/rofi/.config/rofi/rofi-power.sh index 4cc4080..6aecdbb 100755 --- a/rofi/.config/rofi/rofi-power.sh +++ b/rofi/.config/rofi/rofi-power.sh | |||
@@ -30,7 +30,7 @@ then | |||
30 | suspend | 30 | suspend |
31 | ;; | 31 | ;; |
32 | Lock) | 32 | Lock) |
33 | /home/ssaini/.local/bin/lock | 33 | light-locker-command -l |
34 | ;; | 34 | ;; |
35 | *) | 35 | *) |
36 | ;; | 36 | ;; |
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 63ca260..7e91465 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc | |||
@@ -1,9 +1,9 @@ | |||
1 | # wm independent hotkeys | 1 | # wm independent hotkeys |
2 | ## terminal emulator | 2 | ## terminal emulator |
3 | super + Return | 3 | super + Return |
4 | alacritty | 4 | urxvtc |
5 | super + shift + Return | 5 | super + shift + Return |
6 | bspc rule -a \* -o state=floating && alacritty | 6 | bspc rule -a \* -o state=floating && urxvtc |
7 | 7 | ||
8 | # program launcher | 8 | # program launcher |
9 | super + @space | 9 | super + @space |
@@ -30,7 +30,7 @@ super + Escape | |||
30 | super + shift + w | 30 | super + shift + w |
31 | firefox | 31 | firefox |
32 | control + alt + l | 32 | control + alt + l |
33 | ~/.local/bin/lock | 33 | light-locker-command -l |
34 | super + shift + f | 34 | super + shift + f |
35 | pcmanfm | 35 | pcmanfm |
36 | 36 | ||
diff --git a/x/.Xresources b/x/.Xresources index 63035d7..d58b278 100644 --- a/x/.Xresources +++ b/x/.Xresources | |||
@@ -57,14 +57,14 @@ URxvt*inheritPixmap: False | |||
57 | *color15: #e0dede | 57 | *color15: #e0dede |
58 | 58 | ||
59 | ! Perls | 59 | ! Perls |
60 | !URxvt.perl-ext-common : default,matcher,keyboard-select,url-select | 60 | URxvt.perl-ext-common : default,matcher,keyboard-select,url-select |
61 | !URxvt.resize-font.step: 1 | 61 | URxvt.resize-font.step: 1 |
62 | !URxvt.keysym.M-Escape : perl:keyboard-select:activate | 62 | URxvt.keysym.M-Escape : perl:keyboard-select:activate |
63 | !URxvt.keysym.M-u : perl:url-select:select_next | 63 | URxvt.keysym.M-u : perl:url-select:select_next |
64 | !URxvt.keysym.M-s : perl:keyboard-select:search | 64 | URxvt.keysym.M-s : perl:keyboard-select:search |
65 | !URxvt.perl-ext-common : tabbed,default,matcher | 65 | !URxvt.perl-ext-common : tabbed,default,matcher |
66 | !Urxvt.perl-lib : /usr/lib/urxvt/perl/ | 66 | !Urxvt.perl-lib : /usr/lib/urxvt/perl/ |
67 | !URxvt.url-select.launcher : firefox | 67 | URxvt.url-select.launcher : firefox |
68 | !URxvt.url-select.autocopy : true | 68 | URxvt.url-select.autocopy : true |
69 | !URxvt.url-select.underline : true | 69 | URxvt.url-select.underline : true |
70 | !URxvt.url-select.button: 1 | 70 | URxvt.url-select.button: 1 |
@@ -40,6 +40,25 @@ if [ -n "$DISPLAY" ]; then | |||
40 | xset b off | 40 | xset b off |
41 | fi | 41 | fi |
42 | 42 | ||
43 | xsetroot -cursor_name left_ptr | 43 | # load additional configs |
44 | xset +fp /usr/share/fonts/liberation-fonts | 44 | if [ "$2" = "nvidia" ]; then |
45 | XINIT_D="/etc/X11/nvidia/xinit/xinitrc.d" | ||
46 | else | ||
47 | XINIT_D="/etc/X11/xinit/xinitrc.d" | ||
48 | fi | ||
49 | |||
50 | if [ -d "$XINIT_D" ]; then | ||
51 | for f in "$XINIT_D/?*.sh" ; do | ||
52 | [ -x "$f" ] && . "$f" | ||
53 | done | ||
54 | unset f | ||
55 | fi | ||
56 | unset XINIT_D | ||
57 | |||
58 | # additional nvidia specific settings | ||
59 | if [ "$2" = "nvidia" ]; then | ||
60 | xrandr --setprovideroutputsource modesetting NVIDIA-0 | ||
61 | xrandr --auto | ||
62 | fi | ||
63 | |||
45 | exec bspwm | 64 | exec bspwm |
@@ -2,11 +2,11 @@ | |||
2 | # export PATH=$HOME/bin:/usr/local/bin:$PATH | 2 | # export PATH=$HOME/bin:/usr/local/bin:$PATH |
3 | 3 | ||
4 | # Path to your oh-my-zsh installation. | 4 | # Path to your oh-my-zsh installation. |
5 | export ZSH="/home/ssaini/.oh-my-zsh" | 5 | export ZSH="/home/fd0e/.oh-my-zsh" |
6 | export VISUAL=nvim | 6 | export VISUAL=nvim |
7 | export EDITOR="$VISUAL" | 7 | export EDITOR="$VISUAL" |
8 | export BROWSER=firefox | 8 | export BROWSER=firefox |
9 | export PATH=$PATH:$HOME/bin | 9 | export PATH=$PATH:$HOME/.local/bin:$HOME/bin |
10 | export XDG_CURRENT_DESKTOP=bspwm | 10 | export XDG_CURRENT_DESKTOP=bspwm |
11 | 11 | ||
12 | # Set name of the theme to load --- if set to "random", it will | 12 | # Set name of the theme to load --- if set to "random", it will |
@@ -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 extract python common-aliases archlinux fzf autojump) | 76 | plugins=(git sudo archlinux extract python common-aliases autojump fzf) |
77 | 77 | ||
78 | source $ZSH/oh-my-zsh.sh | 78 | source $ZSH/oh-my-zsh.sh |
79 | 79 | ||
@@ -114,6 +114,7 @@ alias weather="curl wttr.in" | |||
114 | alias py="/bin/python" | 114 | alias py="/bin/python" |
115 | alias py2="/bin/python2" | 115 | alias py2="/bin/python2" |
116 | alias pubip="curl ipinfo.io/ip" | 116 | alias pubip="curl ipinfo.io/ip" |
117 | alias mirror="sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist" | ||
117 | alias k="pkill " | 118 | alias k="pkill " |
118 | alias m="cmus" | 119 | alias m="cmus" |
119 | alias vimrc="vim $HOME/.config/nvim/init.vim" | 120 | alias vimrc="vim $HOME/.config/nvim/init.vim" |
@@ -122,8 +123,6 @@ alias z="zathura" | |||
122 | alias v="/usr/bin/nvim" | 123 | alias v="/usr/bin/nvim" |
123 | alias vim="/usr/bin/nvim" | 124 | alias vim="/usr/bin/nvim" |
124 | alias sudo="sudo " | 125 | alias sudo="sudo " |
125 | alias drctf="docker run --rm -v $PWD:/ctf --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name ctf -i ctf" | ||
126 | alias dectf="docker exec -it ctf /bin/bash" | ||
127 | 126 | ||
128 | source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh | 127 | source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh |
129 | source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | 128 | source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
@@ -139,4 +138,3 @@ source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zs | |||
139 | 138 | ||
140 | # To add support for TTYs this line can be optionally added. | 139 | # To add support for TTYs this line can be optionally added. |
141 | #source ~/.cache/wal/colors-tty.sh | 140 | #source ~/.cache/wal/colors-tty.sh |
142 | |||