diff options
author | Shubham Saini <pryr@pryr.xyz> | 2020-12-01 20:21:04 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2020-12-01 20:21:04 +0000 |
commit | 1ff834e2b06761b083df9959d6c3d6bd2a94d2de (patch) | |
tree | abb8ff13bab1c6b5a0c0b17f2d29c058358d2135 | |
parent | 90e96958f919df1f914381e93a97d77506fdcf03 (diff) |
mah thinkpad
-rwxr-xr-x | bin/.bin/bat_check (renamed from bin/.local/bin/bat_check.sh) | 0 | ||||
-rwxr-xr-x | bin/.bin/dotstow (renamed from bin/.local/bin/dotstow) | 0 | ||||
-rwxr-xr-x | bin/.bin/fixmap | 2 | ||||
-rwxr-xr-x | bin/.bin/gitit (renamed from bin/.local/bin/gitit) | 0 | ||||
-rwxr-xr-x | bin/.bin/lay | 3 | ||||
-rwxr-xr-x | bin/.bin/lay_both | 2 | ||||
-rwxr-xr-x | bin/.bin/lay_edp | 2 | ||||
-rwxr-xr-x | bin/.bin/lay_hdmi | 2 | ||||
-rwxr-xr-x | bin/.bin/lemonconf | 74 | ||||
-rwxr-xr-x | bin/.bin/light (renamed from bin/.local/bin/light) | 2 | ||||
-rwxr-xr-x | bin/.bin/pcolor | 3 | ||||
-rwxr-xr-x | bin/.bin/pkg | 22 | ||||
-rwxr-xr-x | bin/.bin/record (renamed from bin/.local/bin/record) | 2 | ||||
-rwxr-xr-x | bin/.bin/shut (renamed from bin/.local/bin/shut) | 0 | ||||
-rwxr-xr-x | bin/.bin/statusbar (renamed from bin/.local/bin/statusbar) | 0 | ||||
-rwxr-xr-x | bin/.bin/sysinfo | 20 | ||||
-rwxr-xr-x | bin/.bin/temp (renamed from bin/.local/bin/temp) | 0 | ||||
-rwxr-xr-x | bin/.bin/unblock (renamed from bin/.local/bin/unblock) | 0 | ||||
-rwxr-xr-x | bin/.bin/update-resolv-conf.sh | 71 | ||||
-rwxr-xr-x | bin/.bin/wpa | 16 | ||||
-rwxr-xr-x | bin/.local/bin/lock | 6 | ||||
-rwxr-xr-x | bin/.local/bin/screenshot | 16 | ||||
-rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 4 | ||||
-rwxr-xr-x | picom/.config/picom.conf | 4 | ||||
-rwxr-xr-x | polybar/.config/polybar/config | 2 | ||||
-rwxr-xr-x | sxhkd/.config/sxhkd/sxhkdrc | 10 | ||||
-rwxr-xr-x | x/.Xresources | 9 | ||||
-rwxr-xr-x | x/.xinitrc | 4 | ||||
-rwxr-xr-x | zsh/.zshrc | 4 |
29 files changed, 237 insertions, 43 deletions
diff --git a/bin/.local/bin/bat_check.sh b/bin/.bin/bat_check index 547b976..547b976 100755 --- a/bin/.local/bin/bat_check.sh +++ b/bin/.bin/bat_check | |||
diff --git a/bin/.local/bin/dotstow b/bin/.bin/dotstow index bcadc5e..bcadc5e 100755 --- a/bin/.local/bin/dotstow +++ b/bin/.bin/dotstow | |||
diff --git a/bin/.bin/fixmap b/bin/.bin/fixmap new file mode 100755 index 0000000..e937e7c --- /dev/null +++ b/bin/.bin/fixmap | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/bash | ||
2 | setxkbmap -layout us -option caps:ctrl_modifier | ||
diff --git a/bin/.local/bin/gitit b/bin/.bin/gitit index 5d576c2..5d576c2 100755 --- a/bin/.local/bin/gitit +++ b/bin/.bin/gitit | |||
diff --git a/bin/.bin/lay b/bin/.bin/lay new file mode 100755 index 0000000..b891ab1 --- /dev/null +++ b/bin/.bin/lay | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | ~/bin/lay_hdmi | ||
3 | xrandr --output HDMI-1 --primary --mode 1366x768 --pos 0x0 --rotate normal --output eDP-1 --mode 1366x768 --pos 1366x0 --rotate normal | ||
diff --git a/bin/.bin/lay_both b/bin/.bin/lay_both new file mode 100755 index 0000000..245ff20 --- /dev/null +++ b/bin/.bin/lay_both | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | xrandr --output eDP-1 --primary --mode 1366x768 --pos 0x0 --rotate normal --output HDMI-1 --mode 1366x768 --pos 0x0 --rotate normal | ||
diff --git a/bin/.bin/lay_edp b/bin/.bin/lay_edp new file mode 100755 index 0000000..e83d882 --- /dev/null +++ b/bin/.bin/lay_edp | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | xrandr --output eDP-1 --primary --mode 1366x768 --pos 0x0 --rotate normal --output HDMI-1 --off | ||
diff --git a/bin/.bin/lay_hdmi b/bin/.bin/lay_hdmi new file mode 100755 index 0000000..9f84242 --- /dev/null +++ b/bin/.bin/lay_hdmi | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | xrandr --output eDP-1 --off --output HDMI-1 --mode 1366x768 --pos 0x0 --rotate normal | ||
diff --git a/bin/.bin/lemonconf b/bin/.bin/lemonconf new file mode 100755 index 0000000..cb5e505 --- /dev/null +++ b/bin/.bin/lemonconf | |||
@@ -0,0 +1,74 @@ | |||
1 | #!/bin/bash | ||
2 | # Outputs a configuration for lemonbar | ||
3 | |||
4 | vol(){ | ||
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 | |||
14 | bat() { | ||
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 | |||
24 | dte() { | ||
25 | dte=$(date +"%a, %b %d") | ||
26 | echo -e "%{F#787878}date%{F-} $dte " | ||
27 | } | ||
28 | |||
29 | tie() { | ||
30 | tme=$(date +"%I:%M %P") | ||
31 | echo -e "%{F#787878}time%{F-} $tme " | ||
32 | } | ||
33 | |||
34 | groups() { | ||
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 | |||
44 | workspaces() { | ||
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 | |||
70 | while true; do | ||
71 | echo " $(vol) $(bat) $(tie) $(dte) %{F#787878}%{r}$(workspaces)%{F-} " | ||
72 | xdo above -t $(xdo id -n root) $(xdo id -n lemonbar) | ||
73 | sleep 3 | ||
74 | done | ||
diff --git a/bin/.local/bin/light b/bin/.bin/light index b34150f..bba7e82 100755 --- a/bin/.local/bin/light +++ b/bin/.bin/light | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash |
2 | # brightness wrapper | 2 | # brightness wrapper |
3 | 3 | ||
4 | case "$1" in | 4 | case "$1" in |
diff --git a/bin/.bin/pcolor b/bin/.bin/pcolor new file mode 100755 index 0000000..4cc28a0 --- /dev/null +++ b/bin/.bin/pcolor | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/bash | ||
2 | pcs() { for i in {0..7}; do echo -en "\e[${1}$((30+$i))m \u2588\u2588 \e[0m"; done; } | ||
3 | printf "\n%s\n%s\n\n" "$(pcs)" "$(pcs '1;')" | ||
diff --git a/bin/.bin/pkg b/bin/.bin/pkg new file mode 100755 index 0000000..5eea459 --- /dev/null +++ b/bin/.bin/pkg | |||
@@ -0,0 +1,22 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | case "$1" in | ||
4 | i*) | ||
5 | sudo xbps-install "$@" | ||
6 | ;; | ||
7 | d*) | ||
8 | sudo xbps-remove -R "$@" | ||
9 | ;; | ||
10 | q*) | ||
11 | sudo xbps-query "$@" | ||
12 | ;; | ||
13 | u*) | ||
14 | sudo xbps-install -Syu | ||
15 | ;; | ||
16 | o*) | ||
17 | sudo xbps-remove -Oo | ||
18 | ;; | ||
19 | *) | ||
20 | printf "i - install\nd - delete\nq - query\nu - update\no - remove obs" | ||
21 | ;; | ||
22 | esac | ||
diff --git a/bin/.local/bin/record b/bin/.bin/record index f254e20..5c6b499 100755 --- a/bin/.local/bin/record +++ b/bin/.bin/record | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | ffmpeg -f x11grab \ | 3 | ffmpeg -f x11grab \ |
4 | -s 1366x768 \ | 4 | -s 1980x1080 \ |
5 | -an -i :0.0 \ | 5 | -an -i :0.0 \ |
6 | -c:v libvpx \ | 6 | -c:v libvpx \ |
7 | -b:v 5M \ | 7 | -b:v 5M \ |
diff --git a/bin/.local/bin/shut b/bin/.bin/shut index 1fb1295..1fb1295 100755 --- a/bin/.local/bin/shut +++ b/bin/.bin/shut | |||
diff --git a/bin/.local/bin/statusbar b/bin/.bin/statusbar index c506244..c506244 100755 --- a/bin/.local/bin/statusbar +++ b/bin/.bin/statusbar | |||
diff --git a/bin/.bin/sysinfo b/bin/.bin/sysinfo new file mode 100755 index 0000000..4f9f456 --- /dev/null +++ b/bin/.bin/sysinfo | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/bash | ||
2 | # | ||
3 | # System info | ||
4 | |||
5 | wm="$(echo $XDG_CURRENT_DESKTOP)" | ||
6 | distro="$(cat /etc/*-release | grep PRETTY_NAME | cut -d '=' -f2 | tr -d '"')" | ||
7 | packages="$(xbps-query -l | wc -l)" | ||
8 | font="jetbrains mono" | ||
9 | colors="pencil" | ||
10 | |||
11 | printf " \e[0m\n" | ||
12 | printf " \e[1;34m distro \e[0m$distro\n" | ||
13 | printf " \e[1;34m pkgs \e[0m$packages\n" | ||
14 | printf " \e[1;34m wm \e[0m$wm\n" | ||
15 | printf " \e[1;34m font \e[0m$font $fontsize\n" | ||
16 | printf " \e[1;34m colors \e[0m$colors\n" | ||
17 | printf " \e[0m\n" | ||
18 | |||
19 | pcs() { for i in {0..7}; do echo -en "\e[${1}$((30+$i))m \u2588\u2588 \e[0m"; done; } | ||
20 | printf "\n%s\n%s\n\n" "$(pcs)" "$(pcs '1;')" | ||
diff --git a/bin/.local/bin/temp b/bin/.bin/temp index fec8439..fec8439 100755 --- a/bin/.local/bin/temp +++ b/bin/.bin/temp | |||
diff --git a/bin/.local/bin/unblock b/bin/.bin/unblock index 257c4fb..257c4fb 100755 --- a/bin/.local/bin/unblock +++ b/bin/.bin/unblock | |||
diff --git a/bin/.bin/update-resolv-conf.sh b/bin/.bin/update-resolv-conf.sh new file mode 100755 index 0000000..16622a1 --- /dev/null +++ b/bin/.bin/update-resolv-conf.sh | |||
@@ -0,0 +1,71 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | # | ||
3 | # Parses DHCP options from openvpn to update resolv.conf | ||
4 | # To use set as 'up' and 'down' script in your openvpn *.conf: | ||
5 | # up /etc/openvpn/update-resolv-conf | ||
6 | # down /etc/openvpn/update-resolv-conf | ||
7 | # | ||
8 | # Used snippets of resolvconf script by Thomas Hood <jdthood@yahoo.co.uk> | ||
9 | # and Chris Hanson | ||
10 | # Licensed under the GNU GPL. See /usr/share/common-licenses/GPL. | ||
11 | # 07/2013 colin@daedrum.net Fixed intet name | ||
12 | # 05/2006 chlauber@bnc.ch | ||
13 | # | ||
14 | # Example envs set from openvpn: | ||
15 | # foreign_option_1='dhcp-option DNS 193.43.27.132' | ||
16 | # foreign_option_2='dhcp-option DNS 193.43.27.133' | ||
17 | # foreign_option_3='dhcp-option DOMAIN be.bnc.ch' | ||
18 | # foreign_option_4='dhcp-option DOMAIN-SEARCH bnc.local' | ||
19 | |||
20 | ## The 'type' builtins will look for file in $PATH variable, so we set the | ||
21 | ## PATH below. You might need to directly set the path to 'resolvconf' | ||
22 | ## manually if it still doesn't work, i.e. | ||
23 | ## RESOLVCONF=/usr/sbin/resolvconf | ||
24 | export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin | ||
25 | RESOLVCONF=$(type -p resolvconf) | ||
26 | |||
27 | case $script_type in | ||
28 | |||
29 | up) | ||
30 | for optionname in ${!foreign_option_*} ; do | ||
31 | option="${!optionname}" | ||
32 | echo $option | ||
33 | part1=$(echo "$option" | cut -d " " -f 1) | ||
34 | if [ "$part1" == "dhcp-option" ] ; then | ||
35 | part2=$(echo "$option" | cut -d " " -f 2) | ||
36 | part3=$(echo "$option" | cut -d " " -f 3) | ||
37 | if [ "$part2" == "DNS" ] ; then | ||
38 | IF_DNS_NAMESERVERS="$IF_DNS_NAMESERVERS $part3" | ||
39 | fi | ||
40 | if [[ "$part2" == "DOMAIN" || "$part2" == "DOMAIN-SEARCH" ]] ; then | ||
41 | IF_DNS_SEARCH="$IF_DNS_SEARCH $part3" | ||
42 | fi | ||
43 | fi | ||
44 | done | ||
45 | R="" | ||
46 | if [ "$IF_DNS_SEARCH" ]; then | ||
47 | R="search " | ||
48 | for DS in $IF_DNS_SEARCH ; do | ||
49 | R="${R} $DS" | ||
50 | done | ||
51 | R="${R} | ||
52 | " | ||
53 | fi | ||
54 | |||
55 | for NS in $IF_DNS_NAMESERVERS ; do | ||
56 | R="${R}nameserver $NS | ||
57 | " | ||
58 | done | ||
59 | #echo -n "$R" | $RESOLVCONF -x -p -a "${dev}" | ||
60 | echo -n "$R" | $RESOLVCONF -x -a "${dev}.inet" | ||
61 | ;; | ||
62 | down) | ||
63 | $RESOLVCONF -d "${dev}.inet" | ||
64 | ;; | ||
65 | esac | ||
66 | |||
67 | # Workaround / jm@epiclabs.io | ||
68 | # force exit with no errors. Due to an apparent conflict with the Network Manager | ||
69 | # $RESOLVCONF sometimes exits with error code 6 even though it has performed the | ||
70 | # action correctly and OpenVPN shuts down. | ||
71 | exit 0 | ||
diff --git a/bin/.bin/wpa b/bin/.bin/wpa new file mode 100755 index 0000000..89f0141 --- /dev/null +++ b/bin/.bin/wpa | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | #https://github.com/icyphox/bin/blob/master/wpa | ||
3 | case "$1" in | ||
4 | r*) | ||
5 | sudo pkill wpa_supplicant | ||
6 | sudo wpa_supplicant -i wlp3s0 -B -c /etc/wpa_supplicant/wpa_supplicant.conf | ||
7 | ;; | ||
8 | n*) | ||
9 | sudo wpa_cli -i wlp3s0 select_network "$2" | ||
10 | ;; | ||
11 | l*) | ||
12 | sudo wpa_cli -i wlp3s0 list_networks | ||
13 | ;; | ||
14 | *) | ||
15 | sudo wpa_cli -i wlp3s0 "$*" | ||
16 | esac | ||
diff --git a/bin/.local/bin/lock b/bin/.local/bin/lock deleted file mode 100755 index d7dc632..0000000 --- a/bin/.local/bin/lock +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | scrot /tmp/screen.png | ||
3 | convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png | ||
4 | [[ -f $1 ]] && convert /tmp/screen.png $1 -gravity center -composite -matte /tmp/screen.png | ||
5 | i3lock -u -i /tmp/screen.png | ||
6 | rm /tmp/screen.png | ||
diff --git a/bin/.local/bin/screenshot b/bin/.local/bin/screenshot deleted file mode 100755 index 56310fc..0000000 --- a/bin/.local/bin/screenshot +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | screenshot() { | ||
3 | case $1 in | ||
4 | f*) | ||
5 | scrot -m -e 'mv $f ~/scrots' | ||
6 | ;; | ||
7 | w*) | ||
8 | sleep 1 | ||
9 | scrot -s -e 'mv $f ~/scrots' | ||
10 | ;; | ||
11 | *) | ||
12 | ;; | ||
13 | esac; | ||
14 | } | ||
15 | |||
16 | screenshot $1 | ||
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 6b26399..82a96be 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc | |||
@@ -10,7 +10,7 @@ bspc config borderless_monocle true | |||
10 | bspc config gapless_monocle true | 10 | bspc config gapless_monocle true |
11 | 11 | ||
12 | # rules | 12 | # rules |
13 | bspc rule -a Chromium desktop='^2' | 13 | bspc rule -a Firefox desktop='^2' |
14 | bspc rule -a Steam desktop='^6' | 14 | bspc rule -a Steam desktop='^6' |
15 | bspc rule -a "VirtualBox Manager" desktop='^6' | 15 | bspc rule -a "VirtualBox Manager" desktop='^6' |
16 | 16 | ||
@@ -23,7 +23,7 @@ xset b off & | |||
23 | xset s 300 & | 23 | xset s 300 & |
24 | ~/.fehbg & | 24 | ~/.fehbg & |
25 | urxvtd & | 25 | urxvtd & |
26 | ~/.local/bin/bat_check.sh & | 26 | ~/.bin/bat_check & |
27 | picom & | 27 | picom & |
28 | dunst & | 28 | dunst & |
29 | ~/.config/polybar/launch.sh | 29 | ~/.config/polybar/launch.sh |
diff --git a/picom/.config/picom.conf b/picom/.config/picom.conf index a3a9b46..9225735 100755 --- a/picom/.config/picom.conf +++ b/picom/.config/picom.conf | |||
@@ -29,7 +29,9 @@ blur-background-exclude = [ | |||
29 | "class_g ?= 'Rofi'", | 29 | "class_g ?= 'Rofi'", |
30 | "class_g ?= 'zoom'", | 30 | "class_g ?= 'zoom'", |
31 | "window_type = 'dock'", | 31 | "window_type = 'dock'", |
32 | "window_type = 'desktop'" | 32 | "window_type = 'desktop'", |
33 | "class_g = 'Firefox' && argb", | ||
34 | "_GTK_FRAME_EXTENTS@:c" | ||
33 | ]; | 35 | ]; |
34 | opacity-rule = [ | 36 | opacity-rule = [ |
35 | "40:class_g = 'Bspwm' && class_i = 'presel_feedback'", | 37 | "40:class_g = 'Bspwm' && class_i = 'presel_feedback'", |
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 3288b6e..37609ef 100755 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config | |||
@@ -31,7 +31,7 @@ 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 = JetBrains Mono Nerd Font Mono:style=medium:pixelsize=10:antialias=true:autohint=true:lcdfilter=lcddefault:rgba=rgb | 34 | font-0 = JetBrains Mono Nerd Font Mono:style=medium:size=11.5:antialias=true:autohint=true:lcdfilter=lcddefault:rgba=rgb |
35 | modules-left = pulseaudio battery date time cmus | 35 | modules-left = pulseaudio battery date time cmus |
36 | modules-center = | 36 | modules-center = |
37 | modules-right = bspwm | 37 | modules-right = bspwm |
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 0b17f7c..8cdfe6c 100755 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc | |||
@@ -3,9 +3,9 @@ super + Return | |||
3 | super + shift + Return | 3 | super + shift + Return |
4 | bspc rule -a \* -o state=floating && urxvtc | 4 | bspc rule -a \* -o state=floating && urxvtc |
5 | super + @space | 5 | super + @space |
6 | dmenu_run -i -fn "JetBrains Mono Nerd Font Mono:style=medium:pixelsize=12.5" -nb "#000000" -nf "#f3f4f5" -sb "#EEFFFF" -sf "#000000" | 6 | dmenu_run -i -fn "JetBrains Mono Nerd Font Mono:style=medium:size=9" -nb "#000000" -nf "#f3f4f5" -sb "#EEFFFF" -sf "#000000" |
7 | super + shift + w | 7 | super + shift + w |
8 | chromium | 8 | firefox |
9 | control + alt + l | 9 | control + alt + l |
10 | xset s activate | 10 | xset s activate |
11 | super + shift + f | 11 | super + shift + f |
@@ -19,7 +19,7 @@ control + Print | |||
19 | control + shift + Print | 19 | control + shift + Print |
20 | maim -s ~/scrots/$(date +%d-%b-%y-%I:%M%p).png | 20 | maim -s ~/scrots/$(date +%d-%b-%y-%I:%M%p).png |
21 | super + shift + p | 21 | super + shift + p |
22 | passmenu -i -fn "JetBrains Mono Nerd Font Mono:style=medium:pixelsize=12.5" -nb "#000000" -nf "#f3f4f5" -sb "#EEFFFF" -sf "#000000" | 22 | passmenu -i -fn "JetBrains Mono Nerd Font Mono:style=medium:size=10" -nb "#000000" -nf "#f3f4f5" -sb "#EEFFFF" -sf "#000000" |
23 | super + Escape | 23 | super + Escape |
24 | pkill -USR1 -x sxhkd | 24 | pkill -USR1 -x sxhkd |
25 | 25 | ||
@@ -35,9 +35,9 @@ XF86Audio{Play,Next,Prev} | |||
35 | 35 | ||
36 | # brightness | 36 | # brightness |
37 | XF86MonBrightnessDown | 37 | XF86MonBrightnessDown |
38 | sudo ~/bin/light d | 38 | sudo ~/.bin/light d |
39 | XF86MonBrightnessUp | 39 | XF86MonBrightnessUp |
40 | sudo ~/bin/light u | 40 | sudo ~/.bin/light u |
41 | 41 | ||
42 | 42 | ||
43 | # bspwm hotkeys | 43 | # bspwm hotkeys |
diff --git a/x/.Xresources b/x/.Xresources index 835e93d..98f8dca 100755 --- a/x/.Xresources +++ b/x/.Xresources | |||
@@ -47,11 +47,11 @@ | |||
47 | *color15: base07 | 47 | *color15: base07 |
48 | 48 | ||
49 | URxvt.cursorBlink : 1 | 49 | URxvt.cursorBlink : 1 |
50 | URxvt.font :xft:JetBrainsMono Nerd Font Mono:pixelsize=13:style=Regular \ | 50 | URxvt.font :xft:JetBrainsMono Nerd Font Mono:size=10:style=Regular \ |
51 | xft:DejaVu Sans Mono:size=13:style=Medium | 51 | xft:DejaVu Sans Mono:size=13:style=Medium |
52 | 52 | ||
53 | URxvt.italicFont :xft:JetBrainsMono Nerd Font Mono:pixelsize=13:style=Italic | 53 | URxvt.italicFont :xft:JetBrainsMono Nerd Font Mono:size=10:style=Italic |
54 | URxvt.boldFont :xft:JetBrainsMono Nerd Font Mono:pixelsize=13:style=Bold | 54 | URxvt.boldFont :xft:JetBrainsMono Nerd Font Mono:size=10:style=Bold |
55 | 55 | ||
56 | URxvt.lineSpace : 0 | 56 | URxvt.lineSpace : 0 |
57 | URxvt.letterSpace : 0 | 57 | URxvt.letterSpace : 0 |
@@ -76,5 +76,6 @@ Xft.antialias: 1 | |||
76 | Xft.hinting: 1 | 76 | Xft.hinting: 1 |
77 | Xft.autohint: 0 | 77 | Xft.autohint: 0 |
78 | Xft.hintstyle: hintslight | 78 | Xft.hintstyle: hintslight |
79 | Xft.rgba: rgb | 79 | Xft.rgba: rgb |
80 | Xft.dpi: 120 | ||
80 | Xft.lcdfilter: lcddefault | 81 | Xft.lcdfilter: lcddefault |
@@ -1,9 +1,5 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | #/usr/bin/prime-offload & | ||
3 | xrdb -merge ~/.Xresources & | 2 | xrdb -merge ~/.Xresources & |
4 | setxkbmap -layout us -option caps:ctrl_modifier & | 3 | setxkbmap -layout us -option caps:ctrl_modifier & |
5 | xcape -e 'Caps_Lock=Escape' & | 4 | xcape -e 'Caps_Lock=Escape' & |
6 | # xrandr --setprovideroutputsource modesetting NVIDIA-0 | ||
7 | # xrandr --auto | ||
8 | # exec dbus-launch --exit-with-session bspwm | ||
9 | exec dbus-run-session bspwm | 5 | exec dbus-run-session bspwm |
@@ -8,7 +8,7 @@ setopt appendhistory hist_ignore_all_dups hist_ignore_space | |||
8 | export VISUAL=nvim | 8 | export VISUAL=nvim |
9 | export EDITOR="$VISUAL" | 9 | export EDITOR="$VISUAL" |
10 | export BROWSER=chromium | 10 | export BROWSER=chromium |
11 | export PATH=$PATH:$HOME/.local/bin:$HOME/bin | 11 | export PATH=$PATH:$HOME/.bin |
12 | export TERM=rxvt-unicode-256color | 12 | export TERM=rxvt-unicode-256color |
13 | export XDG_CURRENT_DESKTOP=bspwm | 13 | export XDG_CURRENT_DESKTOP=bspwm |
14 | 14 | ||
@@ -51,7 +51,7 @@ rmdata() { | |||
51 | 51 | ||
52 | # Enable colors and change prompt: | 52 | # Enable colors and change prompt: |
53 | autoload -U colors && colors | 53 | autoload -U colors && colors |
54 | fpath+=$HOME/.zsh/pure | 54 | fpath+=$HOME/.config/zsh/pure |
55 | autoload -U promptinit; promptinit | 55 | autoload -U promptinit; promptinit |
56 | prompt pure | 56 | prompt pure |
57 | PURE_PROMPT_SYMBOL=$ | 57 | PURE_PROMPT_SYMBOL=$ |