diff options
-rwxr-xr-x | alacritty/.config/alacritty/alacritty.yml | 87 | ||||
-rwxr-xr-x | bin/.bin/lay_both | 2 | ||||
-rwxr-xr-x | bin/.bin/lay_hdmi | 2 | ||||
-rwxr-xr-x | bin/.bin/lemonconf | 74 | ||||
-rwxr-xr-x | bin/.bin/pcolor | 3 | ||||
-rwxr-xr-x | bin/.bin/statusbar | 45 | ||||
-rwxr-xr-x | bin/.bin/update-resolv-conf.sh | 71 | ||||
-rw-r--r-- | foot/.config/foot/foot.ini | 116 | ||||
-rw-r--r-- | kanshi/.config/kanshi/config | 14 | ||||
-rwxr-xr-x | lemonbar/launch | 5 | ||||
-rwxr-xr-x | lemonbar/lime | 74 | ||||
-rw-r--r-- | mako/.config/mako/config | 24 | ||||
-rwxr-xr-x | rofi/.config/rofi/config | 11 | ||||
-rwxr-xr-x | rofi/.config/rofi/rofi-power.sh | 38 | ||||
-rwxr-xr-x | rofi/.config/rofi/rofi-wifi.sh | 108 | ||||
-rwxr-xr-x | rofi/.config/rofi/wifi | 19 | ||||
-rw-r--r-- | sway/.config/sway/config | 204 | ||||
-rwxr-xr-x | sway/.config/sway/statusbar | 67 | ||||
-rw-r--r-- | wofi/.config/wofi/style.css | 39 | ||||
-rwxr-xr-x | x/.Xresources | 2 | ||||
-rwxr-xr-x | zsh/.zshrc | 1 |
21 files changed, 1 insertions, 1005 deletions
diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml deleted file mode 100755 index 4f1f14f..0000000 --- a/alacritty/.config/alacritty/alacritty.yml +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | colors: | ||
2 | # Default colors | ||
3 | primary: | ||
4 | background: '0x171a1f' | ||
5 | foreground: '0xFFFFFF' | ||
6 | |||
7 | # Normal colors | ||
8 | normal: | ||
9 | black: '0x171a1f' | ||
10 | red: '0xEE4F84' | ||
11 | green: '0x53E2AE' | ||
12 | yellow: '0xF1FF52' | ||
13 | blue: '0x6498EF' | ||
14 | magenta: '0x985EFF' | ||
15 | cyan: '0x24D1E7' | ||
16 | white: '0xE5E5E5' | ||
17 | |||
18 | # Bright colors | ||
19 | bright: | ||
20 | black: '0x20242a' | ||
21 | red: '0xF48FB1' | ||
22 | green: '0xA1EFD3' | ||
23 | yellow: '0xF1FA8C' | ||
24 | blue: '0x92B6F4' | ||
25 | magenta: '0xBD99FF' | ||
26 | cyan: '0x87DFEB' | ||
27 | white: '0xF8F8F2' | ||
28 | |||
29 | background_opacity: 1.0 | ||
30 | |||
31 | font: | ||
32 | normal: | ||
33 | family: "SF Mono" | ||
34 | style: Medium | ||
35 | bold: | ||
36 | family: "SF Mono" | ||
37 | style: Bold | ||
38 | italic: | ||
39 | family: "SF Mono" | ||
40 | style: Italic | ||
41 | |||
42 | # Point size | ||
43 | size: 11.5 | ||
44 | antialias: true | ||
45 | autohint: true | ||
46 | lcdfiler: lcddefault | ||
47 | rgba: rgb | ||
48 | |||
49 | offset: | ||
50 | x: 1 | ||
51 | y: 1 | ||
52 | glyph_offset: | ||
53 | x: 0 | ||
54 | y: 0 | ||
55 | |||
56 | window: | ||
57 | padding: | ||
58 | x: 8 | ||
59 | y: 8 | ||
60 | |||
61 | cursor: | ||
62 | # - ▇ Block | ||
63 | # - _ Underline | ||
64 | # - | Beam | ||
65 | style: Block | ||
66 | |||
67 | scrolling: | ||
68 | # Maximum number of lines in the scrollback buffer. | ||
69 | # Specifying '0' will disable scrolling. | ||
70 | history: 10000 | ||
71 | |||
72 | # Number of lines the viewport will move for every line scrolled when | ||
73 | # scrollback is enabled (history > 0). | ||
74 | multiplier: 10 | ||
75 | |||
76 | # If `true`, bold text is drawn using the bright color variants. | ||
77 | draw_bold_text_with_bright_colors: true | ||
78 | |||
79 | selection: | ||
80 | semantic_escape_chars: ',│`|:"'' ()[]{}<>' | ||
81 | save_to_clipboard: true | ||
82 | |||
83 | live_config_reload: true | ||
84 | |||
85 | key_bindings: | ||
86 | - { key: V, mods: Control|Alt, action: Paste } | ||
87 | - { key: C, mods: Control|Alt, action: Copy } | ||
diff --git a/bin/.bin/lay_both b/bin/.bin/lay_both deleted file mode 100755 index 21eb5ec..0000000 --- a/bin/.bin/lay_both +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --mode 1366x768 --pos 0x0 --rotate normal | ||
diff --git a/bin/.bin/lay_hdmi b/bin/.bin/lay_hdmi deleted file mode 100755 index 6ddea55..0000000 --- a/bin/.bin/lay_hdmi +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | xrandr --output eDP-1 --off --output HDMI-1 --mode 1366x768 --scale 1.4x1.4 --pos 0x0 --rotate normal | ||
diff --git a/bin/.bin/lemonconf b/bin/.bin/lemonconf deleted file mode 100755 index cb5e505..0000000 --- a/bin/.bin/lemonconf +++ /dev/null | |||
@@ -1,74 +0,0 @@ | |||
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/.bin/pcolor b/bin/.bin/pcolor deleted file mode 100755 index 4cc28a0..0000000 --- a/bin/.bin/pcolor +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
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/statusbar b/bin/.bin/statusbar deleted file mode 100755 index c506244..0000000 --- a/bin/.bin/statusbar +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Color definitions. | ||
4 | export BLK="\e[30m" | ||
5 | export RED="\e[31m" | ||
6 | export GRN="\e[32m" | ||
7 | export YLW="\e[33m" | ||
8 | export BLU="\e[34m" | ||
9 | export PUR="\e[35m" | ||
10 | export CYN="\e[36m" | ||
11 | export RST="\e[0m" | ||
12 | |||
13 | # Other formatting. | ||
14 | export BLD="\e[1m" | ||
15 | export DIM="\e[2m" | ||
16 | export ITA="\e[3m" | ||
17 | export UND="\e[4m" | ||
18 | export FLS="\e[5m" | ||
19 | export REV="\e[7m" | ||
20 | export INV="\e[8m" | ||
21 | export STR="\e[9m" | ||
22 | |||
23 | vol(){ | ||
24 | vol=$(pulsemixer --get-volume | awk '{print $1}') | ||
25 | echo -e "vol $vol%" | ||
26 | } | ||
27 | |||
28 | bat() { | ||
29 | power=$(cat /sys/class/power_supply/BAT0/capacity) | ||
30 | echo -e "bat $power%" | ||
31 | } | ||
32 | |||
33 | dte() { | ||
34 | dte=$(date +"%A, %B %d") | ||
35 | echo -e "date $dte" | ||
36 | } | ||
37 | |||
38 | tie() { | ||
39 | tme=$(date +"%I:%M %p") | ||
40 | echo -e "time $tme" | ||
41 | } | ||
42 | while :; do | ||
43 | echo "$(vol) $(bat) $(tie) $(dte)" | ||
44 | sleep 2 | ||
45 | done | ||
diff --git a/bin/.bin/update-resolv-conf.sh b/bin/.bin/update-resolv-conf.sh deleted file mode 100755 index 16622a1..0000000 --- a/bin/.bin/update-resolv-conf.sh +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
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/foot/.config/foot/foot.ini b/foot/.config/foot/foot.ini deleted file mode 100644 index 5b748ba..0000000 --- a/foot/.config/foot/foot.ini +++ /dev/null | |||
@@ -1,116 +0,0 @@ | |||
1 | # -*- conf -*- | ||
2 | |||
3 | # font=monospace | ||
4 | font=Input Mono:size=7.5 | ||
5 | # font-bold=<bold variant of regular font> | ||
6 | # font-italic=<italic variant of regular font> | ||
7 | # font-bold-italic=<bold+italic variant of regular font> | ||
8 | # dpi-aware=yes | ||
9 | initial-window-size-pixels=850x500 # Or, | ||
10 | # initial-window-size-chars=<COLSxROWS> | ||
11 | # initial-window-mode=windowed | ||
12 | pad=20x20 | ||
13 | # shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) | ||
14 | # term=foot | ||
15 | # login-shell=no | ||
16 | # workers=<number of logical CPUs> | ||
17 | # bold-text-in-bright=no | ||
18 | # bell=none | ||
19 | # word-delimiters=,│`|:"'()[]{}<> | ||
20 | # notify=notify-send -a foot -i foot ${title} ${body} | ||
21 | |||
22 | [scrollback] | ||
23 | lines=10000 | ||
24 | # multiplier=3.0 | ||
25 | # indicator-position=relative | ||
26 | # indicator-format= | ||
27 | |||
28 | [cursor] | ||
29 | style=block | ||
30 | color=111111 dcdccc | ||
31 | blink=no | ||
32 | |||
33 | [mouse] | ||
34 | # hide-when-typing=no | ||
35 | # alternate-scroll-mode=yes | ||
36 | |||
37 | [colors] | ||
38 | alpha=1.0 | ||
39 | foreground=ffffff | ||
40 | background=171a1f | ||
41 | regular0=171a1f | ||
42 | regular1=ee4f84 | ||
43 | regular2=53e2ae | ||
44 | regular3=f1ff52 | ||
45 | regular4=6498ef | ||
46 | regular5=985eff | ||
47 | regular6=24d1e7 | ||
48 | regular7=e5e5e5 | ||
49 | bright0=20242a | ||
50 | bright1=f48fb1 | ||
51 | bright2=a1efd3 | ||
52 | bright3=f1fa8c | ||
53 | bright4=92b6f4 | ||
54 | bright5=bd99ff | ||
55 | bright6=87dfeb | ||
56 | bright7=f8f8f2 | ||
57 | |||
58 | [csd] | ||
59 | # preferred=server | ||
60 | # size=26 | ||
61 | # color=<foreground color> | ||
62 | # button-width=26 | ||
63 | # button-minimize-color=ff0000ff | ||
64 | # button-maximize-color=ff00ff00 | ||
65 | # button-close-color=ffff0000 | ||
66 | |||
67 | [key-bindings] | ||
68 | # scrollback-up-page=Shift+Page_Up | ||
69 | # scrollback-up-half-page=none | ||
70 | # scrollback-up-line=none | ||
71 | # scrollback-down-page=Shift+Page_Down | ||
72 | # scrollback-down-half-page=none | ||
73 | # scrollback-down-line=none | ||
74 | clipboard-copy=Control+Mod1+C | ||
75 | clipboard-paste=Control+Mod1+V | ||
76 | # primary-paste=Shift+Insert | ||
77 | # search-start=Control+Shift+R | ||
78 | # font-increase=Control+9 Control+equal Control+KP_Add | ||
79 | # font-decrease=Control+minus Control+KP_Subtract | ||
80 | # font-reset=Control+0 Control+KP_0 | ||
81 | # spawn-terminal=Control+Shift+N | ||
82 | # minimize=none | ||
83 | # maximize=none | ||
84 | # fullscreen=none | ||
85 | # pipe-visible=[sh -c "xurls | bemenu | xargs -r firefox"] none | ||
86 | # pipe-scrollback=[sh -c "xurls | bemenu | xargs -r firefox"] none | ||
87 | # pipe-selected=[xargs -r firefox] none | ||
88 | |||
89 | [search-bindings] | ||
90 | # cancel=Control+g Escape | ||
91 | # commit=Return | ||
92 | # find-prev=Control+r | ||
93 | # find-next=Control+s | ||
94 | # cursor-left=Left Control+b | ||
95 | # cursor-left-word=Control+Left Mod1+b | ||
96 | # cursor-right=Right Control+f | ||
97 | # cursor-right-word=Control+Right Mod1+f | ||
98 | # cursor-home=Home Control+a | ||
99 | # cursor-end=End Control+e | ||
100 | # delete-prev=BackSpace | ||
101 | # delete-prev-word=Mod1+BackSpace Control+BackSpace | ||
102 | # delete-next=Delete | ||
103 | # delete-next-word=Mod1+d Control+Delete | ||
104 | # extend-to-word-boundary=Control+w | ||
105 | # extend-to-next-whitespace=Control+Shift+W | ||
106 | # clipboard-paste=Control+v Control+y | ||
107 | # primary-paste=Shift+Insert | ||
108 | |||
109 | [mouse-bindings] | ||
110 | # primary-paste=BTN_MIDDLE | ||
111 | # select-begin=BTN_LEFT | ||
112 | # select-begin-block=Control+BTN_LEFT | ||
113 | # select-extend=BTN_RIGHT | ||
114 | # select-word=BTN_LEFT-2 | ||
115 | # select-word-whitespace=Control+BTN_LEFT-2 | ||
116 | # select-row=BTN_LEFT-3 | ||
diff --git a/kanshi/.config/kanshi/config b/kanshi/.config/kanshi/config deleted file mode 100644 index c5e6aea..0000000 --- a/kanshi/.config/kanshi/config +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | profile multimon { | ||
2 | output HDMI-A-1 enable position 0,0 scale 0.8 | ||
3 | output eDP-1 enable position 0,1080 scale 1 | ||
4 | exec swaymsg workspace 3, move workspace to HDMI-A-1 | ||
5 | } | ||
6 | |||
7 | profile singlemon{ | ||
8 | output HDMI-A-1 enable mode 1366x768 scale 0.9 | ||
9 | output eDP-1 disable | ||
10 | } | ||
11 | |||
12 | profile { | ||
13 | output eDP-1 enable scale 1 | ||
14 | } | ||
diff --git a/lemonbar/launch b/lemonbar/launch deleted file mode 100755 index 981c88f..0000000 --- a/lemonbar/launch +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | # Launches an instance of lemonbar | ||
3 | killall -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 deleted file mode 100755 index e2ce156..0000000 --- a/lemonbar/lime +++ /dev/null | |||
@@ -1,74 +0,0 @@ | |||
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}$(workspaces)%{F-}" | ||
72 | xdo above -t $(xdo id -n root) $(xdo id -n lemonbar) | ||
73 | sleep 3 | ||
74 | done | ||
diff --git a/mako/.config/mako/config b/mako/.config/mako/config deleted file mode 100644 index 67d20d1..0000000 --- a/mako/.config/mako/config +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | font=SF Mono 10 | ||
2 | |||
3 | background-color=#2c2c2c | ||
4 | |||
5 | width=270 | ||
6 | height=500 | ||
7 | |||
8 | margin=20 | ||
9 | padding=15 | ||
10 | |||
11 | border-size=6 | ||
12 | border-color=#9f9f9f | ||
13 | |||
14 | default-timeout=10000 | ||
15 | |||
16 | [urgency=low] | ||
17 | text-color=#b8b48a | ||
18 | |||
19 | [urgency=normal] | ||
20 | text-color=#e5dbd0 | ||
21 | |||
22 | [urgency=high] | ||
23 | text-color=#dfa883 | ||
24 | default-timeout=0 | ||
diff --git a/rofi/.config/rofi/config b/rofi/.config/rofi/config deleted file mode 100755 index b096ad7..0000000 --- a/rofi/.config/rofi/config +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi | ||
2 | rofi.lines: 6 | ||
3 | !rofi.separator-style: none | ||
4 | !rofi.columns: 1 | ||
5 | rofi.font: Hermit 12 | ||
6 | !rofi.bw: 0 | ||
7 | !rofi.eh: 2 | ||
8 | !rofi.hide-scrollbar: true | ||
9 | rofi.auto-select: false | ||
10 | !rofi.display-drun:? | ||
11 | |||
diff --git a/rofi/.config/rofi/rofi-power.sh b/rofi/.config/rofi/rofi-power.sh deleted file mode 100755 index 6aecdbb..0000000 --- a/rofi/.config/rofi/rofi-power.sh +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | OPTIONS="Reboot\nShut-down\nSuspend\nLock" | ||
4 | |||
5 | # source configuration or use default values | ||
6 | LAUNCHER="rofi -location 5 -width 15 -lines 4 -dmenu -i -p power -show-icons " | ||
7 | USE_LOCKER="true" | ||
8 | LOCKER="/home/ssaini/.config/lock.sh" | ||
9 | |||
10 | |||
11 | # Show exit wm option if exit command is provided as an argument | ||
12 | if [ ${#1} -gt 0 ]; then | ||
13 | OPTIONS="Exit window manager\n$OPTIONS" | ||
14 | fi | ||
15 | |||
16 | option=`echo -e $OPTIONS | $LAUNCHER | awk '{print $1}' | tr -d '\r\n'` | ||
17 | if [ ${#option} -gt 0 ] | ||
18 | then | ||
19 | case $option in | ||
20 | Exit) | ||
21 | eval $1 | ||
22 | ;; | ||
23 | Reboot) | ||
24 | reboot | ||
25 | ;; | ||
26 | Shut-down) | ||
27 | poweroff | ||
28 | ;; | ||
29 | Suspend) | ||
30 | suspend | ||
31 | ;; | ||
32 | Lock) | ||
33 | light-locker-command -l | ||
34 | ;; | ||
35 | *) | ||
36 | ;; | ||
37 | esac | ||
38 | fi | ||
diff --git a/rofi/.config/rofi/rofi-wifi.sh b/rofi/.config/rofi/rofi-wifi.sh deleted file mode 100755 index 4694e66..0000000 --- a/rofi/.config/rofi/rofi-wifi.sh +++ /dev/null | |||
@@ -1,108 +0,0 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | # Starts a scan of available broadcasting SSIDs | ||
4 | # nmcli dev wifi rescan | ||
5 | |||
6 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
7 | |||
8 | FIELDS=SSID,SECURITY | ||
9 | POSITION=5 | ||
10 | #YOFF=-40 | ||
11 | #XOFF=-120 | ||
12 | FONT="Hermit 12" | ||
13 | |||
14 | if [ -r "$DIR/config" ]; then | ||
15 | source ./config | ||
16 | elif [ -r "~/.config/rofi/config" ]; then | ||
17 | source "~/.config/rofi/config" | ||
18 | else | ||
19 | echo "WARNING: config file not found! Using default values." | ||
20 | fi | ||
21 | |||
22 | LIST=$(nmcli --fields "$FIELDS" device wifi list | sed '/^--/d') | ||
23 | # For some reason rofi always approximates character width 2 short... hmmm | ||
24 | RWIDTH=$(($(echo "$LIST" | head -n 1 | awk '{print length($0); }')+2)) | ||
25 | # Dynamically change the height of the rofi menu | ||
26 | LINENUM=$(echo "$LIST" | wc -l) | ||
27 | # Gives a list of known connections so we. can parse it later | ||
28 | KNOWNCON=$(nmcli connection show) | ||
29 | # Really janky way of telling if there is currently a connection | ||
30 | CONSTATE=$(nmcli -fields WIFI g) | ||
31 | |||
32 | CURRSSID=$(iwgetid -r) | ||
33 | |||
34 | if [[ ! -z $CURRSSID ]]; then | ||
35 | HIGHLINE=$(echo "$(echo "$LIST" | awk -F "[ ]{2,}" '{print $1}' | grep -Fxn -m 1 "$CURRSSID" | awk -F ":" '{print $1}') + 1" | bc ) | ||
36 | fi | ||
37 | |||
38 | # HOPEFULLY you won't need this as often as I do | ||
39 | # If there are more than 8 SSIDs, the menu will still only have 8 lines | ||
40 | if [ "$LINENUM" -gt 8 ] && [[ "$CONSTATE" =~ "enabled" ]]; then | ||
41 | LINENUM=8 | ||
42 | elif [[ "$CONSTATE" =~ "disabled" ]]; then | ||
43 | LINENUM=1 | ||
44 | fi | ||
45 | |||
46 | |||
47 | if [[ "$CONSTATE" =~ "enabled" ]]; then | ||
48 | TOGGLE="toggle off" | ||
49 | elif [[ "$CONSTATE" =~ "disabled" ]]; then | ||
50 | TOGGLE="toggle on" | ||
51 | fi | ||
52 | |||
53 | eval FIELDSARR=( $(cat ./config | awk 'BEGIN { FS=","; OFS="\n" } /^FIELDS/ { $1 = substr($1, 8); print $0; }') ) | ||
54 | |||
55 | for i in "${!FIELDSARR[@]}"; do | ||
56 | if [[ "${FIELDSARR[$i]}" = "SSID" ]]; then | ||
57 | SSID_POS="${i}"; | ||
58 | fi | ||
59 | done | ||
60 | |||
61 | let AWKSSIDPOS=$SSID_POS+1 | ||
62 | |||
63 | CHENTRY=$(echo -e "$TOGGLE\nmanual\n$LIST" | uniq -u | rofi -dmenu -p "Wi-Fi SSID: " -lines "$LINENUM" -a "$HIGHLINE" -location "$POSITION" -yoffset "$YOFF" -xoffset "$XOFF" -font "$FONT" -width -"$RWIDTH") | ||
64 | #echo "$CHENTRY" | ||
65 | CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $'$AWKSSIDPOS'}') | ||
66 | #echo "$CHSSID" | ||
67 | |||
68 | # If the user inputs "manual" as their SSID in the start window, it will bring them to this screen | ||
69 | if [ "$CHENTRY" = "manual" ] ; then | ||
70 | # Manual entry of the SSID and password (if appplicable) | ||
71 | MSSID=$(echo "enter the SSID of the network (SSID,password)" | rofi -dmenu -p "Manual Entry: " -font "$FONT" -lines 1) | ||
72 | # Separating the password from the entered string | ||
73 | MPASS=$(echo "$MSSID" | awk -F "," '{print $2}') | ||
74 | |||
75 | #echo "$MSSID" | ||
76 | #echo "$MPASS" | ||
77 | |||
78 | # If the user entered a manual password, then use the password nmcli command | ||
79 | if [ "$MPASS" = "" ]; then | ||
80 | nmcli dev wifi con "$MSSID" | ||
81 | else | ||
82 | nmcli dev wifi con "$MSSID" password "$MPASS" | ||
83 | fi | ||
84 | |||
85 | elif [ "$CHENTRY" = "toggle on" ]; then | ||
86 | nmcli radio wifi on | ||
87 | |||
88 | elif [ "$CHENTRY" = "toggle off" ]; then | ||
89 | nmcli radio wifi off | ||
90 | |||
91 | else | ||
92 | |||
93 | # If the connection is already in use, then this will still be able to get the SSID | ||
94 | if [ "$CHSSID" = "*" ]; then | ||
95 | CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $3}') | ||
96 | fi | ||
97 | |||
98 | # Parses the list of preconfigured connections to see if it already contains the chosen SSID. This speeds up the connection process | ||
99 | if [[ $(echo "$KNOWNCON" | grep "$CHSSID") = "$CHSSID" ]]; then | ||
100 | nmcli con up "$CHSSID" | ||
101 | else | ||
102 | if [[ "$CHENTRY" =~ "WPA2" ]] || [[ "$CHENTRY" =~ "WEP" ]]; then | ||
103 | WIFIPASS=$(echo "if connection is stored, hit enter" | rofi -dmenu -p "password: " -lines 1 -font "$FONT" ) | ||
104 | fi | ||
105 | nmcli dev wifi con "$CHSSID" password "$WIFIPASS" | ||
106 | fi | ||
107 | |||
108 | fi | ||
diff --git a/rofi/.config/rofi/wifi b/rofi/.config/rofi/wifi deleted file mode 100755 index 954e4ae..0000000 --- a/rofi/.config/rofi/wifi +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | # Config for rofi-wifi-menu | ||
2 | |||
3 | # position values: | ||
4 | # 1 2 3 | ||
5 | # 8 0 4 | ||
6 | # 7 6 5 | ||
7 | POSITION=3 | ||
8 | |||
9 | #y-offset | ||
10 | YOFF=17 | ||
11 | |||
12 | #x-offset | ||
13 | XOFF=0 | ||
14 | |||
15 | #fields to be displayed | ||
16 | FIELDS=SSID,SECURITY,BARS | ||
17 | |||
18 | #font | ||
19 | FONT="Source Code Pro 12" | ||
diff --git a/sway/.config/sway/config b/sway/.config/sway/config deleted file mode 100644 index 508cb5f..0000000 --- a/sway/.config/sway/config +++ /dev/null | |||
@@ -1,204 +0,0 @@ | |||
1 | # pryr's sway config | ||
2 | |||
3 | font pango: Input Mono 10 | ||
4 | smart_gaps on | ||
5 | gaps inner 8 | ||
6 | focus_follows_mouse yes | ||
7 | |||
8 | set $mod Mod4 | ||
9 | set $left h | ||
10 | set $down j | ||
11 | set $up k | ||
12 | set $right l | ||
13 | set $term foot | ||
14 | set $menu dmenu_path | wofi --show drun -i | xargs swaymsg exec -- | ||
15 | |||
16 | default_border pixel 2 | ||
17 | default_floating_border normal | ||
18 | hide_edge_borders smart | ||
19 | |||
20 | output * bg /home/pryr/Downloads/walls/jpn.jpg fill | ||
21 | |||
22 | input type:touchpad { | ||
23 | events disabled | ||
24 | } | ||
25 | |||
26 | # hide cursor | ||
27 | seat * | ||
28 | { | ||
29 | hide_cursor 2000 | ||
30 | } | ||
31 | |||
32 | exec swayidle -w \ | ||
33 | timeout 200 'swaylock -f -c 000000' \ | ||
34 | timeout 210 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ | ||
35 | before-sleep 'swaylock -f -c 000000' | ||
36 | |||
37 | # Exit | ||
38 | set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown | ||
39 | mode "$mode_system" { | ||
40 | bindsym l exec --no-startup-id swaylock -f -c 000000, mode "default" | ||
41 | bindsym e exec --no-startup-id swaymsg exit, mode "default" | ||
42 | bindsym s exec --no-startup-id systemctl suspend, mode "default" | ||
43 | bindsym r exec --no-startup-id systemctl reboot, mode "default" | ||
44 | bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default" | ||
45 | |||
46 | bindsym Return mode "default" | ||
47 | bindsym Escape mode "default" | ||
48 | } | ||
49 | bindsym $mod+shift+e mode "$mode_system" | ||
50 | |||
51 | floating_modifier $mod normal | ||
52 | bindsym $mod+Return exec $term | ||
53 | bindsym $mod+Shift+Return exec --no-startup-id foot -T floating_term | ||
54 | bindsym $mod+w kill | ||
55 | bindsym $mod+d exec $menu | ||
56 | bindsym $mod+Shift+c reload | ||
57 | #moving | ||
58 | bindsym $mod+$left focus left | ||
59 | bindsym $mod+$down focus down | ||
60 | bindsym $mod+$up focus up | ||
61 | bindsym $mod+$right focus right | ||
62 | bindsym $mod+Left focus left | ||
63 | bindsym $mod+Down focus down | ||
64 | bindsym $mod+Up focus up | ||
65 | bindsym $mod+Right focus right | ||
66 | bindsym $mod+Shift+$left move left | ||
67 | bindsym $mod+Shift+$down move down | ||
68 | bindsym $mod+Shift+$up move up | ||
69 | bindsym $mod+Shift+$right move right | ||
70 | bindsym $mod+Shift+Left move left | ||
71 | bindsym $mod+Shift+Down move down | ||
72 | bindsym $mod+Shift+Up move up | ||
73 | bindsym $mod+Shift+Right move right | ||
74 | # Switch to workspace | ||
75 | bindsym $mod+1 workspace number 1 | ||
76 | bindsym $mod+2 workspace number 2 | ||
77 | bindsym $mod+3 workspace number 3 | ||
78 | bindsym $mod+4 workspace number 4 | ||
79 | bindsym $mod+5 workspace number 5 | ||
80 | bindsym $mod+6 workspace number 6 | ||
81 | bindsym $mod+7 workspace number 7 | ||
82 | bindsym $mod+8 workspace number 8 | ||
83 | bindsym $mod+9 workspace number 9 | ||
84 | bindsym $mod+0 workspace number 10 | ||
85 | # Move focused container to workspace | ||
86 | bindsym $mod+Shift+1 move container to workspace number 1 | ||
87 | bindsym $mod+Shift+2 move container to workspace number 2 | ||
88 | bindsym $mod+Shift+3 move container to workspace number 3 | ||
89 | bindsym $mod+Shift+4 move container to workspace number 4 | ||
90 | bindsym $mod+Shift+5 move container to workspace number 5 | ||
91 | bindsym $mod+Shift+6 move container to workspace number 6 | ||
92 | bindsym $mod+Shift+7 move container to workspace number 7 | ||
93 | bindsym $mod+Shift+8 move container to workspace number 8 | ||
94 | bindsym $mod+Shift+9 move container to workspace number 9 | ||
95 | bindsym $mod+Shift+0 move container to workspace number 10 | ||
96 | # Layout stuff | ||
97 | bindsym $mod+b splith | ||
98 | bindsym $mod+v splitv | ||
99 | # Switch the current container between different layout styles | ||
100 | bindsym $mod+s layout stacking | ||
101 | bindsym $mod+t layout tabbed | ||
102 | bindsym $mod+e layout toggle split | ||
103 | bindsym $mod+f fullscreen | ||
104 | bindsym $mod+Shift+space floating toggle | ||
105 | bindsym $mod+space focus mode_toggle | ||
106 | bindsym $mod+a focus parent | ||
107 | # Move the currently focused window to the scratchpad | ||
108 | bindsym $mod+Shift+minus move scratchpad | ||
109 | bindsym $mod+minus scratchpad show | ||
110 | # Resizing containers | ||
111 | mode "resize" { | ||
112 | bindsym $left resize shrink width 10px | ||
113 | bindsym $down resize grow height 10px | ||
114 | bindsym $up resize shrink height 10px | ||
115 | bindsym $right resize grow width 10px | ||
116 | bindsym Left resize shrink width 10px | ||
117 | bindsym Down resize grow height 10px | ||
118 | bindsym Up resize shrink height 10px | ||
119 | bindsym Right resize grow width 10px | ||
120 | bindsym Return mode "default" | ||
121 | bindsym Escape mode "default" | ||
122 | } | ||
123 | bindsym $mod+r mode "resize" | ||
124 | |||
125 | bindsym $mod+Shift+w exec brave --enable-features=UseOzonePlatform --ozone-platform=wayland | ||
126 | bindsym $mod+Shift+f exec foot ranger | ||
127 | bindsym $mod+n exec foot nvim ~/.cache/bujo/todo.md | ||
128 | bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 | ||
129 | bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 | ||
130 | bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute | ||
131 | bindsym XF86AudioMicMute exec --no-startup-id pulsemixer --toggle-mute --id source-47 | ||
132 | bindsym XF86MonBrightnessDown exec --no-startup-id sudo ~/.bin/light d | ||
133 | bindsym XF86MonBrightnessUp exec --no-startup-id sudo ~/.bin/light u | ||
134 | bindsym ctrl+space exec makoctl dismiss | ||
135 | bindsym ctrl+Mod1+l exec --no-startup-id swaylock -f -c 000000 | ||
136 | bindsym ctrl+Print exec --no-startup-id slurp | grim -t png -g - ~/screens/$(date '+%d-%m-%Y_%s_grim.png') | ||
137 | bindsym Print exec --no-startup-id grim -t png ~/screens/$(date '+%d-%m-%Y_%s_grim.png') | ||
138 | |||
139 | # color defines for zenburn styled i3 | ||
140 | set $bg #171a1f | ||
141 | set $fg #e5e5e5 | ||
142 | set $hi #efef8f | ||
143 | set $ac #909090 | ||
144 | set $tx #040404 | ||
145 | set $ia #8f8f8f | ||
146 | set $be #76bfa4 | ||
147 | set $yw #ccdc90 | ||
148 | set $gn #88b090 | ||
149 | set $rd #e89393 | ||
150 | |||
151 | # set some nice colors border background text | ||
152 | client.focused $ac $ac $tx | ||
153 | client.unfocused $bg $bg $ia | ||
154 | client.focused_inactive $bg $bg $ac | ||
155 | client.urgent $rd $rd $tx | ||
156 | |||
157 | # Read `man 5 sway-bar` for more information about this section. | ||
158 | bar | ||
159 | { | ||
160 | height 20 | ||
161 | position top | ||
162 | wrap_scroll no | ||
163 | tray_output none | ||
164 | strip_workspace_name no | ||
165 | strip_workspace_numbers yes | ||
166 | status_padding 0 | ||
167 | status_edge_padding 0 | ||
168 | status_command exec ~/.config/sway/statusbar | ||
169 | pango_markup on | ||
170 | colors | ||
171 | { | ||
172 | separator $hi | ||
173 | statusline $fg | ||
174 | background $bg | ||
175 | active_workspace $hi $hi $bg | ||
176 | inactive_workspace $ac $ac $bg | ||
177 | focused_workspace $fg $fg $bg | ||
178 | urgent_workspace $yw $yw $bg | ||
179 | } | ||
180 | } | ||
181 | |||
182 | assign [app_id="Brave"] 2 | ||
183 | for_window [app_id="Brave"] inhibit_idle fullscreen | ||
184 | for_window [title=floating_term] floating enable | ||
185 | for_window [app_id="zathura"] floating enable | ||
186 | for_window [class="^.*"] border pixel 5 | ||
187 | for_window [shell="xwayland"] title_format "<span>[X] %title</span>" | ||
188 | for_window [title=".+[Ss]haring (Indicator|your screen)"] floating enable, move to scratchpad, nofocus | ||
189 | for_window [class="Slack"] move window to workspace $ws4 | ||
190 | |||
191 | # gtk | ||
192 | set $gnome-schema org.gnome.desktop.interface | ||
193 | exec_always { | ||
194 | gsettings set $gnome-schema font-name 'Input Mono 10' | ||
195 | } | ||
196 | |||
197 | #autostart | ||
198 | exec --no-startup-id ~/.bin/bat_check | ||
199 | exec --no-startup-id sudo rtcwake -m mem -s 1 | ||
200 | exec --no-startup-id autotiling | ||
201 | exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 | ||
202 | exec_always pkill kanshi; exec kanshi | ||
203 | |||
204 | include /etc/sway/config.d/* | ||
diff --git a/sway/.config/sway/statusbar b/sway/.config/sway/statusbar deleted file mode 100755 index ba6dfa9..0000000 --- a/sway/.config/sway/statusbar +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | # Color definitions. | ||
3 | export BLK="\e[30m" | ||
4 | export RED="\e[31m" | ||
5 | export GRN="\e[32m" | ||
6 | export YLW="\e[33m" | ||
7 | export BLU="\e[34m" | ||
8 | export PUR="\e[35m" | ||
9 | export CYN="\e[36m" | ||
10 | export RST="\e[0m" | ||
11 | |||
12 | vol(){ | ||
13 | vol=$(pulsemixer --get-volume | awk '{print $1}') | ||
14 | mute=$(pulsemixer --get-mute) | ||
15 | if [ "$mute" == 1 ]; then | ||
16 | echo -e "<span color='gray'>muted</span>" | ||
17 | else | ||
18 | echo -e "<span color='gray'>vol</span> $vol%" | ||
19 | fi | ||
20 | } | ||
21 | |||
22 | bat() { | ||
23 | power=$(cat /sys/class/power_supply/BAT0/capacity) | ||
24 | status=$(cat /sys/class/power_supply/BAT0/status) | ||
25 | if [ "$status" == "Charging" ]; then | ||
26 | echo -e "<span color='gray'>+bat</span> $power%" | ||
27 | else | ||
28 | echo -e "<span color='gray'>bat</span> $power%" | ||
29 | fi | ||
30 | } | ||
31 | |||
32 | dte() { | ||
33 | dte=$(date +"%a, %b %d") | ||
34 | echo -e "<span color='gray'>date</span> $dte" | ||
35 | } | ||
36 | |||
37 | tie() { | ||
38 | tme=$(date +"%I:%M %p") | ||
39 | echo -e "<span color='gray'>time</span> $tme" | ||
40 | } | ||
41 | |||
42 | prepend_zero () { | ||
43 | seq -f "%02g" $1 $1 | ||
44 | } | ||
45 | |||
46 | cmus () { | ||
47 | artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-)) | ||
48 | if [[ $artist = *[!\ ]* ]]; then | ||
49 | song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-)) | ||
50 | position=$(cmus-remote -C status | grep position | cut -c 10-) | ||
51 | minutes1=$(prepend_zero $(($position / 60))) | ||
52 | seconds1=$(prepend_zero $(($position % 60))) | ||
53 | duration=$(cmus-remote -C status | grep duration | cut -c 10-) | ||
54 | minutes2=$(prepend_zero $(($duration / 60))) | ||
55 | seconds2=$(prepend_zero $(($duration % 60))) | ||
56 | # echo -n "$artist - $song [$minutes1:$seconds1/$minutes2:$seconds2]" | ||
57 | echo -e "<span color='#a1efd3'>$song [$minutes1:$seconds1/$minutes2:$seconds2]</span>" | ||
58 | else | ||
59 | echo | ||
60 | fi | ||
61 | } | ||
62 | |||
63 | while :; do | ||
64 | echo " $(cmus) $(vol) $(bat) $(tie) $(dte) " | ||
65 | sleep 2 | ||
66 | done | ||
67 | |||
diff --git a/wofi/.config/wofi/style.css b/wofi/.config/wofi/style.css deleted file mode 100644 index d5da0bf..0000000 --- a/wofi/.config/wofi/style.css +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | window { | ||
2 | margin: 0px; | ||
3 | border: 1px solid #171a1f; | ||
4 | background-color: #171a1f; | ||
5 | } | ||
6 | |||
7 | #input { | ||
8 | margin: 5px; | ||
9 | border: none; | ||
10 | color: #f8f8f2; | ||
11 | background-color: #44475a; | ||
12 | } | ||
13 | |||
14 | #inner-box { | ||
15 | margin: 5px; | ||
16 | border: none; | ||
17 | background-color: #171a1f; | ||
18 | } | ||
19 | |||
20 | #outer-box { | ||
21 | margin: 5px; | ||
22 | border: none; | ||
23 | background-color: #171a1f; | ||
24 | } | ||
25 | |||
26 | #scroll { | ||
27 | margin: 0px; | ||
28 | border: none; | ||
29 | } | ||
30 | |||
31 | #text { | ||
32 | margin: 5px; | ||
33 | border: none; | ||
34 | color: #f8f8f2; | ||
35 | } | ||
36 | |||
37 | #entry:selected { | ||
38 | background-color: #44475a; | ||
39 | } | ||
diff --git a/x/.Xresources b/x/.Xresources index 28ae5e3..041af28 100755 --- a/x/.Xresources +++ b/x/.Xresources | |||
@@ -58,7 +58,7 @@ URxvt.keysym.M-Escape : perl:keyboard-select:activate | |||
58 | URxvt.keysym.M-s : perl:keyboard-select:search | 58 | URxvt.keysym.M-s : perl:keyboard-select:search |
59 | URxvt.keyboard-select.clipboard: true | 59 | URxvt.keyboard-select.clipboard: true |
60 | URxvt.font-size.step : 1 | 60 | URxvt.font-size.step : 1 |
61 | URxvt.url-launcher : firefox | 61 | URxvt.url-launcher : /usr/bin/brave |
62 | URxvt.matcher.button : 1 | 62 | URxvt.matcher.button : 1 |
63 | 63 | ||
64 | Xft.antialias: 1 | 64 | Xft.antialias: 1 |
@@ -7,7 +7,6 @@ setopt appendhistory hist_ignore_all_dups hist_ignore_space | |||
7 | #exports | 7 | #exports |
8 | export VISUAL=nvim | 8 | export VISUAL=nvim |
9 | export EDITOR="$VISUAL" | 9 | export EDITOR="$VISUAL" |
10 | export BROWSER=/usr/bin/brave | ||
11 | export PATH=$PATH:$HOME/.bin | 10 | export PATH=$PATH:$HOME/.bin |
12 | export TERM=rxvt-unicode-256color | 11 | export TERM=rxvt-unicode-256color |
13 | export XDG_CURRENT_DESKTOP=bspwm | 12 | export XDG_CURRENT_DESKTOP=bspwm |