├── README.md ├── banner.png ├── doublechic ├── .Xresources ├── .bashed-gitprompt.sh ├── .bashrc ├── .bin │ ├── 2bspwm │ ├── bunnyfetch │ ├── cl │ ├── getxres │ ├── launcher │ ├── playerctl_controls │ ├── playerctl_status │ ├── polybar-autohide │ ├── powermenu │ ├── prompt │ ├── screen │ └── toggle_bar ├── .cal.sh ├── .config │ ├── alacritty │ │ └── alacritty.yml │ ├── bspwm │ │ └── bspwmrc │ ├── colorer │ │ ├── README.md │ │ ├── commands │ │ └── templates │ │ │ ├── Xresources │ │ │ ├── alacritty │ │ │ ├── discord.css │ │ │ ├── dunstrc │ │ │ ├── kitty │ │ │ ├── lightdm-mini-greeter.conf │ │ │ ├── polybar │ │ │ ├── qutebrowser.py │ │ │ ├── rofi.rasi │ │ │ ├── sequences │ │ │ ├── userChrome.css │ │ │ ├── var.css │ │ │ └── zathurarc │ ├── dunst │ │ └── dunstrc │ ├── fontconfig │ │ └── fonts.conf │ ├── kitty │ │ ├── colors │ │ └── kitty.conf │ ├── picom.conf │ ├── polybar │ │ ├── config │ │ └── launch.sh │ ├── ranger │ │ ├── commands.py │ │ ├── commands_full.py │ │ ├── rc.conf │ │ ├── rifle.conf │ │ └── scope.sh │ ├── rofi │ │ └── config.rasi │ ├── sxhkd │ │ ├── inner_gaps │ │ ├── move │ │ ├── outer_gaps │ │ ├── resize │ │ └── sxhkdrc │ └── zathura │ │ └── zathurarc ├── .inputrc ├── .profile ├── .xinitrc ├── .xprofile ├── README.md ├── screenshot1.png └── screenshot2.png ├── elegant ├── .Xresources ├── .bashed-gitprompt.sh ├── .bashrc ├── .bin │ ├── 2bspwm │ ├── bunnyfetch │ ├── cl │ ├── getxres │ ├── launcher │ ├── playerctl_controls │ ├── playerctl_status │ ├── polybar-autohide │ ├── powermenu │ ├── prompt │ ├── screen │ └── toggle_bar ├── .cal.sh ├── .config │ ├── alacritty │ │ └── alacritty.yml │ ├── bspwm │ │ └── bspwmrc │ ├── colorer │ │ ├── README.md │ │ ├── commands │ │ └── templates │ │ │ ├── Xresources │ │ │ ├── alacritty │ │ │ ├── discord.css │ │ │ ├── dunstrc │ │ │ ├── kitty │ │ │ ├── lightdm-mini-greeter.conf │ │ │ ├── polybar │ │ │ ├── qutebrowser.py │ │ │ ├── rofi.rasi │ │ │ ├── sequences │ │ │ ├── userChrome.css │ │ │ ├── var.css │ │ │ └── zathurarc │ ├── dunst │ │ └── dunstrc │ ├── fontconfig │ │ └── fonts.conf │ ├── kitty │ │ ├── colors │ │ └── kitty.conf │ ├── picom.conf │ ├── polybar │ │ ├── config │ │ └── launch.sh │ ├── ranger │ │ ├── commands.py │ │ ├── commands_full.py │ │ ├── rc.conf │ │ ├── rifle.conf │ │ └── scope.sh │ ├── rofi │ │ └── config.rasi │ ├── sxhkd │ │ ├── inner_gaps │ │ ├── move │ │ ├── outer_gaps │ │ ├── resize │ │ └── sxhkdrc │ └── zathura │ │ └── zathurarc ├── .inputrc ├── .local │ └── share │ │ └── fonts │ │ └── Agrandir │ │ ├── Agrandir_Grand_Heavy.otf │ │ ├── Agrandir_Grand_Light.otf │ │ ├── Agrandir_Narrow.otf │ │ ├── Agrandir_Regular.otf │ │ ├── Agrandir_Text_Bold.otf │ │ ├── Agrandir_Thin_Italic.otf │ │ ├── Agrandir_Tight.otf │ │ ├── Agrandir_Wide_Black_Italic.otf │ │ └── Agrandir_Wide_Light.otf ├── .profile ├── .xinitrc ├── .xprofile ├── README.md ├── screenshot1.png ├── screenshot2.png └── screenshot3.png ├── hermine ├── .Xresources ├── .bashed-gitprompt.sh ├── .bashrc ├── .bin │ ├── 2bspwm │ ├── bunnyfetch │ ├── cl │ ├── getxres │ ├── launcher │ ├── playerctl_controls │ ├── playerctl_status │ ├── polybar-autohide │ ├── powermenu │ ├── prompt │ ├── screen │ └── toggle_bar ├── .cal.sh ├── .config │ ├── alacritty │ │ └── alacritty.yml │ ├── bspwm │ │ └── bspwmrc │ ├── colorer │ │ ├── README.md │ │ ├── commands │ │ └── templates │ │ │ ├── Xresources │ │ │ ├── alacritty │ │ │ ├── discord.css │ │ │ ├── dunstrc │ │ │ ├── kitty │ │ │ ├── lightdm-mini-greeter.conf │ │ │ ├── polybar │ │ │ ├── qutebrowser.py │ │ │ ├── rofi.rasi │ │ │ ├── sequences │ │ │ ├── userChrome.css │ │ │ ├── var.css │ │ │ └── zathurarc │ ├── dunst │ │ └── dunstrc │ ├── fontconfig │ │ └── fonts.conf │ ├── kitty │ │ ├── colors │ │ └── kitty.conf │ ├── picom.conf │ ├── polybar │ │ ├── config │ │ └── launch.sh │ ├── ranger │ │ ├── commands.py │ │ ├── commands_full.py │ │ ├── rc.conf │ │ ├── rifle.conf │ │ └── scope.sh │ ├── rofi │ │ └── config.rasi │ ├── sxhkd │ │ ├── inner_gaps │ │ ├── move │ │ ├── outer_gaps │ │ ├── resize │ │ └── sxhkdrc │ └── zathura │ │ └── zathurarc ├── .inputrc ├── .profile ├── .xinitrc ├── .xprofile ├── README.md ├── screenshot1.png ├── screenshot2.png └── screenshot3.png ├── lain ├── .Xresources ├── .bashed-gitprompt.sh ├── .bashrc ├── .bin │ ├── 2bspwm │ ├── bunnyfetch │ ├── cl │ ├── getxres │ ├── launcher │ ├── playerctl_controls │ ├── playerctl_status │ ├── polybar-autohide │ ├── powermenu │ ├── prompt │ ├── screen │ └── toggle_bar ├── .cal.sh ├── .config │ ├── alacritty │ │ └── alacritty.yml │ ├── bspwm │ │ └── bspwmrc │ ├── colorer │ │ ├── README.md │ │ ├── commands │ │ └── templates │ │ │ ├── Xresources │ │ │ ├── alacritty │ │ │ ├── discord.css │ │ │ ├── dunstrc │ │ │ ├── kitty │ │ │ ├── lightdm-mini-greeter.conf │ │ │ ├── polybar │ │ │ ├── qutebrowser.py │ │ │ ├── rofi.rasi │ │ │ ├── sequences │ │ │ ├── userChrome.css │ │ │ ├── var.css │ │ │ └── zathurarc │ ├── dunst │ │ └── dunstrc │ ├── fontconfig │ │ └── fonts.conf │ ├── picom.conf │ ├── polybar │ │ ├── config │ │ └── launch.sh │ ├── ranger │ │ ├── commands.py │ │ ├── commands_full.py │ │ ├── rc.conf │ │ ├── rifle.conf │ │ └── scope.sh │ ├── rofi │ │ └── config.rasi │ ├── sxhkd │ │ ├── inner_gaps │ │ ├── move │ │ ├── outer_gaps │ │ ├── resize │ │ └── sxhkdrc │ └── zathura │ │ └── zathurarc ├── .inputrc ├── .profile ├── .xinitrc ├── .xprofile ├── README.md └── screenshot.png ├── lazuli ├── .Xresources ├── .bashed-gitprompt.sh ├── .bashrc ├── .bin │ ├── 2bspwm │ ├── bunnyfetch │ ├── cl │ ├── getxres │ ├── launcher │ ├── playerctl_controls │ ├── playerctl_status │ ├── polybar-autohide │ ├── powermenu │ ├── prompt │ ├── screen │ └── toggle_bar ├── .cal.sh ├── .config │ ├── alacritty │ │ └── alacritty.yml │ ├── bspwm │ │ └── bspwmrc │ ├── colorer │ │ ├── README.md │ │ ├── commands │ │ └── templates │ │ │ ├── Xresources │ │ │ ├── alacritty │ │ │ ├── discord.css │ │ │ ├── dunstrc │ │ │ ├── kitty │ │ │ ├── lightdm-mini-greeter.conf │ │ │ ├── polybar │ │ │ ├── qutebrowser.py │ │ │ ├── rofi.rasi │ │ │ ├── sequences │ │ │ ├── userChrome.css │ │ │ ├── var.css │ │ │ └── zathurarc │ ├── dunst │ │ └── dunstrc │ ├── fontconfig │ │ └── fonts.conf │ ├── kitty │ │ ├── colors │ │ └── kitty.conf │ ├── picom.conf │ ├── polybar │ │ ├── config │ │ └── launch.sh │ ├── ranger │ │ ├── commands.py │ │ ├── commands_full.py │ │ ├── rc.conf │ │ ├── rifle.conf │ │ └── scope.sh │ ├── rofi │ │ └── config.rasi │ ├── sxhkd │ │ ├── inner_gaps │ │ ├── move │ │ ├── outer_gaps │ │ ├── resize │ │ └── sxhkdrc │ └── zathura │ │ └── zathurarc ├── .inputrc ├── .profile ├── .xinitrc ├── .xprofile ├── README.md └── screenshot.png ├── quickdiff ├── sixtyten ├── .Xresources ├── .bashed-gitprompt.sh ├── .bashrc ├── .bin │ ├── 2bspwm │ ├── appsbar │ ├── backlight_status │ ├── bunnyfetch │ ├── chbacklight │ ├── chvolume │ ├── cl │ ├── colorer_toggle │ ├── getxres │ ├── launcher │ ├── lightdark_switch │ ├── memalert │ ├── playerctl_controls │ ├── playerctl_status │ ├── polybar-autohide │ ├── powermenu │ ├── prompt │ ├── revise │ ├── screen │ ├── toggle_bar │ └── volume_status ├── .cal.sh ├── .config │ ├── alacritty │ │ └── alacritty.yml │ ├── bspwm │ │ └── bspwmrc │ ├── colorer │ │ ├── README.md │ │ ├── bla.png │ │ ├── boc.jpg │ │ ├── commands │ │ └── templates │ │ │ ├── Xresources │ │ │ ├── alacritty │ │ │ ├── discord.css │ │ │ ├── dunstrc │ │ │ ├── kitty │ │ │ ├── lightdm-mini-greeter.conf │ │ │ ├── polybar │ │ │ ├── qutebrowser.py │ │ │ ├── rofi.rasi │ │ │ ├── sequences │ │ │ ├── userChrome.css │ │ │ ├── var.css │ │ │ └── zathurarc │ ├── dunst │ │ └── dunstrc │ ├── flashfocus │ │ └── flashfocus.yml │ ├── fontconfig │ │ └── fonts.conf │ ├── kitty │ │ ├── colors │ │ └── kitty.conf │ ├── picom.conf │ ├── polybar │ │ ├── config │ │ └── launch.sh │ ├── ranger │ │ ├── commands.py │ │ ├── commands_full.py │ │ ├── rc.conf │ │ ├── rifle.conf │ │ └── scope.sh │ ├── rofi │ │ └── config.rasi │ ├── sxhkd │ │ ├── inner_gaps │ │ ├── move │ │ ├── outer_gaps │ │ ├── resize │ │ └── sxhkdrc │ ├── xsettingsd │ │ └── xsettingsd.conf │ └── zathura │ │ └── zathurarc ├── .inputrc ├── .profile ├── .xinitrc ├── .xprofile ├── README.md └── screenshot.png ├── sixtyten_desktop ├── .Xresources ├── .bashed-gitprompt.sh ├── .bashrc ├── .bin │ ├── 2bspwm │ ├── appsbar │ ├── backlight_status │ ├── bunnyfetch │ ├── chbacklight │ ├── chvolume │ ├── cl │ ├── colorer_toggle │ ├── getxres │ ├── launcher │ ├── lightdark_switch │ ├── memalert │ ├── playerctl_controls │ ├── playerctl_status │ ├── polybar-autohide │ ├── powermenu │ ├── prompt │ ├── revise │ ├── screen │ ├── toggle_bar │ └── volume_status ├── .cal.sh ├── .config │ ├── alacritty │ │ └── alacritty.yml │ ├── bspwm │ │ └── bspwmrc │ ├── colorer │ │ ├── README.md │ │ ├── bla.png │ │ ├── boc.jpg │ │ ├── commands │ │ └── templates │ │ │ ├── Xresources │ │ │ ├── alacritty │ │ │ ├── discord.css │ │ │ ├── dunstrc │ │ │ ├── kitty │ │ │ ├── lightdm-mini-greeter.conf │ │ │ ├── polybar │ │ │ ├── qutebrowser.py │ │ │ ├── rofi.rasi │ │ │ ├── sequences │ │ │ ├── userChrome.css │ │ │ ├── var.css │ │ │ └── zathurarc │ ├── dunst │ │ └── dunstrc │ ├── flashfocus │ │ └── flashfocus.yml │ ├── fontconfig │ │ └── fonts.conf │ ├── kitty │ │ ├── colors │ │ └── kitty.conf │ ├── picom.conf │ ├── polybar │ │ ├── config │ │ └── launch.sh │ ├── ranger │ │ ├── commands.py │ │ ├── commands_full.py │ │ ├── rc.conf │ │ ├── rifle.conf │ │ └── scope.sh │ ├── rofi │ │ └── config.rasi │ ├── sxhkd │ │ ├── inner_gaps │ │ ├── move │ │ ├── outer_gaps │ │ ├── resize │ │ └── sxhkdrc │ ├── xsettingsd │ │ └── xsettingsd.conf │ └── zathura │ │ └── zathurarc ├── .inputrc ├── .profile ├── .xinitrc ├── .xprofile ├── README.md └── screenshot.png ├── sweet ├── .Xresources ├── .bashed-gitprompt.sh ├── .bashrc ├── .bin │ ├── 2bspwm │ ├── bunnyfetch │ ├── chvolume │ ├── cl │ ├── getxres │ ├── launcher │ ├── playerctl_controls │ ├── playerctl_status │ ├── polybar-autohide │ ├── powermenu │ ├── prompt │ ├── screen │ ├── toggle_bar │ └── volume_status ├── .cal.sh ├── .config │ ├── alacritty │ │ └── alacritty.yml │ ├── bspwm │ │ └── bspwmrc │ ├── colorer │ │ ├── README.md │ │ ├── commands │ │ └── templates │ │ │ ├── Xresources │ │ │ ├── alacritty │ │ │ ├── discord.css │ │ │ ├── dunstrc │ │ │ ├── kitty │ │ │ ├── lightdm-mini-greeter.conf │ │ │ ├── polybar │ │ │ ├── qutebrowser.py │ │ │ ├── rofi.rasi │ │ │ ├── sequences │ │ │ ├── userChrome.css │ │ │ ├── var.css │ │ │ └── zathurarc │ ├── dunst │ │ └── dunstrc │ ├── fontconfig │ │ └── fonts.conf │ ├── kitty │ │ ├── colors │ │ └── kitty.conf │ ├── picom.conf │ ├── polybar │ │ ├── config │ │ └── launch.sh │ ├── ranger │ │ ├── commands.py │ │ ├── commands_full.py │ │ ├── rc.conf │ │ ├── rifle.conf │ │ └── scope.sh │ ├── rofi │ │ └── config.rasi │ ├── sxhkd │ │ ├── inner_gaps │ │ ├── move │ │ ├── outer_gaps │ │ ├── resize │ │ └── sxhkdrc │ └── zathura │ │ └── zathurarc ├── .inputrc ├── .profile ├── .xinitrc ├── .xprofile ├── README.md └── screenshot.png ├── switch_theme └── update_theme /banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/banner.png -------------------------------------------------------------------------------- /doublechic/.Xresources: -------------------------------------------------------------------------------- 1 | #include ".config/colorer/out/Xresources" 2 | Xft.dpi: 96 3 | -------------------------------------------------------------------------------- /doublechic/.bin/bunnyfetch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Tiny colored fetch script 3 | # Requires Typicons Font to display the icons 4 | # elenapan @ github 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | i=$'\e[3m' 16 | 17 | # Items 18 | sep= 19 | s=$d$f0$sep$t 20 | 21 | w= 22 | wifiname="$(iwgetid | cut -d \" -f2)" 23 | 24 | h= 25 | wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" 26 | 27 | k= 28 | kernel="$(uname -r | cut -d '-' -f1)" 29 | 30 | r= 31 | resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)" 32 | 33 | sh= 34 | shell=$(basename $SHELL) 35 | 36 | # (\ /) 37 | # ( · ·) 38 | # c(")(") 39 | 40 | # (\ /) 41 | # ( . .) 42 | # c(")(") 43 | 44 | tput clear 45 | cat << EOF 46 | 47 | $d$f1$h $t$i$wmname$t 48 | (\ /) $f3$k $t$i$kernel$t 49 | ( $d. .$t) $f2$sh $t$i$shell$t 50 | c($f1"$t)($f1"$t) $f5$r $t$i$resolution$t 51 | $f4$w $t$i$wifiname$t 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /doublechic/.bin/cl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Nice and clean colorscheme script 4 | 5 | f=3 b=4 6 | for j in f b; do 7 | for i in {0..7}; do 8 | printf -v $j$i %b "\e[${!j}${i}m" 9 | done 10 | done 11 | d=$'\e[1m' 12 | t=$'\e[0m' 13 | v=$'\e[7m' 14 | 15 | cat << EOF 16 | 17 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 18 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 19 | $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t 20 | 21 | EOF 22 | -------------------------------------------------------------------------------- /doublechic/.bin/getxres: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xrdb -query | grep $1 | head -n1 | cut -d':' -f2 | sed 's/ //g' 3 | -------------------------------------------------------------------------------- /doublechic/.bin/launcher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # theme=~/.cache/colorer/rofi.rasi 3 | # theme=~/.config/rofi/san.rasi 4 | # rofi -show run -theme $theme 5 | prompt 'Launcher' --run 6 | -------------------------------------------------------------------------------- /doublechic/.bin/playerctl_controls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | play_icon=$2 3 | pause_icon=$3 4 | prev_icon=$4 5 | next_icon=$5 6 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && color=$(polybar --dump=foreground base 2>/dev/null) || color=$(polybar --dump=line-color base 2>/dev/null) 7 | player=$1 8 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && status=$pause_icon || status=$play_icon 9 | string=$(echo %{A1:playerctl previous -p $1:}$prev_icon%{A}%{A1:playerctl play-pause -p $1:} $status%{A}%{A1:playerctl next -p $1:} $next_icon%{A}%{-o}) 10 | 11 | echo $string 12 | -------------------------------------------------------------------------------- /doublechic/.bin/playerctl_status: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import sys 3 | import subprocess 4 | 5 | 6 | def get(str): 7 | try: 8 | return subprocess.check_output(str, shell=True).decode('utf-8').replace('\n', '') 9 | except: 10 | return "" 11 | 12 | 13 | def getpol(key, bar): 14 | str = "polybar --dump={} {} 2>/dev/null".format(key, bar) 15 | return get(str) 16 | 17 | 18 | def getctl(format): 19 | global player 20 | str = "playerctl metadata --format {{{{{}}}}} -p {} 2>/dev/null".format( 21 | format, player) 22 | return get(str) 23 | 24 | 25 | player = sys.argv[1] 26 | play_icon = sys.argv[2] 27 | pause_icon = sys.argv[3] 28 | prev_icon = sys.argv[4] 29 | next_icon = sys.argv[5] 30 | logo_icon = sys.argv[6] 31 | strlen = int(sys.argv[7]) 32 | 33 | if getctl('status') == "Playing": 34 | color = getpol('foreground', 'base') 35 | else: 36 | color = getpol('line-color', 'base') 37 | 38 | artist = getctl('artist') 39 | title = getctl('title') 40 | total_length = len(artist) + len(title) + 2 41 | 42 | if total_length > strlen: 43 | difference = total_length-strlen 44 | title = title[:-difference] + '…' 45 | total_length = len(artist) + len(title) + 1 46 | if total_length > strlen: 47 | difference = total_length-strlen 48 | artist = artist[:-difference] 49 | 50 | if getctl('status') == "Playing": 51 | status = pause_icon 52 | else: 53 | status = play_icon 54 | 55 | # Formatting the string 56 | strlogo = "%{F" + color + "}" + logo_icon 57 | strartist = "%{T2}" + artist + ":%{T-}" 58 | strtitle = title 59 | strprev = "%{F-}%{A1:playerctl previous -p " + \ 60 | player + ":}" + prev_icon + "%{A}" 61 | strplaypause = "%{A1:playerctl play-pause -p " + \ 62 | player + ":}" + status + "%{A}" 63 | strnext = "%{A1:playerctl next -p " + player + ":}" + next_icon + "%{A}" 64 | 65 | print(strlogo, strartist, strtitle, strprev, strplaypause, strnext) 66 | -------------------------------------------------------------------------------- /doublechic/.bin/powermenu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | choices="Poweroff\nQuit\nReboot\nLock\nSuspend" 3 | # chosen=$(echo -e $choices | rofi -dmenu -i -p "Power Menu" -theme ~/.cache/colorer/rofi.rasi) 4 | fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 5 | bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 6 | chosen=$(echo -e $choices | prompt "Powermenu") 7 | echo "$chosen" 8 | 9 | case "$chosen" in 10 | Lock) lock ;; 11 | Suspend) systemctl suspend ;; 12 | Quit) bspc quit ;; 13 | Poweroff) poweroff ;; 14 | Reboot) reboot ;; 15 | esac 16 | -------------------------------------------------------------------------------- /doublechic/.bin/prompt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Use as dmenu (by piping values separated by \n to it) 4 | # $1 is the text shown in the prompt (defaults as 'dmenu') 5 | # if $2 is '--run', runs dmenu_run instead 6 | 7 | fg=$(colorer -g color7) 8 | bg=$(colorer -g bg) 9 | [[ $1 == '' ]] && prompt='dmenu' || prompt=$1 10 | args="-fn mono-11 -h 40 -nb ${bg} -nf ${fg} -sb ${fg} -sf ${bg} -p ${prompt} -i -b" 11 | [[ $2 == '--run' ]] && dmenu_run $args || dmenu $args 12 | # [[ $2 == '--run' ]] && rofi -show run -theme ~/.config/colorer/out/rofi.rasi || rofi -dmenu -p "$1" -theme ~/.config/colorer/out/rofi.rasi -i 13 | -------------------------------------------------------------------------------- /doublechic/.bin/screen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # file=/tmp/$(date +%s).png 4 | # default_dir=~/Pictures/Screenshots 5 | # 6 | # sleep 0.6 7 | # maim -u $1 $file 8 | # 9 | # # dir=$(find ~ -type d 2>/dev/null | rofi -dmenu -i -p "Choose a directory" -theme ~/.cache/colorer/rofi.rasi) 10 | # fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 11 | # bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 12 | # #dir=$(find ~ -type d 2>/dev/null | prompt "Where?") 13 | # dir=$default_dir 14 | # 15 | # if [[ -n $dir ]]; then 16 | # mv $file $dir 17 | # else 18 | # mv $file $default_dir 19 | # fi 20 | 21 | file=~/Pictures/Screenshots/$(date +%s).png 22 | maim -u $1 $file 23 | 24 | xclip -selection clipboard -target image/png -i $file 25 | 26 | notify-send "Took a screenshot" "saved to ${file} and copied to clipboard." -i $file 27 | -------------------------------------------------------------------------------- /doublechic/.bin/toggle_bar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xdo show -N Polybar; pkill -f polybar-autohide || polybar-autohide &>/dev/null 3 | -------------------------------------------------------------------------------- /doublechic/.cal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git=`which git` 4 | while read -ra Z; do 5 | if [[ "${Z[@]}" == \*\ * ]]; then 6 | gbranch="${Z[1]}" 7 | break 8 | fi 9 | done <<< "$($git branch 2> /dev/null)" 10 | 11 | ((cno=0)) 12 | while read -r Z; do 13 | [[ "$Z" == commit* ]] && ((cno+=1)) 14 | done <<< "$($git log 2> /dev/null)" 15 | 16 | $git rev-list --left-right --count origin/main..."$gbranch" >/dev/null 2>&1 17 | if [ "$?" == 0 ];then 18 | rev=`$git rev-list --left-right --count origin/main..."$gbranch"`; 19 | beh=$(cut -f1 <<< $rev ) 20 | ahe=$(cut -f2 <<< $rev ) 21 | 22 | echo -e "$($git diff --cached --name-only | wc -l)"\ 23 | "$($git diff --stat origin/main.. | wc -l)"\ 24 | "$($git diff --name-status | wc -l)"\ 25 | "$($git ls-files --others --exclude-standard | wc -l)"\ 26 | "$gbranch"\ 27 | "${cno}"\ 28 | "$beh"\ 29 | "$ahe" 30 | else 31 | beh="-1" 32 | ahe="-1" 33 | echo -e "$($git diff --cached --name-only | wc -l)"\ 34 | "0"\ 35 | "$($git diff --name-status | wc -l)"\ 36 | "$($git ls-files --others --exclude-standard | wc -l)"\ 37 | "$gbranch"\ 38 | "${cno}"\ 39 | "$beh"\ 40 | "$ahe" 41 | fi 42 | 43 | -------------------------------------------------------------------------------- /doublechic/.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | sxhkd & 4 | 5 | # wm config 6 | bspc config border_width 2 7 | bspc config window_gap 25 8 | out=0 9 | # bspc config top_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out + $(bspc config window_gap))) 10 | bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out)) 11 | bspc config split_ratio 0.50 12 | 13 | bspc config focus_follows_pointer true 14 | 15 | bspc monitor -d 1 2 3 4 5 16 | 17 | # rules 18 | bspc rule -a Zathura state=tiled 19 | 20 | inactive=$(colorer -g bg) 21 | active=$(colorer -g color1) 22 | bspc config normal_border_color "$inactive" 23 | bspc config focused_border_color "$inactive" 24 | # bspc config focused_border_color "$inactive" 25 | bspc config presel_feedback_color "$inactive" 26 | 27 | # startup 28 | ~/.fehbg & 29 | # hsetroot -solid $(getxres background) 30 | ~/.config/polybar/launch.sh & 31 | picom & 32 | mpDris2 & 33 | pulseeffects --gapplication-service & 34 | dunst & 35 | # pgrep xflux || xflux -l 43.36 -g 1.26 & 36 | udiskie & 37 | pkill 2bspwm ; 2bspwm & 38 | # pkill flashfocus ; flashfocus & 39 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/README.md: -------------------------------------------------------------------------------- 1 | # Example files for [colorer](https://github.com/kiddae/colorer) 2 | 3 | This includes colorschemes, templates for various config files and commands for colorer. 4 | 5 | The repo is organized as the `~/.config/colorer/` folder should be. 6 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/commands: -------------------------------------------------------------------------------- 1 | echo "Applying changes" 2 | sed -E "s/colorscheme .+/colorscheme {vim}/g" ~/.config/nvim/global.vim -i 3 | sed -E "s/'colorscheme': '.+',$/'colorscheme': '{lightline}',/g" ~/.config/nvim/plug-config/lightline.vim -i 4 | echo -ne $(cat ~/.config/colorer/out/sequences) | tee /dev/pts/[0-9]* 5 | cp {wp} /usr/share/sddm/themes/sugar-candy/Backgrounds/Wall.png 6 | cp ~/.config/colorer/out/lightdm-mini-greeter.conf /etc/lightdm/lightdm-mini-greeter.conf 7 | cp ~/.config/colorer/out/dunstrc ~/.config/dunst/dunstrc 8 | cp ~/.config/colorer/out/kitty ~/.config/kitty/colors 9 | cp ~/.config/colorer/out/userChrome.css ~/.mozilla/firefox/5rg3vfkm.default-release/chrome/userChrome.css 10 | cp ~/.config/colorer/out/zathurarc ~/.config/zathura/zathurarc 11 | echo "Reloading everything" 12 | xrdb -merge ~/.config/colorer/out/Xresources 13 | # pkill -USR1 polybar 14 | killall dunst && dunst & 15 | feh --bg-fill {wp} 16 | bspc wm -r 17 | # echo "Generating GTK theme..." 18 | # oomox-cli /opt/oomox/scripted_colors/xresources/xresources-reverse -t ~/.local/share/themes/ -m all -d true & 19 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/templates/Xresources: -------------------------------------------------------------------------------- 1 | *background: {bg} 2 | *foreground: {fg} 3 | ! Black + DarkGrey 4 | *color0: {color0} 5 | *color8: {color8} 6 | ! DarkRed + Red 7 | *color1: {color1} 8 | *color9: {color9} 9 | ! DarkGreen + Green 10 | *color2: {color2} 11 | *color10: {color10} 12 | ! DarkYellow + Yellow 13 | *color3: {color3} 14 | *color11: {color11} 15 | ! DarkBlue + Blue 16 | *color4: {color4} 17 | *color12: {color12} 18 | ! DarkMagenta + Magenta 19 | *color5: {color5} 20 | *color13: {color13} 21 | ! DarkCyan + Cyan 22 | *color6: {color6} 23 | *color14: {color14} 24 | ! LightGrey + White 25 | *color7: {color7} 26 | *color15: {color15} 27 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/templates/alacritty: -------------------------------------------------------------------------------- 1 | colors: 2 | # Default colors 3 | primary: 4 | background: '{bg}' 5 | foreground: '{fg}' 6 | 7 | # Normal colors 8 | normal: 9 | # NOTE: Use '#131613' for the `black` color if you'd like to see 10 | # black text on the background. 11 | black: '{color0}' 12 | red: '{color1}' 13 | green: '{color2}' 14 | yellow: '{color3}' 15 | blue: '{color4}' 16 | magenta: '{color5}' 17 | cyan: '{color6}' 18 | white: '{color7}' 19 | 20 | # Bright colors 21 | bright: 22 | black: '{color8}' 23 | red: '{color9}' 24 | green: '{color10}' 25 | yellow: '{color11}' 26 | blue: '{color12}' 27 | magenta: '{color13}' 28 | cyan: '{color14}' 29 | white: '{color15}' 30 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/templates/kitty: -------------------------------------------------------------------------------- 1 | foreground {fg} 2 | background {bg} 3 | color0 {color0} 4 | color1 {color1} 5 | color2 {color2} 6 | color3 {color3} 7 | color4 {color4} 8 | color5 {color5} 9 | color6 {color6} 10 | color7 {color7} 11 | color8 {color8} 12 | color9 {color9} 13 | color10 {color10} 14 | color11 {color11} 15 | color12 {color12} 16 | color13 {color13} 17 | color14 {color14} 18 | color15 {color15} 19 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/templates/polybar: -------------------------------------------------------------------------------- 1 | [colors] 2 | background = {bg} 3 | foreground = {fg} 4 | color0 = {color0} 5 | color1 = {color1} 6 | color2 = {color2} 7 | color3 = {color3} 8 | color4 = {color4} 9 | color5 = {color5} 10 | color6 = {color6} 11 | color7 = {color7} 12 | color8 = {color8} 13 | color9 = {color9} 14 | color10 = {color10} 15 | color11 = {color11} 16 | color12 = {color12} 17 | color13 = {color13} 18 | color14 = {color14} 19 | color15 = {color15} 20 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/templates/sequences: -------------------------------------------------------------------------------- 1 | \033]4;0;{color0}\033\\\033]4;1;{color1}\033\\\033]4;2;{color2}\033\\\033]4;3;{color3}\033\\\033]4;4;{color4}\033\\\033]4;5;{color5}\033\\\033]4;6;{color6}\033\\\033]4;7;{color7}\033\\\033]4;8;{color8}\033\\\033]4;9;{color9}\033\\\033]4;10;{color10}\033\\\033]4;11;{color11}\033\\\033]4;12;{color12}\033\\\033]4;13;{color13}\033\\\033]4;14;{color14}\033\\\033]4;15;{color15}\033\\\033]10;{fg}\033\\\033]11;{bg}\033\\ 2 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/templates/var.css: -------------------------------------------------------------------------------- 1 | /* CSS variables 2 | Generated by 'colorer' */ 3 | :root {{ 4 | --wallpaper: url("{wp}"); 5 | 6 | /* Special */ 7 | --background: {bg}; 8 | --foreground: {fg}; 9 | --cursor: {fg}; 10 | 11 | /* Colors */ 12 | --color0: {color0}; 13 | --color1: {color1}; 14 | --color2: {color2}; 15 | --color3: {color3}; 16 | --color4: {color4}; 17 | --color5: {color5}; 18 | --color6: {color6}; 19 | --color7: {color7}; 20 | --color8: {color8}; 21 | --color9: {color9}; 22 | --color10: {color10}; 23 | --color11: {color11}; 24 | --color12: {color12}; 25 | --color13: {color13}; 26 | --color14: {color14}; 27 | --color15: {color15}; 28 | }} 29 | -------------------------------------------------------------------------------- /doublechic/.config/colorer/templates/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 11" 4 | 5 | set completion-bg "{bg}" 6 | set completion-fg "{fg}" 7 | set completion-group-bg "{bg}" 8 | set completion-group-fg "{color2}" 9 | set completion-highlight-bg "{fg}" 10 | set completion-highlight-fg "{bg}" 11 | 12 | set recolor-lightcolor "{bg}" 13 | set recolor-darkcolor "{fg}" 14 | set default-bg "{bg}" 15 | 16 | set inputbar-bg "{bg}" 17 | set inputbar-fg "{fg}" 18 | set notification-bg "{bg}" 19 | set notification-fg "{fg}" 20 | set notification-error-bg "{color1}" 21 | set notification-error-fg "{fg}" 22 | set notification-warning-bg "{color1}" 23 | set notification-warning-fg "{fg}" 24 | set statusbar-bg "{bg}" 25 | set statusbar-fg "{fg}" 26 | set index-bg "{bg}" 27 | set index-fg "{fg}" 28 | set index-active-bg "{fg}" 29 | set index-active-fg "{bg}" 30 | set render-loading-bg "{bg}" 31 | set render-loading-fg "{fg}" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /doublechic/.config/kitty/colors: -------------------------------------------------------------------------------- 1 | foreground #abb2bf 2 | background #282c34 3 | color0 #5c6370 4 | color1 #e06c75 5 | color2 #98c379 6 | color3 #e5c07b 7 | color4 #61afef 8 | color5 #c678dd 9 | color6 #56b6c2 10 | color7 #abb2bf 11 | color8 #4b5263 12 | color9 #be5046 13 | color10 #98c379 14 | color11 #d19a66 15 | color12 #61afef 16 | color13 #c678dd 17 | color14 #56b6c2 18 | color15 #3e4452 19 | -------------------------------------------------------------------------------- /doublechic/.config/kitty/kitty.conf: -------------------------------------------------------------------------------- 1 | include colors 2 | font_family monospace 3 | italic_font auto 4 | bold_font auto 5 | bold_italic_font auto 6 | font_size 11 7 | 8 | cursor_shape beam 9 | 10 | window_padding_width 35 11 | initial_window_width 600 12 | initial_window_height 440 13 | remember_window_size no 14 | -------------------------------------------------------------------------------- /doublechic/.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | polybar -r base & 10 | echo "Polybar launched..." 11 | -------------------------------------------------------------------------------- /doublechic/.config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration { 2 | font: "SF Pro Text 11"; 3 | } 4 | -------------------------------------------------------------------------------- /doublechic/.config/sxhkd/inner_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gaps=$(bspc config -d focused window_gap) 3 | [[ $(( $gaps$1 )) -ge 0 ]] && bspc config -d focused window_gap $(( $gaps$1 )) 4 | -------------------------------------------------------------------------------- /doublechic/.config/sxhkd/move: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | state=$(bspc query -T -n | jq '.client.state' | sed 's/\"//g') 3 | interval=40 4 | 5 | if [[ "$state" == "tiled" ]]; then 6 | echo $state 7 | case $1 in 8 | west) bspc node -s west;; 9 | south) bspc node -s south;; 10 | north) bspc node -s north;; 11 | east) bspc node -s east 12 | esac 13 | fi 14 | 15 | if [[ "$state" == "floating" ]]; then 16 | case $1 in 17 | west) bspc node -v $(( 0 - $interval )) 0;; 18 | south) bspc node -v 0 $interval;; 19 | north) bspc node -v 0 $(( 0 - $interval ));; 20 | east) bspc node -v $interval 0 21 | esac 22 | fi 23 | -------------------------------------------------------------------------------- /doublechic/.config/sxhkd/outer_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | left=$(bspc config ${@:2} left_padding) 3 | right=$(bspc config ${@:2} right_padding) 4 | top=$(bspc config ${@:2} top_padding) 5 | bottom=$(bspc config ${@:2} bottom_padding) 6 | 7 | if [[ ${1:0:1} = '=' ]] 8 | then 9 | n_left=${1:1} 10 | n_right=${1:1} 11 | n_top=${1:1} 12 | n_bottom=${1:1} 13 | else 14 | [[ $(($left$1)) -ge 0 ]] && n_left=$(($left$1)) 15 | [[ $(($right$1)) -ge 0 ]] && n_right=$(($right$1)) 16 | [[ $(($top$1)) -ge 0 ]] && n_top=$(($top$1)) 17 | [[ $(($bottom$1)) -ge 0 ]] && n_bottom=$(($bottom$1)) 18 | fi 19 | 20 | 21 | bspc config ${@:2} left_padding $n_left && echo $n_left 22 | bspc config ${@:2} right_padding $n_right && echo $n_right 23 | bspc config ${@:2} top_padding $n_top && echo $n_top 24 | bspc config ${@:2} bottom_padding $n_bottom && echo $n_bottom 25 | -------------------------------------------------------------------------------- /doublechic/.config/sxhkd/resize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | size=${2:-'10'} 4 | dir=$1 5 | 6 | # Find current window mode 7 | is_tiled() { 8 | bspc query -T -n | grep -q '"state":"tiled"' 9 | } 10 | # If the window is floating, move it 11 | if ! is_tiled; then 12 | #only parse input if window is floating,tiled windows accept input as is 13 | case "$dir" in 14 | west) switch="-w" 15 | sign="-" 16 | ;; 17 | east) switch="-w" 18 | sign="+" 19 | ;; 20 | north) switch="-h" 21 | sign="-" 22 | ;; 23 | south) switch="-h" 24 | sign="+" 25 | ;; 26 | esac 27 | xdo resize ${switch} ${sign}${size} 28 | 29 | # Otherwise, window is tiled: switch with window in given direction 30 | else 31 | case "$dir" in 32 | west) bspc node @west -r -$size || bspc node @east -r -${size} 33 | ;; 34 | east) bspc node @west -r +$size || bspc node @east -r +${size} 35 | ;; 36 | north) bspc node @south -r -$size || bspc node @north -r -${size} 37 | ;; 38 | south) bspc node @south -r +$size || bspc node @north -r +${size} 39 | ;; 40 | esac 41 | fi 42 | -------------------------------------------------------------------------------- /doublechic/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 11" 4 | 5 | set completion-bg "#282c34" 6 | set completion-fg "#abb2bf" 7 | set completion-group-bg "#282c34" 8 | set completion-group-fg "#98c379" 9 | set completion-highlight-bg "#abb2bf" 10 | set completion-highlight-fg "#282c34" 11 | 12 | set recolor-lightcolor "#282c34" 13 | set recolor-darkcolor "#abb2bf" 14 | set default-bg "#282c34" 15 | 16 | set inputbar-bg "#282c34" 17 | set inputbar-fg "#abb2bf" 18 | set notification-bg "#282c34" 19 | set notification-fg "#abb2bf" 20 | set notification-error-bg "#e06c75" 21 | set notification-error-fg "#abb2bf" 22 | set notification-warning-bg "#e06c75" 23 | set notification-warning-fg "#abb2bf" 24 | set statusbar-bg "#282c34" 25 | set statusbar-fg "#abb2bf" 26 | set index-bg "#282c34" 27 | set index-fg "#abb2bf" 28 | set index-active-bg "#abb2bf" 29 | set index-active-fg "#282c34" 30 | set render-loading-bg "#282c34" 31 | set render-loading-fg "#abb2bf" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /doublechic/.inputrc: -------------------------------------------------------------------------------- 1 | # When pressing up or down arrow, show only history that 2 | # matches what was already written 3 | "\e[A":history-search-backward 4 | "\e[B":history-search-forward 5 | 6 | "\C-?": backward-kill-word 7 | "\e[3;5~": kill-word 8 | 9 | # Disable bell 10 | set bell-style none 11 | 12 | # set show-mode-in-prompt on 13 | -------------------------------------------------------------------------------- /doublechic/.profile: -------------------------------------------------------------------------------- 1 | if [ -n "$BASH_VERSION" ]; then 2 | # include .bashrc if it exists 3 | if [ -f "$HOME/.bashrc" ]; then 4 | . "$HOME/.bashrc" 5 | fi 6 | fi 7 | 8 | # set PATH so it includes user's private bin if it exists 9 | if [ -d "$HOME/.local/bin" ] ; then 10 | PATH="$HOME/.local/bin:$PATH" 11 | fi 12 | 13 | # constants 14 | export TERMINAL="kitty" 15 | export EDITOR="nvim" 16 | export BROWSER="firefox" 17 | export SCRIPT_FOLDER="$HOME/.bin" 18 | export WALLPAPER_FOLDER="$HOME/Pictures/Wallpapers/" 19 | 20 | # add scripts to path 21 | PATH="$SCRIPT_FOLDER:$PATH" 22 | 23 | export QT_QPA_PLATFORMTHEME=qt5ct 24 | -------------------------------------------------------------------------------- /doublechic/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -f ~/.xprofile ] && . ~/.xprofile 3 | exec bspwm 4 | -------------------------------------------------------------------------------- /doublechic/.xprofile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xrdb -merge ~/.cache/colorer/Xresources 3 | # lock-screen-timer & 4 | # timemanager & 5 | # setxkbmap fr 6 | xsetroot -cursor_name left_ptr 7 | xset +fp /usr/share/fonts/misc/ 8 | xset fp rehash 9 | xset b off 10 | -------------------------------------------------------------------------------- /doublechic/README.md: -------------------------------------------------------------------------------- 1 | # `doublechic` 2 | > A clean desktop, balanced between eye candy and functionality. 3 | 4 | # Screenshots 5 | 6 | ![screenshot1](screenshot1.png) 7 | ![screenshot2](screenshot2.png) 8 | 9 | # Some info 10 | 11 | + Colorscheme: [`onedark`](https://github.com/kiddae/colorer-colorschemes/blob/main/onedark) 12 | + Wallpaper: [umbrella.jpg](https://raw.githubusercontent.com/kiddae/wallpapers/main/misc/umbrella.jpg) 13 | + Font: the theme uses `monospace` for every terminal/monospace font so it's easier to change it (here, it's `VictorMono`, you can change it in `./config/fontconfig/fonts.conf` in the aliases section) 14 | + Shown in the screenshots: `bspwm`, `polybar`, `kitty`, `neovim`, `bunnyfetch`, `cl`, `gtop`, `firefox` with NightTab, `cava`, `2bspwm` for the double borders, `picom`. 15 | 16 | -------------------------------------------------------------------------------- /doublechic/screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/doublechic/screenshot1.png -------------------------------------------------------------------------------- /doublechic/screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/doublechic/screenshot2.png -------------------------------------------------------------------------------- /elegant/.Xresources: -------------------------------------------------------------------------------- 1 | #include ".config/colorer/out/Xresources" 2 | Xft.dpi: 96 3 | -------------------------------------------------------------------------------- /elegant/.bin/bunnyfetch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Tiny colored fetch script 3 | # Requires Typicons Font to display the icons 4 | # elenapan @ github 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | i=$'\e[3m' 16 | 17 | # Items 18 | sep= 19 | s=$d$f0$sep$t 20 | 21 | w= 22 | wifiname="$(iwgetid | cut -d \" -f2)" 23 | 24 | h= 25 | wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" 26 | 27 | k= 28 | kernel="$(uname -r | cut -d '-' -f1)" 29 | 30 | r= 31 | resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)" 32 | 33 | sh= 34 | shell=$(basename $SHELL) 35 | 36 | # (\ /) 37 | # ( · ·) 38 | # c(")(") 39 | 40 | # (\ /) 41 | # ( . .) 42 | # c(")(") 43 | 44 | tput clear 45 | cat << EOF 46 | 47 | $d$f1$h $t$i$wmname$t 48 | (\ /) $f3$k $t$i$kernel$t 49 | ( $d. .$t) $f2$sh $t$i$shell$t 50 | c($f1"$t)($f1"$t) $f5$r $t$i$resolution$t 51 | $f4$w $t$i$wifiname$t 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /elegant/.bin/cl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Nice and clean colorscheme script 4 | 5 | f=3 b=4 6 | for j in f b; do 7 | for i in {0..7}; do 8 | printf -v $j$i %b "\e[${!j}${i}m" 9 | done 10 | done 11 | d=$'\e[1m' 12 | t=$'\e[0m' 13 | v=$'\e[7m' 14 | 15 | cat << EOF 16 | 17 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 18 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 19 | $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t 20 | 21 | EOF 22 | -------------------------------------------------------------------------------- /elegant/.bin/getxres: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xrdb -query | grep $1 | head -n1 | cut -d':' -f2 | sed 's/ //g' 3 | -------------------------------------------------------------------------------- /elegant/.bin/launcher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # theme=~/.cache/colorer/rofi.rasi 3 | # theme=~/.config/rofi/san.rasi 4 | # rofi -show run -theme $theme 5 | prompt 'Launcher' --run 6 | -------------------------------------------------------------------------------- /elegant/.bin/playerctl_controls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | play_icon=$2 3 | pause_icon=$3 4 | prev_icon=$4 5 | next_icon=$5 6 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && color=$(polybar --dump=foreground base 2>/dev/null) || color=$(polybar --dump=line-color base 2>/dev/null) 7 | player=$1 8 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && status=$pause_icon || status=$play_icon 9 | string=$(echo %{A1:playerctl previous -p $1:}$prev_icon%{A}%{A1:playerctl play-pause -p $1:} $status%{A}%{A1:playerctl next -p $1:} $next_icon%{A}%{-o}) 10 | 11 | echo $string 12 | -------------------------------------------------------------------------------- /elegant/.bin/playerctl_status: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import sys 3 | import subprocess 4 | 5 | 6 | def get(str): 7 | try: 8 | return subprocess.check_output(str, shell=True).decode('utf-8').replace('\n', '') 9 | except: 10 | return "" 11 | 12 | 13 | def getpol(key, bar): 14 | str = "polybar --dump={} {} 2>/dev/null".format(key, bar) 15 | return get(str) 16 | 17 | 18 | def getctl(format): 19 | global player 20 | str = "playerctl metadata --format {{{{{}}}}} -p {} 2>/dev/null".format( 21 | format, player) 22 | return get(str) 23 | 24 | 25 | player = sys.argv[1] 26 | play_icon = sys.argv[2] 27 | pause_icon = sys.argv[3] 28 | prev_icon = sys.argv[4] 29 | next_icon = sys.argv[5] 30 | logo_icon = sys.argv[6] 31 | strlen = int(sys.argv[7]) 32 | 33 | if getctl('status') == "Playing": 34 | color = getpol('foreground', 'base') 35 | else: 36 | color = getpol('line-color', 'base') 37 | 38 | artist = getctl('artist') 39 | title = getctl('title') 40 | total_length = len(artist) + len(title) + 2 41 | 42 | if total_length > strlen: 43 | difference = total_length-strlen 44 | title = title[:-difference] + '…' 45 | total_length = len(artist) + len(title) + 1 46 | if total_length > strlen: 47 | difference = total_length-strlen 48 | artist = artist[:-difference] 49 | 50 | if getctl('status') == "Playing": 51 | status = pause_icon 52 | else: 53 | status = play_icon 54 | 55 | # Formatting the string 56 | strlogo = "%{F" + color + "}" + logo_icon 57 | strartist = "%{T2}" + artist + ":%{T-}" 58 | strtitle = title 59 | strprev = "%{F-}%{A1:playerctl previous -p " + \ 60 | player + ":}" + prev_icon + "%{A}" 61 | strplaypause = "%{A1:playerctl play-pause -p " + \ 62 | player + ":}" + status + "%{A}" 63 | strnext = "%{A1:playerctl next -p " + player + ":}" + next_icon + "%{A}" 64 | 65 | print(strlogo, strartist, strtitle, strprev, strplaypause, strnext) 66 | -------------------------------------------------------------------------------- /elegant/.bin/powermenu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | choices="Poweroff\nQuit\nReboot\nLock\nSuspend" 3 | # chosen=$(echo -e $choices | rofi -dmenu -i -p "Power Menu" -theme ~/.cache/colorer/rofi.rasi) 4 | fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 5 | bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 6 | chosen=$(echo -e $choices | prompt "Powermenu") 7 | echo "$chosen" 8 | 9 | case "$chosen" in 10 | Lock) lock ;; 11 | Suspend) systemctl suspend ;; 12 | Quit) bspc quit ;; 13 | Poweroff) poweroff ;; 14 | Reboot) reboot ;; 15 | esac 16 | -------------------------------------------------------------------------------- /elegant/.bin/prompt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Use as dmenu (by piping values separated by \n to it) 4 | # $1 is the text shown in the prompt (defaults as 'dmenu') 5 | # if $2 is '--run', runs dmenu_run instead 6 | 7 | fg=$(colorer -g color7) 8 | bg=$(colorer -g bg) 9 | [[ $1 == '' ]] && prompt='dmenu' || prompt=$1 10 | args="-fn Agrandir-16 -h 45 -nb ${bg} -nf ${fg} -sb ${fg} -sf ${bg} -p ${prompt} -i -x 20 -y 20 -w 1880" 11 | [[ $2 == '--run' ]] && dmenu_run $args || dmenu $args 12 | # [[ $2 == '--run' ]] && rofi -show run -theme ~/.config/colorer/out/rofi.rasi || rofi -dmenu -p "$1" -theme ~/.config/colorer/out/rofi.rasi -i 13 | -------------------------------------------------------------------------------- /elegant/.bin/screen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # file=/tmp/$(date +%s).png 4 | # default_dir=~/Pictures/Screenshots 5 | # 6 | # sleep 0.6 7 | # maim -u $1 $file 8 | # 9 | # # dir=$(find ~ -type d 2>/dev/null | rofi -dmenu -i -p "Choose a directory" -theme ~/.cache/colorer/rofi.rasi) 10 | # fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 11 | # bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 12 | # #dir=$(find ~ -type d 2>/dev/null | prompt "Where?") 13 | # dir=$default_dir 14 | # 15 | # if [[ -n $dir ]]; then 16 | # mv $file $dir 17 | # else 18 | # mv $file $default_dir 19 | # fi 20 | 21 | file=~/Pictures/Screenshots/$(date +%s).png 22 | maim -u $1 $file 23 | 24 | xclip -selection clipboard -target image/png -i $file 25 | 26 | notify-send "Took a screenshot" "saved to ${file} and copied to clipboard." -i $file 27 | -------------------------------------------------------------------------------- /elegant/.bin/toggle_bar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xdo show -N Polybar; pkill -f polybar-autohide || polybar-autohide &>/dev/null 3 | -------------------------------------------------------------------------------- /elegant/.cal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git=`which git` 4 | while read -ra Z; do 5 | if [[ "${Z[@]}" == \*\ * ]]; then 6 | gbranch="${Z[1]}" 7 | break 8 | fi 9 | done <<< "$($git branch 2> /dev/null)" 10 | 11 | ((cno=0)) 12 | while read -r Z; do 13 | [[ "$Z" == commit* ]] && ((cno+=1)) 14 | done <<< "$($git log 2> /dev/null)" 15 | 16 | $git rev-list --left-right --count origin/main..."$gbranch" >/dev/null 2>&1 17 | if [ "$?" == 0 ];then 18 | rev=`$git rev-list --left-right --count origin/main..."$gbranch"`; 19 | beh=$(cut -f1 <<< $rev ) 20 | ahe=$(cut -f2 <<< $rev ) 21 | 22 | echo -e "$($git diff --cached --name-only | wc -l)"\ 23 | "$($git diff --stat origin/main.. | wc -l)"\ 24 | "$($git diff --name-status | wc -l)"\ 25 | "$($git ls-files --others --exclude-standard | wc -l)"\ 26 | "$gbranch"\ 27 | "${cno}"\ 28 | "$beh"\ 29 | "$ahe" 30 | else 31 | beh="-1" 32 | ahe="-1" 33 | echo -e "$($git diff --cached --name-only | wc -l)"\ 34 | "0"\ 35 | "$($git diff --name-status | wc -l)"\ 36 | "$($git ls-files --others --exclude-standard | wc -l)"\ 37 | "$gbranch"\ 38 | "${cno}"\ 39 | "$beh"\ 40 | "$ahe" 41 | fi 42 | 43 | -------------------------------------------------------------------------------- /elegant/.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | sxhkd & 4 | 5 | # wm config 6 | bspc config border_width 20 7 | bspc config window_gap 25 8 | out=0 9 | # bspc config top_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out + $(bspc config window_gap))) 10 | bspc config top_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out)) 11 | bspc config split_ratio 0.50 12 | 13 | bspc config focus_follows_pointer true 14 | 15 | bspc monitor -d 1 2 3 4 5 16 | 17 | # rules 18 | bspc rule -a Zathura state=tiled 19 | 20 | inactive=$(colorer -g bg) 21 | active=$(colorer -g fg) 22 | bspc config normal_border_color "$inactive" 23 | bspc config focused_border_color "$active" 24 | # bspc config focused_border_color "$inactive" 25 | bspc config presel_feedback_color "$inactive" 26 | 27 | # startup 28 | ~/.fehbg & 29 | # hsetroot -solid $(getxres background) 30 | ~/.config/polybar/launch.sh & 31 | picom & 32 | mpDris2 & 33 | pulseeffects --gapplication-service & 34 | dunst & 35 | # pgrep xflux || xflux -l 43.36 -g 1.26 & 36 | udiskie & 37 | # pkill 2bspwm ; 2bspwm & 38 | pkill flashfocus ; flashfocus & 39 | -------------------------------------------------------------------------------- /elegant/.config/colorer/README.md: -------------------------------------------------------------------------------- 1 | # Example files for [colorer](https://github.com/kiddae/colorer) 2 | 3 | This includes colorschemes, templates for various config files and commands for colorer. 4 | 5 | The repo is organized as the `~/.config/colorer/` folder should be. 6 | -------------------------------------------------------------------------------- /elegant/.config/colorer/commands: -------------------------------------------------------------------------------- 1 | echo "Applying changes" 2 | sed -E "s/colorscheme .+/colorscheme {vim}/g" ~/.config/nvim/global.vim -i 3 | sed -E "s/'colorscheme': '.+',$/'colorscheme': '{lightline}',/g" ~/.config/nvim/plug-config/lightline.vim -i 4 | echo -ne $(cat ~/.config/colorer/out/sequences) | tee /dev/pts/[0-9]* 5 | cp {wp} /usr/share/sddm/themes/sugar-candy/Backgrounds/Wall.png 6 | cp ~/.config/colorer/out/lightdm-mini-greeter.conf /etc/lightdm/lightdm-mini-greeter.conf 7 | cp ~/.config/colorer/out/dunstrc ~/.config/dunst/dunstrc 8 | cp ~/.config/colorer/out/kitty ~/.config/kitty/colors 9 | cp ~/.config/colorer/out/userChrome.css ~/.mozilla/firefox/5rg3vfkm.default-release/chrome/userChrome.css 10 | cp ~/.config/colorer/out/zathurarc ~/.config/zathura/zathurarc 11 | echo "Reloading everything" 12 | xrdb -merge ~/.config/colorer/out/Xresources 13 | # pkill -USR1 polybar 14 | killall dunst && dunst & 15 | feh --bg-fill {wp} 16 | bspc wm -r 17 | # echo "Generating GTK theme..." 18 | # oomox-cli /opt/oomox/scripted_colors/xresources/xresources-reverse -t ~/.local/share/themes/ -m all -d true & 19 | -------------------------------------------------------------------------------- /elegant/.config/colorer/templates/Xresources: -------------------------------------------------------------------------------- 1 | *background: {bg} 2 | *foreground: {fg} 3 | ! Black + DarkGrey 4 | *color0: {color0} 5 | *color8: {color8} 6 | ! DarkRed + Red 7 | *color1: {color1} 8 | *color9: {color9} 9 | ! DarkGreen + Green 10 | *color2: {color2} 11 | *color10: {color10} 12 | ! DarkYellow + Yellow 13 | *color3: {color3} 14 | *color11: {color11} 15 | ! DarkBlue + Blue 16 | *color4: {color4} 17 | *color12: {color12} 18 | ! DarkMagenta + Magenta 19 | *color5: {color5} 20 | *color13: {color13} 21 | ! DarkCyan + Cyan 22 | *color6: {color6} 23 | *color14: {color14} 24 | ! LightGrey + White 25 | *color7: {color7} 26 | *color15: {color15} 27 | -------------------------------------------------------------------------------- /elegant/.config/colorer/templates/alacritty: -------------------------------------------------------------------------------- 1 | colors: 2 | # Default colors 3 | primary: 4 | background: '{bg}' 5 | foreground: '{fg}' 6 | 7 | # Normal colors 8 | normal: 9 | # NOTE: Use '#131613' for the `black` color if you'd like to see 10 | # black text on the background. 11 | black: '{color0}' 12 | red: '{color1}' 13 | green: '{color2}' 14 | yellow: '{color3}' 15 | blue: '{color4}' 16 | magenta: '{color5}' 17 | cyan: '{color6}' 18 | white: '{color7}' 19 | 20 | # Bright colors 21 | bright: 22 | black: '{color8}' 23 | red: '{color9}' 24 | green: '{color10}' 25 | yellow: '{color11}' 26 | blue: '{color12}' 27 | magenta: '{color13}' 28 | cyan: '{color14}' 29 | white: '{color15}' 30 | -------------------------------------------------------------------------------- /elegant/.config/colorer/templates/kitty: -------------------------------------------------------------------------------- 1 | foreground {fg} 2 | background {bg} 3 | color0 {color0} 4 | color1 {color1} 5 | color2 {color2} 6 | color3 {color3} 7 | color4 {color4} 8 | color5 {color5} 9 | color6 {color6} 10 | color7 {color7} 11 | color8 {color8} 12 | color9 {color9} 13 | color10 {color10} 14 | color11 {color11} 15 | color12 {color12} 16 | color13 {color13} 17 | color14 {color14} 18 | color15 {color15} 19 | -------------------------------------------------------------------------------- /elegant/.config/colorer/templates/polybar: -------------------------------------------------------------------------------- 1 | [colors] 2 | background = {bg} 3 | foreground = {fg} 4 | color0 = {color0} 5 | color1 = {color1} 6 | color2 = {color2} 7 | color3 = {color3} 8 | color4 = {color4} 9 | color5 = {color5} 10 | color6 = {color6} 11 | color7 = {color7} 12 | color8 = {color8} 13 | color9 = {color9} 14 | color10 = {color10} 15 | color11 = {color11} 16 | color12 = {color12} 17 | color13 = {color13} 18 | color14 = {color14} 19 | color15 = {color15} 20 | -------------------------------------------------------------------------------- /elegant/.config/colorer/templates/sequences: -------------------------------------------------------------------------------- 1 | \033]4;0;{color0}\033\\\033]4;1;{color1}\033\\\033]4;2;{color2}\033\\\033]4;3;{color3}\033\\\033]4;4;{color4}\033\\\033]4;5;{color5}\033\\\033]4;6;{color6}\033\\\033]4;7;{color7}\033\\\033]4;8;{color8}\033\\\033]4;9;{color9}\033\\\033]4;10;{color10}\033\\\033]4;11;{color11}\033\\\033]4;12;{color12}\033\\\033]4;13;{color13}\033\\\033]4;14;{color14}\033\\\033]4;15;{color15}\033\\\033]10;{fg}\033\\\033]11;{bg}\033\\ 2 | -------------------------------------------------------------------------------- /elegant/.config/colorer/templates/var.css: -------------------------------------------------------------------------------- 1 | /* CSS variables 2 | Generated by 'colorer' */ 3 | :root {{ 4 | --wallpaper: url("{wp}"); 5 | 6 | /* Special */ 7 | --background: {bg}; 8 | --foreground: {fg}; 9 | --cursor: {fg}; 10 | 11 | /* Colors */ 12 | --color0: {color0}; 13 | --color1: {color1}; 14 | --color2: {color2}; 15 | --color3: {color3}; 16 | --color4: {color4}; 17 | --color5: {color5}; 18 | --color6: {color6}; 19 | --color7: {color7}; 20 | --color8: {color8}; 21 | --color9: {color9}; 22 | --color10: {color10}; 23 | --color11: {color11}; 24 | --color12: {color12}; 25 | --color13: {color13}; 26 | --color14: {color14}; 27 | --color15: {color15}; 28 | }} 29 | -------------------------------------------------------------------------------- /elegant/.config/colorer/templates/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 11" 4 | 5 | set completion-bg "{bg}" 6 | set completion-fg "{fg}" 7 | set completion-group-bg "{bg}" 8 | set completion-group-fg "{color2}" 9 | set completion-highlight-bg "{fg}" 10 | set completion-highlight-fg "{bg}" 11 | 12 | set recolor-lightcolor "{bg}" 13 | set recolor-darkcolor "{fg}" 14 | set default-bg "{bg}" 15 | 16 | set inputbar-bg "{bg}" 17 | set inputbar-fg "{fg}" 18 | set notification-bg "{bg}" 19 | set notification-fg "{fg}" 20 | set notification-error-bg "{color1}" 21 | set notification-error-fg "{fg}" 22 | set notification-warning-bg "{color1}" 23 | set notification-warning-fg "{fg}" 24 | set statusbar-bg "{bg}" 25 | set statusbar-fg "{fg}" 26 | set index-bg "{bg}" 27 | set index-fg "{fg}" 28 | set index-active-bg "{fg}" 29 | set index-active-fg "{bg}" 30 | set render-loading-bg "{bg}" 31 | set render-loading-fg "{fg}" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /elegant/.config/kitty/colors: -------------------------------------------------------------------------------- 1 | foreground #383A42 2 | background #FAFAFA 3 | color0 #FAFAFA 4 | color1 #E45649 5 | color2 #50A14F 6 | color3 #C18401 7 | color4 #0184BC 8 | color5 #A626A4 9 | color6 #0997B3 10 | color7 #383A42 11 | color8 #797d8d 12 | color9 #E45649 13 | color10 #50A14F 14 | color11 #C18401 15 | color12 #0184BC 16 | color13 #A626A4 17 | color14 #0997B3 18 | color15 #797d8d 19 | -------------------------------------------------------------------------------- /elegant/.config/kitty/kitty.conf: -------------------------------------------------------------------------------- 1 | include colors 2 | font_family monospace 3 | italic_font auto 4 | bold_font auto 5 | bold_italic_font auto 6 | font_size 14 7 | adjust_line_height -2 8 | 9 | cursor_shape beam 10 | 11 | window_padding_width 45 12 | initial_window_width 600 13 | initial_window_height 440 14 | remember_window_size no 15 | -------------------------------------------------------------------------------- /elegant/.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | polybar -r base & 10 | echo "Polybar launched..." 11 | -------------------------------------------------------------------------------- /elegant/.config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration { 2 | font: "SF Pro Text 11"; 3 | } 4 | -------------------------------------------------------------------------------- /elegant/.config/sxhkd/inner_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gaps=$(bspc config -d focused window_gap) 3 | [[ $(( $gaps$1 )) -ge 0 ]] && bspc config -d focused window_gap $(( $gaps$1 )) 4 | -------------------------------------------------------------------------------- /elegant/.config/sxhkd/move: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | state=$(bspc query -T -n | jq '.client.state' | sed 's/\"//g') 3 | interval=40 4 | 5 | if [[ "$state" == "tiled" ]]; then 6 | echo $state 7 | case $1 in 8 | west) bspc node -s west;; 9 | south) bspc node -s south;; 10 | north) bspc node -s north;; 11 | east) bspc node -s east 12 | esac 13 | fi 14 | 15 | if [[ "$state" == "floating" ]]; then 16 | case $1 in 17 | west) bspc node -v $(( 0 - $interval )) 0;; 18 | south) bspc node -v 0 $interval;; 19 | north) bspc node -v 0 $(( 0 - $interval ));; 20 | east) bspc node -v $interval 0 21 | esac 22 | fi 23 | -------------------------------------------------------------------------------- /elegant/.config/sxhkd/outer_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | left=$(bspc config ${@:2} left_padding) 3 | right=$(bspc config ${@:2} right_padding) 4 | top=$(bspc config ${@:2} top_padding) 5 | bottom=$(bspc config ${@:2} bottom_padding) 6 | 7 | if [[ ${1:0:1} = '=' ]] 8 | then 9 | n_left=${1:1} 10 | n_right=${1:1} 11 | n_top=${1:1} 12 | n_bottom=${1:1} 13 | else 14 | [[ $(($left$1)) -ge 0 ]] && n_left=$(($left$1)) 15 | [[ $(($right$1)) -ge 0 ]] && n_right=$(($right$1)) 16 | [[ $(($top$1)) -ge 0 ]] && n_top=$(($top$1)) 17 | [[ $(($bottom$1)) -ge 0 ]] && n_bottom=$(($bottom$1)) 18 | fi 19 | 20 | 21 | bspc config ${@:2} left_padding $n_left && echo $n_left 22 | bspc config ${@:2} right_padding $n_right && echo $n_right 23 | bspc config ${@:2} top_padding $n_top && echo $n_top 24 | bspc config ${@:2} bottom_padding $n_bottom && echo $n_bottom 25 | -------------------------------------------------------------------------------- /elegant/.config/sxhkd/resize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | size=${2:-'10'} 4 | dir=$1 5 | 6 | # Find current window mode 7 | is_tiled() { 8 | bspc query -T -n | grep -q '"state":"tiled"' 9 | } 10 | # If the window is floating, move it 11 | if ! is_tiled; then 12 | #only parse input if window is floating,tiled windows accept input as is 13 | case "$dir" in 14 | west) switch="-w" 15 | sign="-" 16 | ;; 17 | east) switch="-w" 18 | sign="+" 19 | ;; 20 | north) switch="-h" 21 | sign="-" 22 | ;; 23 | south) switch="-h" 24 | sign="+" 25 | ;; 26 | esac 27 | xdo resize ${switch} ${sign}${size} 28 | 29 | # Otherwise, window is tiled: switch with window in given direction 30 | else 31 | case "$dir" in 32 | west) bspc node @west -r -$size || bspc node @east -r -${size} 33 | ;; 34 | east) bspc node @west -r +$size || bspc node @east -r +${size} 35 | ;; 36 | north) bspc node @south -r -$size || bspc node @north -r -${size} 37 | ;; 38 | south) bspc node @south -r +$size || bspc node @north -r +${size} 39 | ;; 40 | esac 41 | fi 42 | -------------------------------------------------------------------------------- /elegant/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 11" 4 | 5 | set completion-bg "#FAFAFA" 6 | set completion-fg "#383A42" 7 | set completion-group-bg "#FAFAFA" 8 | set completion-group-fg "#50A14F" 9 | set completion-highlight-bg "#383A42" 10 | set completion-highlight-fg "#FAFAFA" 11 | 12 | set recolor-lightcolor "#FAFAFA" 13 | set recolor-darkcolor "#383A42" 14 | set default-bg "#FAFAFA" 15 | 16 | set inputbar-bg "#FAFAFA" 17 | set inputbar-fg "#383A42" 18 | set notification-bg "#FAFAFA" 19 | set notification-fg "#383A42" 20 | set notification-error-bg "#E45649" 21 | set notification-error-fg "#383A42" 22 | set notification-warning-bg "#E45649" 23 | set notification-warning-fg "#383A42" 24 | set statusbar-bg "#FAFAFA" 25 | set statusbar-fg "#383A42" 26 | set index-bg "#FAFAFA" 27 | set index-fg "#383A42" 28 | set index-active-bg "#383A42" 29 | set index-active-fg "#FAFAFA" 30 | set render-loading-bg "#FAFAFA" 31 | set render-loading-fg "#383A42" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /elegant/.inputrc: -------------------------------------------------------------------------------- 1 | # When pressing up or down arrow, show only history that 2 | # matches what was already written 3 | "\e[A":history-search-backward 4 | "\e[B":history-search-forward 5 | 6 | "\C-?": backward-kill-word 7 | "\e[3;5~": kill-word 8 | 9 | # Disable bell 10 | set bell-style none 11 | 12 | # set show-mode-in-prompt on 13 | -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Grand_Heavy.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Grand_Heavy.otf -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Grand_Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Grand_Light.otf -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Narrow.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Narrow.otf -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Regular.otf -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Text_Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Text_Bold.otf -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Thin_Italic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Thin_Italic.otf -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Tight.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Tight.otf -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Wide_Black_Italic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Wide_Black_Italic.otf -------------------------------------------------------------------------------- /elegant/.local/share/fonts/Agrandir/Agrandir_Wide_Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/.local/share/fonts/Agrandir/Agrandir_Wide_Light.otf -------------------------------------------------------------------------------- /elegant/.profile: -------------------------------------------------------------------------------- 1 | if [ -n "$BASH_VERSION" ]; then 2 | # include .bashrc if it exists 3 | if [ -f "$HOME/.bashrc" ]; then 4 | . "$HOME/.bashrc" 5 | fi 6 | fi 7 | 8 | # set PATH so it includes user's private bin if it exists 9 | if [ -d "$HOME/.local/bin" ] ; then 10 | PATH="$HOME/.local/bin:$PATH" 11 | fi 12 | 13 | # constants 14 | export TERMINAL="kitty" 15 | export EDITOR="nvim" 16 | export BROWSER="firefox" 17 | export SCRIPT_FOLDER="$HOME/.bin" 18 | export WALLPAPER_FOLDER="$HOME/Pictures/Wallpapers/" 19 | 20 | # add scripts to path 21 | PATH="$SCRIPT_FOLDER:$PATH" 22 | 23 | export QT_QPA_PLATFORMTHEME=qt5ct 24 | -------------------------------------------------------------------------------- /elegant/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -f ~/.xprofile ] && . ~/.xprofile 3 | exec bspwm 4 | -------------------------------------------------------------------------------- /elegant/.xprofile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xrdb -merge ~/.cache/colorer/Xresources 3 | # lock-screen-timer & 4 | # timemanager & 5 | # setxkbmap fr 6 | xsetroot -cursor_name left_ptr 7 | xset +fp /usr/share/fonts/misc/ 8 | xset fp rehash 9 | xset b off 10 | -------------------------------------------------------------------------------- /elegant/README.md: -------------------------------------------------------------------------------- 1 | # `elegant` 2 | > Exaggerated curves and proportions for a modern, artsy yet cute experience. 3 | 4 | # Screenshots 5 | 6 | ![screenshot1](screenshot1.png) 7 | ![screenshot2](screenshot2.png) 8 | ![screenshot3](screenshot3.png) 9 | 10 | # Some info 11 | 12 | + Colorscheme: [`onelight`](https://github.com/kiddae/colorer-colorschemes/blob/main/onedark) 13 | + Wallpaper: [link](https://github.com/kiddae/wallpapers/blob/main/misc/liana-mikah-4RTAF3Z-0zM-unsplash.jpg?raw=true) 14 | + Font: `Space Mono` and `Agrandir` ([included](.local/share/fonts/Agrandir)) 15 | + Shown in the screenshots: `bspwm`, `polybar`, `quodlibet`, `visualboy-advance` (with Pokemon Ruby), `neovim`, `cava`, `firefox` with NightTab, `zathura`, `kitty` with `bashed-on-a-feeling`. 16 | -------------------------------------------------------------------------------- /elegant/screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/screenshot1.png -------------------------------------------------------------------------------- /elegant/screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/screenshot2.png -------------------------------------------------------------------------------- /elegant/screenshot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/elegant/screenshot3.png -------------------------------------------------------------------------------- /hermine/.Xresources: -------------------------------------------------------------------------------- 1 | #include ".config/colorer/out/Xresources" 2 | Xft.dpi: 96 3 | -------------------------------------------------------------------------------- /hermine/.bin/bunnyfetch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Tiny colored fetch script 3 | # Requires Typicons Font to display the icons 4 | # elenapan @ github 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | i=$'\e[3m' 16 | 17 | # Items 18 | sep= 19 | s=$d$f0$sep$t 20 | 21 | w= 22 | wifiname="$(iwgetid | cut -d \" -f2)" 23 | 24 | h= 25 | wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" 26 | 27 | k= 28 | kernel="$(uname -r | cut -d '-' -f1)" 29 | 30 | r= 31 | resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)" 32 | 33 | sh= 34 | shell=$(basename $SHELL) 35 | 36 | # (\ /) 37 | # ( · ·) 38 | # c(")(") 39 | 40 | # (\ /) 41 | # ( . .) 42 | # c(")(") 43 | 44 | tput clear 45 | cat << EOF 46 | 47 | $d$f1$h $t$i$wmname$t 48 | (\ /) $f3$k $t$i$kernel$t 49 | ( $d. .$t) $f2$sh $t$i$shell$t 50 | c($f1"$t)($f1"$t) $f5$r $t$i$resolution$t 51 | $f4$w $t$i$wifiname$t 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /hermine/.bin/cl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Nice and clean colorscheme script 4 | 5 | f=3 b=4 6 | for j in f b; do 7 | for i in {0..7}; do 8 | printf -v $j$i %b "\e[${!j}${i}m" 9 | done 10 | done 11 | d=$'\e[1m' 12 | t=$'\e[0m' 13 | v=$'\e[7m' 14 | 15 | cat << EOF 16 | 17 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 18 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 19 | $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t 20 | 21 | EOF 22 | -------------------------------------------------------------------------------- /hermine/.bin/getxres: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xrdb -query | grep $1 | head -n1 | cut -d':' -f2 | sed 's/ //g' 3 | -------------------------------------------------------------------------------- /hermine/.bin/launcher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # theme=~/.cache/colorer/rofi.rasi 3 | # theme=~/.config/rofi/san.rasi 4 | # rofi -show run -theme $theme 5 | prompt 'Launcher' --run 6 | -------------------------------------------------------------------------------- /hermine/.bin/playerctl_controls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | play_icon=$2 3 | pause_icon=$3 4 | prev_icon=$4 5 | next_icon=$5 6 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && color=$(polybar --dump=foreground base 2>/dev/null) || color=$(polybar --dump=line-color base 2>/dev/null) 7 | player=$1 8 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && status=$pause_icon || status=$play_icon 9 | string=$(echo %{A1:playerctl previous -p $1:}$prev_icon%{A}%{A1:playerctl play-pause -p $1:} $status%{A}%{A1:playerctl next -p $1:} $next_icon%{A}%{-o}) 10 | 11 | echo $string 12 | -------------------------------------------------------------------------------- /hermine/.bin/powermenu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | choices="Poweroff\nQuit\nReboot\nLock\nSuspend" 3 | # chosen=$(echo -e $choices | rofi -dmenu -i -p "Power Menu" -theme ~/.cache/colorer/rofi.rasi) 4 | fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 5 | bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 6 | chosen=$(echo -e $choices | prompt "Powermenu") 7 | echo "$chosen" 8 | 9 | case "$chosen" in 10 | Lock) lock ;; 11 | Suspend) systemctl suspend ;; 12 | Quit) bspc quit ;; 13 | Poweroff) poweroff ;; 14 | Reboot) reboot ;; 15 | esac 16 | -------------------------------------------------------------------------------- /hermine/.bin/prompt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Use as dmenu (by piping values separated by \n to it) 4 | # $1 is the text shown in the prompt (defaults as 'dmenu') 5 | # if $2 is '--run', runs dmenu_run instead 6 | 7 | fg=$(colorer -g color7) 8 | bg=$(colorer -g bg) 9 | [[ $1 == '' ]] && prompt='dmenu' || prompt=$1 10 | args="-fn scientifica-8 -h 30 -nb ${bg} -nf ${fg} -sb ${fg} -sf ${bg} -p ${prompt} -i -b -w 1870 -x 25 -y 25" 11 | [[ $2 == '--run' ]] && dmenu_run $args || dmenu $args 12 | # [[ $2 == '--run' ]] && rofi -show run -theme ~/.config/colorer/out/rofi.rasi || rofi -dmenu -p "$1" -theme ~/.config/colorer/out/rofi.rasi -i 13 | -------------------------------------------------------------------------------- /hermine/.bin/screen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # file=/tmp/$(date +%s).png 4 | # default_dir=~/Pictures/Screenshots 5 | # 6 | # sleep 0.6 7 | # maim -u $1 $file 8 | # 9 | # # dir=$(find ~ -type d 2>/dev/null | rofi -dmenu -i -p "Choose a directory" -theme ~/.cache/colorer/rofi.rasi) 10 | # fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 11 | # bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 12 | # #dir=$(find ~ -type d 2>/dev/null | prompt "Where?") 13 | # dir=$default_dir 14 | # 15 | # if [[ -n $dir ]]; then 16 | # mv $file $dir 17 | # else 18 | # mv $file $default_dir 19 | # fi 20 | 21 | file=~/Pictures/Screenshots/$(date +%s).png 22 | maim -u $1 $file 23 | 24 | xclip -selection clipboard -target image/png -i $file 25 | 26 | notify-send "Took a screenshot" "saved to ${file} and copied to clipboard." -i $file 27 | -------------------------------------------------------------------------------- /hermine/.bin/toggle_bar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xdo show -N Polybar; pkill -f polybar-autohide || polybar-autohide &>/dev/null 3 | -------------------------------------------------------------------------------- /hermine/.cal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git=`which git` 4 | while read -ra Z; do 5 | if [[ "${Z[@]}" == \*\ * ]]; then 6 | gbranch="${Z[1]}" 7 | break 8 | fi 9 | done <<< "$($git branch 2> /dev/null)" 10 | 11 | ((cno=0)) 12 | while read -r Z; do 13 | [[ "$Z" == commit* ]] && ((cno+=1)) 14 | done <<< "$($git log 2> /dev/null)" 15 | 16 | $git rev-list --left-right --count origin/main..."$gbranch" >/dev/null 2>&1 17 | if [ "$?" == 0 ];then 18 | rev=`$git rev-list --left-right --count origin/main..."$gbranch"`; 19 | beh=$(cut -f1 <<< $rev ) 20 | ahe=$(cut -f2 <<< $rev ) 21 | 22 | echo -e "$($git diff --cached --name-only | wc -l)"\ 23 | "$($git diff --stat origin/main.. | wc -l)"\ 24 | "$($git diff --name-status | wc -l)"\ 25 | "$($git ls-files --others --exclude-standard | wc -l)"\ 26 | "$gbranch"\ 27 | "${cno}"\ 28 | "$beh"\ 29 | "$ahe" 30 | else 31 | beh="-1" 32 | ahe="-1" 33 | echo -e "$($git diff --cached --name-only | wc -l)"\ 34 | "0"\ 35 | "$($git diff --name-status | wc -l)"\ 36 | "$($git ls-files --others --exclude-standard | wc -l)"\ 37 | "$gbranch"\ 38 | "${cno}"\ 39 | "$beh"\ 40 | "$ahe" 41 | fi 42 | 43 | -------------------------------------------------------------------------------- /hermine/.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # startup 4 | sxhkd & 5 | ~/.fehbg & 6 | # feh --bg-fill --force-aliasing ~/Pictures/Wallpapers/pixel/colorized/image33.png 7 | # hsetroot -solid $(getxres background) 8 | ~/.config/polybar/launch.sh & 9 | picom & 10 | dunst & 11 | # pgrep xflux || xflux -l 43.36 -g 1.26 & 12 | udiskie & 13 | # pkill flashfocus ; flashfocus & 14 | 15 | # wm config 16 | bspc config border_width 1 17 | bspc config window_gap 15 18 | out=0 19 | # bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out + $(bspc config window_gap))) 20 | # bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out)) 21 | bspc config bottom_padding 65 22 | bspc config split_ratio 0.50 23 | 24 | bspc config focus_follows_pointer true 25 | 26 | bspc monitor -d 1 2 3 4 5 27 | 28 | # rules 29 | bspc rule -a Zathura state=tiled 30 | 31 | inactive=$(colorer -g bg) 32 | active=$(colorer -g color3) 33 | bspc config normal_border_color "$inactive" 34 | bspc config focused_border_color "$inactive" 35 | # bspc config focused_border_color "$inactive" 36 | bspc config presel_feedback_color "$inactive" 37 | pkill 2bspwm ; 2bspwm & 38 | -------------------------------------------------------------------------------- /hermine/.config/colorer/README.md: -------------------------------------------------------------------------------- 1 | # Example files for [colorer](https://github.com/kiddae/colorer) 2 | 3 | This includes colorschemes, templates for various config files and commands for colorer. 4 | 5 | The repo is organized as the `~/.config/colorer/` folder should be. 6 | -------------------------------------------------------------------------------- /hermine/.config/colorer/commands: -------------------------------------------------------------------------------- 1 | echo "Applying changes" 2 | sed -E "s/colorscheme .+/colorscheme {vim}/g" ~/.config/nvim/global.vim -i 3 | # sed -E "s/'colorscheme': '.+',$/'colorscheme': '{lightline}',/g" ~/.config/nvim/plug-config/lightline.vim -i 4 | sed -E "s/let g:airline_theme = '.+'$/let g:airline_theme = '{airline}'/g" ~/.config/nvim/plug-config/airline.vim -i 5 | echo -ne $(cat ~/.config/colorer/out/sequences) | tee /dev/pts/[0-9]* 6 | cp {wp} /usr/share/sddm/themes/sugar-candy/Backgrounds/Wall.png 7 | cp ~/.config/colorer/out/lightdm-mini-greeter.conf /etc/lightdm/lightdm-mini-greeter.conf 8 | cp ~/.config/colorer/out/dunstrc ~/.config/dunst/dunstrc 9 | cp ~/.config/colorer/out/kitty ~/.config/kitty/colors 10 | cp ~/.config/colorer/out/userChrome.css ~/.mozilla/firefox/5rg3vfkm.default-release/chrome/userChrome.css 11 | cp ~/.config/colorer/out/zathurarc ~/.config/zathura/zathurarc 12 | cp ~/.config/colorer/out/discord.css ~/.cache/colorer/discord.css 13 | echo "Reloading everything" 14 | xrdb -merge ~/.config/colorer/out/Xresources 15 | # pkill -USR1 polybar 16 | killall dunst && dunst & 17 | feh --bg-fill {wp} 18 | bspc wm -r 19 | # echo "Generating GTK theme..." 20 | # oomox-cli /opt/oomox/scripted_colors/xresources/xresources-reverse -t ~/.local/share/themes/ -m all -d true & 21 | -------------------------------------------------------------------------------- /hermine/.config/colorer/templates/Xresources: -------------------------------------------------------------------------------- 1 | *background: {bg} 2 | *foreground: {fg} 3 | ! Black + DarkGrey 4 | *color0: {color0} 5 | *color8: {color8} 6 | ! DarkRed + Red 7 | *color1: {color1} 8 | *color9: {color9} 9 | ! DarkGreen + Green 10 | *color2: {color2} 11 | *color10: {color10} 12 | ! DarkYellow + Yellow 13 | *color3: {color3} 14 | *color11: {color11} 15 | ! DarkBlue + Blue 16 | *color4: {color4} 17 | *color12: {color12} 18 | ! DarkMagenta + Magenta 19 | *color5: {color5} 20 | *color13: {color13} 21 | ! DarkCyan + Cyan 22 | *color6: {color6} 23 | *color14: {color14} 24 | ! LightGrey + White 25 | *color7: {color7} 26 | *color15: {color15} 27 | -------------------------------------------------------------------------------- /hermine/.config/colorer/templates/alacritty: -------------------------------------------------------------------------------- 1 | colors: 2 | # Default colors 3 | primary: 4 | background: '{bg}' 5 | foreground: '{fg}' 6 | 7 | # Normal colors 8 | normal: 9 | # NOTE: Use '#131613' for the `black` color if you'd like to see 10 | # black text on the background. 11 | black: '{color0}' 12 | red: '{color1}' 13 | green: '{color2}' 14 | yellow: '{color3}' 15 | blue: '{color4}' 16 | magenta: '{color5}' 17 | cyan: '{color6}' 18 | white: '{color7}' 19 | 20 | # Bright colors 21 | bright: 22 | black: '{color8}' 23 | red: '{color9}' 24 | green: '{color10}' 25 | yellow: '{color11}' 26 | blue: '{color12}' 27 | magenta: '{color13}' 28 | cyan: '{color14}' 29 | white: '{color15}' 30 | -------------------------------------------------------------------------------- /hermine/.config/colorer/templates/kitty: -------------------------------------------------------------------------------- 1 | foreground {fg} 2 | background {bg} 3 | color0 {color0} 4 | color1 {color1} 5 | color2 {color2} 6 | color3 {color3} 7 | color4 {color4} 8 | color5 {color5} 9 | color6 {color6} 10 | color7 {color7} 11 | color8 {color8} 12 | color9 {color9} 13 | color10 {color10} 14 | color11 {color11} 15 | color12 {color12} 16 | color13 {color13} 17 | color14 {color14} 18 | color15 {color15} 19 | -------------------------------------------------------------------------------- /hermine/.config/colorer/templates/polybar: -------------------------------------------------------------------------------- 1 | [colors] 2 | background = {bg} 3 | foreground = {fg} 4 | color0 = {color0} 5 | color1 = {color1} 6 | color2 = {color2} 7 | color3 = {color3} 8 | color4 = {color4} 9 | color5 = {color5} 10 | color6 = {color6} 11 | color7 = {color7} 12 | color8 = {color8} 13 | color9 = {color9} 14 | color10 = {color10} 15 | color11 = {color11} 16 | color12 = {color12} 17 | color13 = {color13} 18 | color14 = {color14} 19 | color15 = {color15} 20 | -------------------------------------------------------------------------------- /hermine/.config/colorer/templates/sequences: -------------------------------------------------------------------------------- 1 | \033]4;0;{color0}\033\\\033]4;1;{color1}\033\\\033]4;2;{color2}\033\\\033]4;3;{color3}\033\\\033]4;4;{color4}\033\\\033]4;5;{color5}\033\\\033]4;6;{color6}\033\\\033]4;7;{color7}\033\\\033]4;8;{color8}\033\\\033]4;9;{color9}\033\\\033]4;10;{color10}\033\\\033]4;11;{color11}\033\\\033]4;12;{color12}\033\\\033]4;13;{color13}\033\\\033]4;14;{color14}\033\\\033]4;15;{color15}\033\\\033]10;{fg}\033\\\033]11;{bg}\033\\ 2 | -------------------------------------------------------------------------------- /hermine/.config/colorer/templates/var.css: -------------------------------------------------------------------------------- 1 | /* CSS variables 2 | Generated by 'colorer' */ 3 | :root {{ 4 | --wallpaper: url("{wp}"); 5 | 6 | /* Special */ 7 | --background: {bg}; 8 | --foreground: {fg}; 9 | --cursor: {fg}; 10 | 11 | /* Colors */ 12 | --color0: {color0}; 13 | --color1: {color1}; 14 | --color2: {color2}; 15 | --color3: {color3}; 16 | --color4: {color4}; 17 | --color5: {color5}; 18 | --color6: {color6}; 19 | --color7: {color7}; 20 | --color8: {color8}; 21 | --color9: {color9}; 22 | --color10: {color10}; 23 | --color11: {color11}; 24 | --color12: {color12}; 25 | --color13: {color13}; 26 | --color14: {color14}; 27 | --color15: {color15}; 28 | }} 29 | -------------------------------------------------------------------------------- /hermine/.config/colorer/templates/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "scientifica 8" 4 | 5 | set completion-bg "{bg}" 6 | set completion-fg "{fg}" 7 | set completion-group-bg "{bg}" 8 | set completion-group-fg "{color2}" 9 | set completion-highlight-bg "{fg}" 10 | set completion-highlight-fg "{bg}" 11 | 12 | set recolor-lightcolor "{bg}" 13 | set recolor-darkcolor "{fg}" 14 | set default-bg "{bg}" 15 | 16 | set inputbar-bg "{bg}" 17 | set inputbar-fg "{fg}" 18 | set notification-bg "{bg}" 19 | set notification-fg "{fg}" 20 | set notification-error-bg "{color1}" 21 | set notification-error-fg "{fg}" 22 | set notification-warning-bg "{color1}" 23 | set notification-warning-fg "{fg}" 24 | set statusbar-bg "{bg}" 25 | set statusbar-fg "{fg}" 26 | set index-bg "{bg}" 27 | set index-fg "{fg}" 28 | set index-active-bg "{fg}" 29 | set index-active-fg "{bg}" 30 | set render-loading-bg "{bg}" 31 | set render-loading-fg "{fg}" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /hermine/.config/kitty/colors: -------------------------------------------------------------------------------- 1 | foreground #d8dee9 2 | background #2e3440 3 | color0 #3b4252 4 | color1 #bf616a 5 | color2 #a3be8c 6 | color3 #ebcb8b 7 | color4 #81a1c1 8 | color5 #b48ead 9 | color6 #88c0d0 10 | color7 #e5e9f0 11 | color8 #4c566a 12 | color9 #bf616a 13 | color10 #a3be8c 14 | color11 #ebcb8b 15 | color12 #81a1c1 16 | color13 #b48ead 17 | color14 #8fbcbb 18 | color15 #eceff4 19 | -------------------------------------------------------------------------------- /hermine/.config/kitty/kitty.conf: -------------------------------------------------------------------------------- 1 | include colors 2 | font_family monospace 3 | italic_font auto 4 | bold_font auto 5 | bold_italic_font auto 6 | font_size 11 7 | 8 | cursor_shape beam 9 | 10 | window_padding_width 35 11 | initial_window_width 600 12 | initial_window_height 440 13 | remember_window_size no 14 | -------------------------------------------------------------------------------- /hermine/.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | (sleep 2; polybar -r background) & 10 | (sleep 3; polybar -r base) & 11 | echo "Polybar launched..." 12 | -------------------------------------------------------------------------------- /hermine/.config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration { 2 | font: "SF Pro Text 11"; 3 | } 4 | -------------------------------------------------------------------------------- /hermine/.config/sxhkd/inner_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gaps=$(bspc config -d focused window_gap) 3 | [[ $(( $gaps$1 )) -ge 0 ]] && bspc config -d focused window_gap $(( $gaps$1 )) 4 | -------------------------------------------------------------------------------- /hermine/.config/sxhkd/move: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | state=$(bspc query -T -n | jq '.client.state' | sed 's/\"//g') 3 | interval=40 4 | 5 | if [[ "$state" == "tiled" ]]; then 6 | echo $state 7 | case $1 in 8 | west) bspc node -s west;; 9 | south) bspc node -s south;; 10 | north) bspc node -s north;; 11 | east) bspc node -s east 12 | esac 13 | fi 14 | 15 | if [[ "$state" == "floating" ]]; then 16 | case $1 in 17 | west) bspc node -v $(( 0 - $interval )) 0;; 18 | south) bspc node -v 0 $interval;; 19 | north) bspc node -v 0 $(( 0 - $interval ));; 20 | east) bspc node -v $interval 0 21 | esac 22 | fi 23 | -------------------------------------------------------------------------------- /hermine/.config/sxhkd/outer_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | left=$(bspc config ${@:2} left_padding) 3 | right=$(bspc config ${@:2} right_padding) 4 | top=$(bspc config ${@:2} top_padding) 5 | bottom=$(bspc config ${@:2} bottom_padding) 6 | 7 | if [[ ${1:0:1} = '=' ]] 8 | then 9 | n_left=${1:1} 10 | n_right=${1:1} 11 | n_top=${1:1} 12 | n_bottom=${1:1} 13 | else 14 | [[ $(($left$1)) -ge 0 ]] && n_left=$(($left$1)) 15 | [[ $(($right$1)) -ge 0 ]] && n_right=$(($right$1)) 16 | [[ $(($top$1)) -ge 0 ]] && n_top=$(($top$1)) 17 | [[ $(($bottom$1)) -ge 0 ]] && n_bottom=$(($bottom$1)) 18 | fi 19 | 20 | 21 | bspc config ${@:2} left_padding $n_left && echo $n_left 22 | bspc config ${@:2} right_padding $n_right && echo $n_right 23 | bspc config ${@:2} top_padding $n_top && echo $n_top 24 | bspc config ${@:2} bottom_padding $n_bottom && echo $n_bottom 25 | -------------------------------------------------------------------------------- /hermine/.config/sxhkd/resize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | size=${2:-'10'} 4 | dir=$1 5 | 6 | # Find current window mode 7 | is_tiled() { 8 | bspc query -T -n | grep -q '"state":"tiled"' 9 | } 10 | # If the window is floating, move it 11 | if ! is_tiled; then 12 | #only parse input if window is floating,tiled windows accept input as is 13 | case "$dir" in 14 | west) switch="-w" 15 | sign="-" 16 | ;; 17 | east) switch="-w" 18 | sign="+" 19 | ;; 20 | north) switch="-h" 21 | sign="-" 22 | ;; 23 | south) switch="-h" 24 | sign="+" 25 | ;; 26 | esac 27 | xdo resize ${switch} ${sign}${size} 28 | 29 | # Otherwise, window is tiled: switch with window in given direction 30 | else 31 | case "$dir" in 32 | west) bspc node @west -r -$size || bspc node @east -r -${size} 33 | ;; 34 | east) bspc node @west -r +$size || bspc node @east -r +${size} 35 | ;; 36 | north) bspc node @south -r -$size || bspc node @north -r -${size} 37 | ;; 38 | south) bspc node @south -r +$size || bspc node @north -r +${size} 39 | ;; 40 | esac 41 | fi 42 | -------------------------------------------------------------------------------- /hermine/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "scientifica 8" 4 | 5 | set completion-bg "#2e3440" 6 | set completion-fg "#d8dee9" 7 | set completion-group-bg "#2e3440" 8 | set completion-group-fg "#a3be8c" 9 | set completion-highlight-bg "#d8dee9" 10 | set completion-highlight-fg "#2e3440" 11 | 12 | set recolor-lightcolor "#2e3440" 13 | set recolor-darkcolor "#d8dee9" 14 | set default-bg "#2e3440" 15 | 16 | set inputbar-bg "#2e3440" 17 | set inputbar-fg "#d8dee9" 18 | set notification-bg "#2e3440" 19 | set notification-fg "#d8dee9" 20 | set notification-error-bg "#bf616a" 21 | set notification-error-fg "#d8dee9" 22 | set notification-warning-bg "#bf616a" 23 | set notification-warning-fg "#d8dee9" 24 | set statusbar-bg "#2e3440" 25 | set statusbar-fg "#d8dee9" 26 | set index-bg "#2e3440" 27 | set index-fg "#d8dee9" 28 | set index-active-bg "#d8dee9" 29 | set index-active-fg "#2e3440" 30 | set render-loading-bg "#2e3440" 31 | set render-loading-fg "#d8dee9" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /hermine/.inputrc: -------------------------------------------------------------------------------- 1 | # When pressing up or down arrow, show only history that 2 | # matches what was already written 3 | "\e[A":history-search-backward 4 | "\e[B":history-search-forward 5 | 6 | "\C-?": backward-kill-word 7 | "\e[3;5~": kill-word 8 | 9 | # Disable bell 10 | set bell-style none 11 | 12 | # set show-mode-in-prompt on 13 | -------------------------------------------------------------------------------- /hermine/.profile: -------------------------------------------------------------------------------- 1 | if [ -n "$BASH_VERSION" ]; then 2 | # include .bashrc if it exists 3 | if [ -f "$HOME/.bashrc" ]; then 4 | . "$HOME/.bashrc" 5 | fi 6 | fi 7 | 8 | # set PATH so it includes user's private bin if it exists 9 | if [ -d "$HOME/.local/bin" ] ; then 10 | PATH="$HOME/.local/bin:$PATH" 11 | fi 12 | 13 | # constants 14 | export TERMINAL="alacritty" 15 | export EDITOR="nvim" 16 | export BROWSER="firefox" 17 | export SCRIPT_FOLDER="$HOME/.bin" 18 | export WALLPAPER_FOLDER="$HOME/Pictures/Wallpapers/" 19 | 20 | # add scripts to path 21 | PATH="$SCRIPT_FOLDER:$PATH" 22 | 23 | export QT_QPA_PLATFORMTHEME=qt5ct 24 | -------------------------------------------------------------------------------- /hermine/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -f ~/.xprofile ] && . ~/.xprofile 3 | exec bspwm 4 | -------------------------------------------------------------------------------- /hermine/.xprofile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xrdb -merge ~/.cache/colorer/Xresources 3 | # lock-screen-timer & 4 | # timemanager & 5 | # setxkbmap fr 6 | xsetroot -cursor_name left_ptr 7 | xset +fp /usr/share/fonts/misc/ 8 | xset fp rehash 9 | xset b off 10 | -------------------------------------------------------------------------------- /hermine/README.md: -------------------------------------------------------------------------------- 1 | # `hermine` 2 | > Dreamy and weirdly comforting. 3 | 4 | # Screenshots 5 | 6 | ![screenshot1](screenshot1.png) 7 | ![screenshot2](screenshot2.png) 8 | ![screenshot3](screenshot3.png) 9 | 10 | # Some info 11 | 12 | + Colorscheme: [`nord`](https://github.com/kiddae/colorer-colorschemes/blob/main/nord) 13 | + Wallpaper: [link](https://raw.githubusercontent.com/kiddae/wallpapers/main/anime/colorized/wallhaven-vg6dqp.jpg) 14 | + Fonts: [`scientifica`](https://github.com/nerdypepper/scientifica), [`Cozette`](https://github.com/slavfox/Cozette). 15 | + Shown in the screenshots: `bspwm`, `polybar`, `picom`, [`2bspwm`](.bin/2bspwm) for the double borders, `quodlibet`, `ufetch`, `cava`, `bashtop`, `firefox` and customized MonkeyType, `dunst`, `alacritty` with `bashed-on-a-feeling`, [`cl`](.bin/cl), `neovim`. 16 | -------------------------------------------------------------------------------- /hermine/screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/hermine/screenshot1.png -------------------------------------------------------------------------------- /hermine/screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/hermine/screenshot2.png -------------------------------------------------------------------------------- /hermine/screenshot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/hermine/screenshot3.png -------------------------------------------------------------------------------- /lain/.Xresources: -------------------------------------------------------------------------------- 1 | #include ".config/colorer/out/Xresources" 2 | Xft.dpi: 96 3 | -------------------------------------------------------------------------------- /lain/.bin/bunnyfetch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Tiny colored fetch script 3 | # Requires Typicons Font to display the icons 4 | # elenapan @ github 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | i=$'\e[3m' 16 | 17 | # Items 18 | sep= 19 | s=$d$f0$sep$t 20 | 21 | w= 22 | wifiname="$(iwgetid | cut -d \" -f2)" 23 | 24 | h= 25 | wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" 26 | 27 | k= 28 | kernel="$(uname -r | cut -d '-' -f1)" 29 | 30 | r= 31 | resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)" 32 | 33 | sh= 34 | shell=$(basename $SHELL) 35 | 36 | # (\ /) 37 | # ( · ·) 38 | # c(")(") 39 | 40 | # (\ /) 41 | # ( . .) 42 | # c(")(") 43 | 44 | tput clear 45 | cat << EOF 46 | 47 | $d$f1$h $t$i$wmname$t 48 | (\ /) $f3$k $t$i$kernel$t 49 | ( $d. .$t) $f2$sh $t$i$shell$t 50 | c($f1"$t)($f1"$t) $f5$r $t$i$resolution$t 51 | $f4$w $t$i$wifiname$t 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /lain/.bin/cl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Nice and clean colorscheme script 4 | 5 | f=3 b=4 6 | for j in f b; do 7 | for i in {0..7}; do 8 | printf -v $j$i %b "\e[${!j}${i}m" 9 | done 10 | done 11 | d=$'\e[1m' 12 | t=$'\e[0m' 13 | v=$'\e[7m' 14 | 15 | cat << EOF 16 | 17 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 18 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 19 | $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t 20 | 21 | EOF 22 | -------------------------------------------------------------------------------- /lain/.bin/getxres: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xrdb -query | grep $1 | head -n1 | cut -d':' -f2 | sed 's/ //g' 3 | -------------------------------------------------------------------------------- /lain/.bin/launcher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # theme=~/.cache/colorer/rofi.rasi 3 | # theme=~/.config/rofi/san.rasi 4 | # rofi -show run -theme $theme 5 | prompt 'Launcher' --run 6 | -------------------------------------------------------------------------------- /lain/.bin/playerctl_controls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | play_icon=$2 3 | pause_icon=$3 4 | prev_icon=$4 5 | next_icon=$5 6 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && color=$(polybar --dump=foreground base 2>/dev/null) || color=$(polybar --dump=line-color base 2>/dev/null) 7 | player=$1 8 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && status=$pause_icon || status=$play_icon 9 | string=$(echo %{A1:playerctl previous -p $1:}$prev_icon%{A}%{A1:playerctl play-pause -p $1:} $status%{A}%{A1:playerctl next -p $1:} $next_icon%{A}%{-o}) 10 | 11 | echo $string 12 | -------------------------------------------------------------------------------- /lain/.bin/playerctl_status: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import sys 3 | import subprocess 4 | 5 | 6 | def get(str): 7 | try: 8 | return subprocess.check_output(str, shell=True).decode('utf-8').replace('\n', '') 9 | except: 10 | return "" 11 | 12 | 13 | def getpol(key, bar): 14 | str = "polybar --dump={} {} 2>/dev/null".format(key, bar) 15 | return get(str) 16 | 17 | 18 | def getctl(format): 19 | global player 20 | str = "playerctl metadata --format {{{{{}}}}} -p {} 2>/dev/null".format( 21 | format, player) 22 | return get(str) 23 | 24 | 25 | player = sys.argv[1] 26 | play_icon = sys.argv[2] 27 | pause_icon = sys.argv[3] 28 | prev_icon = sys.argv[4] 29 | next_icon = sys.argv[5] 30 | logo_icon = sys.argv[6] 31 | strlen = int(sys.argv[7]) 32 | 33 | if getctl('status') == "Playing": 34 | color = getpol('foreground', 'base') 35 | else: 36 | color = getpol('line-color', 'base') 37 | 38 | artist = getctl('artist') 39 | title = getctl('title') 40 | total_length = len(artist) + len(title) + 2 41 | 42 | if total_length > strlen: 43 | difference = total_length-strlen 44 | title = title[:-difference] + '…' 45 | total_length = len(artist) + len(title) + 1 46 | if total_length > strlen: 47 | difference = total_length-strlen 48 | artist = artist[:-difference] 49 | 50 | if getctl('status') == "Playing": 51 | status = pause_icon 52 | else: 53 | status = play_icon 54 | 55 | # Formatting the string 56 | strlogo = "%{F" + color + "}" + logo_icon 57 | strartist = "%{T2}" + artist + ":%{T-}" 58 | strtitle = title 59 | strprev = "%{F-}%{A1:playerctl previous -p " + \ 60 | player + ":}" + prev_icon + "%{A}" 61 | strplaypause = "%{A1:playerctl play-pause -p " + \ 62 | player + ":}" + status + "%{A}" 63 | strnext = "%{A1:playerctl next -p " + player + ":}" + next_icon + "%{A}" 64 | 65 | print(strlogo, strartist, strtitle, strprev, strplaypause, strnext) 66 | -------------------------------------------------------------------------------- /lain/.bin/powermenu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | choices="Poweroff\nQuit\nReboot\nLock\nSuspend" 3 | # chosen=$(echo -e $choices | rofi -dmenu -i -p "Power Menu" -theme ~/.cache/colorer/rofi.rasi) 4 | fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 5 | bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 6 | chosen=$(echo -e $choices | prompt "Powermenu") 7 | echo "$chosen" 8 | 9 | case "$chosen" in 10 | Lock) lock ;; 11 | Suspend) systemctl suspend ;; 12 | Quit) bspc quit ;; 13 | Poweroff) poweroff ;; 14 | Reboot) reboot ;; 15 | esac 16 | -------------------------------------------------------------------------------- /lain/.bin/prompt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Use as dmenu (by piping values separated by \n to it) 4 | # $1 is the text shown in the prompt (defaults as 'dmenu') 5 | # if $2 is '--run', runs dmenu_run instead 6 | 7 | fg=$(colorer -g color7) 8 | bg=$(colorer -g bg) 9 | [[ $1 == '' ]] && prompt='dmenu' || prompt=$1 10 | args="-fn cherry-11 -h 50 -nb ${bg} -nf ${fg} -sb ${fg} -sf ${bg} -p ${prompt} -i" 11 | [[ $2 == '--run' ]] && dmenu_run $args || dmenu $args 12 | # [[ $2 == '--run' ]] && rofi -show run -theme ~/.config/colorer/out/rofi.rasi || rofi -dmenu -p "$1" -theme ~/.config/colorer/out/rofi.rasi -i 13 | -------------------------------------------------------------------------------- /lain/.bin/screen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # file=/tmp/$(date +%s).png 4 | # default_dir=~/Pictures/Screenshots 5 | # 6 | # sleep 0.6 7 | # maim -u $1 $file 8 | # 9 | # # dir=$(find ~ -type d 2>/dev/null | rofi -dmenu -i -p "Choose a directory" -theme ~/.cache/colorer/rofi.rasi) 10 | # fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 11 | # bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 12 | # #dir=$(find ~ -type d 2>/dev/null | prompt "Where?") 13 | # dir=$default_dir 14 | # 15 | # if [[ -n $dir ]]; then 16 | # mv $file $dir 17 | # else 18 | # mv $file $default_dir 19 | # fi 20 | 21 | file=~/Pictures/Screenshots/$(date +%s).png 22 | maim -u $1 $file 23 | 24 | xclip -selection clipboard -target image/png -i $file 25 | 26 | notify-send "Took a screenshot" "saved to ${file} and copied to clipboard." -i $file 27 | -------------------------------------------------------------------------------- /lain/.bin/toggle_bar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xdo show -N Polybar; pkill -f polybar-autohide || polybar-autohide &>/dev/null 3 | -------------------------------------------------------------------------------- /lain/.cal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git=`which git` 4 | while read -ra Z; do 5 | if [[ "${Z[@]}" == \*\ * ]]; then 6 | gbranch="${Z[1]}" 7 | break 8 | fi 9 | done <<< "$($git branch 2> /dev/null)" 10 | 11 | ((cno=0)) 12 | while read -r Z; do 13 | [[ "$Z" == commit* ]] && ((cno+=1)) 14 | done <<< "$($git log 2> /dev/null)" 15 | 16 | $git rev-list --left-right --count origin/main..."$gbranch" >/dev/null 2>&1 17 | if [ "$?" == 0 ];then 18 | rev=`$git rev-list --left-right --count origin/main..."$gbranch"`; 19 | beh=$(cut -f1 <<< $rev ) 20 | ahe=$(cut -f2 <<< $rev ) 21 | 22 | echo -e "$($git diff --cached --name-only | wc -l)"\ 23 | "$($git diff --stat origin/main.. | wc -l)"\ 24 | "$($git diff --name-status | wc -l)"\ 25 | "$($git ls-files --others --exclude-standard | wc -l)"\ 26 | "$gbranch"\ 27 | "${cno}"\ 28 | "$beh"\ 29 | "$ahe" 30 | else 31 | beh="-1" 32 | ahe="-1" 33 | echo -e "$($git diff --cached --name-only | wc -l)"\ 34 | "0"\ 35 | "$($git diff --name-status | wc -l)"\ 36 | "$($git ls-files --others --exclude-standard | wc -l)"\ 37 | "$gbranch"\ 38 | "${cno}"\ 39 | "$beh"\ 40 | "$ahe" 41 | fi 42 | 43 | -------------------------------------------------------------------------------- /lain/.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | sxhkd & 4 | 5 | # wm config 6 | bspc config border_width 1 7 | bspc config window_gap 25 8 | out=0 9 | bspc config top_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out + $(bspc config window_gap))) 10 | # bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out)) 11 | bspc config split_ratio 0.50 12 | 13 | bspc config focus_follows_pointer true 14 | 15 | bspc monitor -d 1 2 3 4 5 16 | 17 | # rules 18 | bspc rule -a Zathura state=tiled 19 | 20 | inactive=$(colorer -g bg) 21 | active=$(colorer -g color1) 22 | bspc config normal_border_color "$inactive" 23 | bspc config focused_border_color "$inactive" 24 | # bspc config focused_border_color "$inactive" 25 | bspc config presel_feedback_color "$inactive" 26 | 27 | # startup 28 | ~/.fehbg & 29 | # hsetroot -solid $(getxres background) 30 | ~/.config/polybar/launch.sh & 31 | picom & 32 | mpDris2 & 33 | pulseeffects --gapplication-service & 34 | dunst & 35 | # pgrep xflux || xflux -l 43.36 -g 1.26 & 36 | udiskie & 37 | pkill 2bspwm ; 2bspwm & 38 | # pkill flashfocus ; flashfocus & 39 | -------------------------------------------------------------------------------- /lain/.config/colorer/README.md: -------------------------------------------------------------------------------- 1 | # Example files for [colorer](https://github.com/kiddae/colorer) 2 | 3 | This includes colorschemes, templates for various config files and commands for colorer. 4 | 5 | The repo is organized as the `~/.config/colorer/` folder should be. 6 | -------------------------------------------------------------------------------- /lain/.config/colorer/commands: -------------------------------------------------------------------------------- 1 | echo "Applying changes" 2 | sed -E "s/colorscheme .+/colorscheme {vim}/g" ~/.config/nvim/global.vim -i 3 | sed -E "s/'colorscheme': '.+',$/'colorscheme': '{lightline}',/g" ~/.config/nvim/plug-config/lightline.vim -i 4 | echo -ne $(cat ~/.config/colorer/out/sequences) | tee /dev/pts/[0-9]* 5 | cp {wp} /usr/share/sddm/themes/sugar-candy/Backgrounds/Wall.png 6 | cp ~/.config/colorer/out/lightdm-mini-greeter.conf /etc/lightdm/lightdm-mini-greeter.conf 7 | cp ~/.config/colorer/out/dunstrc ~/.config/dunst/dunstrc 8 | cp ~/.config/colorer/out/kitty ~/.config/kitty/colors 9 | cp ~/.config/colorer/out/userChrome.css ~/.mozilla/firefox/5rg3vfkm.default-release/chrome/userChrome.css 10 | cp ~/.config/colorer/out/zathurarc ~/.config/zathura/zathurarc 11 | echo "Reloading everything" 12 | xrdb -merge ~/.config/colorer/out/Xresources 13 | # pkill -USR1 polybar 14 | killall dunst && dunst & 15 | feh --bg-fill {wp} 16 | bspc wm -r 17 | # echo "Generating GTK theme..." 18 | # oomox-cli /opt/oomox/scripted_colors/xresources/xresources-reverse -t ~/.local/share/themes/ -m all -d true & 19 | -------------------------------------------------------------------------------- /lain/.config/colorer/templates/Xresources: -------------------------------------------------------------------------------- 1 | *background: {bg} 2 | *foreground: {fg} 3 | ! Black + DarkGrey 4 | *color0: {color0} 5 | *color8: {color8} 6 | ! DarkRed + Red 7 | *color1: {color1} 8 | *color9: {color9} 9 | ! DarkGreen + Green 10 | *color2: {color2} 11 | *color10: {color10} 12 | ! DarkYellow + Yellow 13 | *color3: {color3} 14 | *color11: {color11} 15 | ! DarkBlue + Blue 16 | *color4: {color4} 17 | *color12: {color12} 18 | ! DarkMagenta + Magenta 19 | *color5: {color5} 20 | *color13: {color13} 21 | ! DarkCyan + Cyan 22 | *color6: {color6} 23 | *color14: {color14} 24 | ! LightGrey + White 25 | *color7: {color7} 26 | *color15: {color15} 27 | -------------------------------------------------------------------------------- /lain/.config/colorer/templates/alacritty: -------------------------------------------------------------------------------- 1 | colors: 2 | # Default colors 3 | primary: 4 | background: '{bg}' 5 | foreground: '{fg}' 6 | 7 | # Normal colors 8 | normal: 9 | # NOTE: Use '#131613' for the `black` color if you'd like to see 10 | # black text on the background. 11 | black: '{color0}' 12 | red: '{color1}' 13 | green: '{color2}' 14 | yellow: '{color3}' 15 | blue: '{color4}' 16 | magenta: '{color5}' 17 | cyan: '{color6}' 18 | white: '{color7}' 19 | 20 | # Bright colors 21 | bright: 22 | black: '{color8}' 23 | red: '{color9}' 24 | green: '{color10}' 25 | yellow: '{color11}' 26 | blue: '{color12}' 27 | magenta: '{color13}' 28 | cyan: '{color14}' 29 | white: '{color15}' 30 | -------------------------------------------------------------------------------- /lain/.config/colorer/templates/kitty: -------------------------------------------------------------------------------- 1 | foreground {fg} 2 | background {bg} 3 | color0 {color0} 4 | color1 {color1} 5 | color2 {color2} 6 | color3 {color3} 7 | color4 {color4} 8 | color5 {color5} 9 | color6 {color6} 10 | color7 {color7} 11 | color8 {color8} 12 | color9 {color9} 13 | color10 {color10} 14 | color11 {color11} 15 | color12 {color12} 16 | color13 {color13} 17 | color14 {color14} 18 | color15 {color15} 19 | -------------------------------------------------------------------------------- /lain/.config/colorer/templates/polybar: -------------------------------------------------------------------------------- 1 | [colors] 2 | background = {bg} 3 | foreground = {fg} 4 | color0 = {color0} 5 | color1 = {color1} 6 | color2 = {color2} 7 | color3 = {color3} 8 | color4 = {color4} 9 | color5 = {color5} 10 | color6 = {color6} 11 | color7 = {color7} 12 | color8 = {color8} 13 | color9 = {color9} 14 | color10 = {color10} 15 | color11 = {color11} 16 | color12 = {color12} 17 | color13 = {color13} 18 | color14 = {color14} 19 | color15 = {color15} 20 | -------------------------------------------------------------------------------- /lain/.config/colorer/templates/sequences: -------------------------------------------------------------------------------- 1 | \033]4;0;{color0}\033\\\033]4;1;{color1}\033\\\033]4;2;{color2}\033\\\033]4;3;{color3}\033\\\033]4;4;{color4}\033\\\033]4;5;{color5}\033\\\033]4;6;{color6}\033\\\033]4;7;{color7}\033\\\033]4;8;{color8}\033\\\033]4;9;{color9}\033\\\033]4;10;{color10}\033\\\033]4;11;{color11}\033\\\033]4;12;{color12}\033\\\033]4;13;{color13}\033\\\033]4;14;{color14}\033\\\033]4;15;{color15}\033\\\033]10;{fg}\033\\\033]11;{bg}\033\\ 2 | -------------------------------------------------------------------------------- /lain/.config/colorer/templates/var.css: -------------------------------------------------------------------------------- 1 | /* CSS variables 2 | Generated by 'colorer' */ 3 | :root {{ 4 | --wallpaper: url("{wp}"); 5 | 6 | /* Special */ 7 | --background: {bg}; 8 | --foreground: {fg}; 9 | --cursor: {fg}; 10 | 11 | /* Colors */ 12 | --color0: {color0}; 13 | --color1: {color1}; 14 | --color2: {color2}; 15 | --color3: {color3}; 16 | --color4: {color4}; 17 | --color5: {color5}; 18 | --color6: {color6}; 19 | --color7: {color7}; 20 | --color8: {color8}; 21 | --color9: {color9}; 22 | --color10: {color10}; 23 | --color11: {color11}; 24 | --color12: {color12}; 25 | --color13: {color13}; 26 | --color14: {color14}; 27 | --color15: {color15}; 28 | }} 29 | -------------------------------------------------------------------------------- /lain/.config/colorer/templates/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 11" 4 | 5 | set completion-bg "{bg}" 6 | set completion-fg "{fg}" 7 | set completion-group-bg "{bg}" 8 | set completion-group-fg "{color2}" 9 | set completion-highlight-bg "{fg}" 10 | set completion-highlight-fg "{bg}" 11 | 12 | set recolor-lightcolor "{bg}" 13 | set recolor-darkcolor "{fg}" 14 | set default-bg "{bg}" 15 | 16 | set inputbar-bg "{bg}" 17 | set inputbar-fg "{fg}" 18 | set notification-bg "{bg}" 19 | set notification-fg "{fg}" 20 | set notification-error-bg "{color1}" 21 | set notification-error-fg "{fg}" 22 | set notification-warning-bg "{color1}" 23 | set notification-warning-fg "{fg}" 24 | set statusbar-bg "{bg}" 25 | set statusbar-fg "{fg}" 26 | set index-bg "{bg}" 27 | set index-fg "{fg}" 28 | set index-active-bg "{fg}" 29 | set index-active-fg "{bg}" 30 | set render-loading-bg "{bg}" 31 | set render-loading-fg "{fg}" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /lain/.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | polybar -r base & 10 | echo "Polybar launched..." 11 | -------------------------------------------------------------------------------- /lain/.config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration { 2 | font: "SF Pro Text 11"; 3 | } 4 | -------------------------------------------------------------------------------- /lain/.config/sxhkd/inner_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gaps=$(bspc config -d focused window_gap) 3 | [[ $(( $gaps$1 )) -ge 0 ]] && bspc config -d focused window_gap $(( $gaps$1 )) 4 | -------------------------------------------------------------------------------- /lain/.config/sxhkd/move: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | state=$(bspc query -T -n | jq '.client.state' | sed 's/\"//g') 3 | interval=40 4 | 5 | if [[ "$state" == "tiled" ]]; then 6 | echo $state 7 | case $1 in 8 | west) bspc node -s west;; 9 | south) bspc node -s south;; 10 | north) bspc node -s north;; 11 | east) bspc node -s east 12 | esac 13 | fi 14 | 15 | if [[ "$state" == "floating" ]]; then 16 | case $1 in 17 | west) bspc node -v $(( 0 - $interval )) 0;; 18 | south) bspc node -v 0 $interval;; 19 | north) bspc node -v 0 $(( 0 - $interval ));; 20 | east) bspc node -v $interval 0 21 | esac 22 | fi 23 | -------------------------------------------------------------------------------- /lain/.config/sxhkd/outer_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | left=$(bspc config ${@:2} left_padding) 3 | right=$(bspc config ${@:2} right_padding) 4 | top=$(bspc config ${@:2} top_padding) 5 | bottom=$(bspc config ${@:2} bottom_padding) 6 | 7 | if [[ ${1:0:1} = '=' ]] 8 | then 9 | n_left=${1:1} 10 | n_right=${1:1} 11 | n_top=${1:1} 12 | n_bottom=${1:1} 13 | else 14 | [[ $(($left$1)) -ge 0 ]] && n_left=$(($left$1)) 15 | [[ $(($right$1)) -ge 0 ]] && n_right=$(($right$1)) 16 | [[ $(($top$1)) -ge 0 ]] && n_top=$(($top$1)) 17 | [[ $(($bottom$1)) -ge 0 ]] && n_bottom=$(($bottom$1)) 18 | fi 19 | 20 | 21 | bspc config ${@:2} left_padding $n_left && echo $n_left 22 | bspc config ${@:2} right_padding $n_right && echo $n_right 23 | bspc config ${@:2} top_padding $n_top && echo $n_top 24 | bspc config ${@:2} bottom_padding $n_bottom && echo $n_bottom 25 | -------------------------------------------------------------------------------- /lain/.config/sxhkd/resize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | size=${2:-'10'} 4 | dir=$1 5 | 6 | # Find current window mode 7 | is_tiled() { 8 | bspc query -T -n | grep -q '"state":"tiled"' 9 | } 10 | # If the window is floating, move it 11 | if ! is_tiled; then 12 | #only parse input if window is floating,tiled windows accept input as is 13 | case "$dir" in 14 | west) switch="-w" 15 | sign="-" 16 | ;; 17 | east) switch="-w" 18 | sign="+" 19 | ;; 20 | north) switch="-h" 21 | sign="-" 22 | ;; 23 | south) switch="-h" 24 | sign="+" 25 | ;; 26 | esac 27 | xdo resize ${switch} ${sign}${size} 28 | 29 | # Otherwise, window is tiled: switch with window in given direction 30 | else 31 | case "$dir" in 32 | west) bspc node @west -r -$size || bspc node @east -r -${size} 33 | ;; 34 | east) bspc node @west -r +$size || bspc node @east -r +${size} 35 | ;; 36 | north) bspc node @south -r -$size || bspc node @north -r -${size} 37 | ;; 38 | south) bspc node @south -r +$size || bspc node @north -r +${size} 39 | ;; 40 | esac 41 | fi 42 | -------------------------------------------------------------------------------- /lain/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 11" 4 | 5 | set completion-bg "#1c1c1c" 6 | set completion-fg "#dfdfaf" 7 | set completion-group-bg "#1c1c1c" 8 | set completion-group-fg "#87875f" 9 | set completion-highlight-bg "#dfdfaf" 10 | set completion-highlight-fg "#1c1c1c" 11 | 12 | set recolor-lightcolor "#1c1c1c" 13 | set recolor-darkcolor "#dfdfaf" 14 | set default-bg "#1c1c1c" 15 | 16 | set inputbar-bg "#1c1c1c" 17 | set inputbar-fg "#dfdfaf" 18 | set notification-bg "#1c1c1c" 19 | set notification-fg "#dfdfaf" 20 | set notification-error-bg "#af5f5f" 21 | set notification-error-fg "#dfdfaf" 22 | set notification-warning-bg "#af5f5f" 23 | set notification-warning-fg "#dfdfaf" 24 | set statusbar-bg "#1c1c1c" 25 | set statusbar-fg "#dfdfaf" 26 | set index-bg "#1c1c1c" 27 | set index-fg "#dfdfaf" 28 | set index-active-bg "#dfdfaf" 29 | set index-active-fg "#1c1c1c" 30 | set render-loading-bg "#1c1c1c" 31 | set render-loading-fg "#dfdfaf" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /lain/.inputrc: -------------------------------------------------------------------------------- 1 | # When pressing up or down arrow, show only history that 2 | # matches what was already written 3 | "\e[A":history-search-backward 4 | "\e[B":history-search-forward 5 | 6 | "\C-?": backward-kill-word 7 | "\e[3;5~": kill-word 8 | 9 | # Disable bell 10 | set bell-style none 11 | 12 | # set show-mode-in-prompt on 13 | -------------------------------------------------------------------------------- /lain/.profile: -------------------------------------------------------------------------------- 1 | if [ -n "$BASH_VERSION" ]; then 2 | # include .bashrc if it exists 3 | if [ -f "$HOME/.bashrc" ]; then 4 | . "$HOME/.bashrc" 5 | fi 6 | fi 7 | 8 | # set PATH so it includes user's private bin if it exists 9 | if [ -d "$HOME/.local/bin" ] ; then 10 | PATH="$HOME/.local/bin:$PATH" 11 | fi 12 | 13 | # constants 14 | export TERMINAL="alacritty" 15 | export EDITOR="nvim" 16 | export BROWSER="firefox" 17 | export SCRIPT_FOLDER="$HOME/.bin" 18 | export WALLPAPER_FOLDER="$HOME/Pictures/Wallpapers/" 19 | 20 | # add scripts to path 21 | PATH="$SCRIPT_FOLDER:$PATH" 22 | 23 | export QT_QPA_PLATFORMTHEME=qt5ct 24 | -------------------------------------------------------------------------------- /lain/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -f ~/.xprofile ] && . ~/.xprofile 3 | exec bspwm 4 | -------------------------------------------------------------------------------- /lain/.xprofile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xrdb -merge ~/.cache/colorer/Xresources 3 | # lock-screen-timer & 4 | # timemanager & 5 | # setxkbmap fr 6 | xsetroot -cursor_name left_ptr 7 | xset +fp /usr/share/fonts/misc/ 8 | xset fp rehash 9 | xset b off 10 | -------------------------------------------------------------------------------- /lain/README.md: -------------------------------------------------------------------------------- 1 | # `lain` 2 | > No matter where you go, everybody's connected. 3 | 4 | # Screenshots 5 | 6 | ![screenshot](screenshot.png) 7 | 8 | # Some info 9 | 10 | + Colorscheme: [`alduin`](https://github.com/kiddae/colorer-colorschemes/blob/main/alduin) 11 | + Wallpaper: [lain.jpg](https://raw.githubusercontent.com/kiddae/wallpapers/main/anime/lain.jpg) 12 | + Fonts: [`Cozette`](https://github.com/slavfox/Cozette) (terminal), [`cherry`](https://github.com/turquoise-hexagon/cherry) (bar) 13 | + Shown in the screenshot: `bspwm`, `polybar`, `2bspwm` for the double borders, `firefox` with NightTab, `picom`, `alacritty`, `bunnyfetch`, `cl`, `ranger` 14 | -------------------------------------------------------------------------------- /lain/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/lain/screenshot.png -------------------------------------------------------------------------------- /lazuli/.Xresources: -------------------------------------------------------------------------------- 1 | #include ".config/colorer/out/Xresources" 2 | Xft.dpi: 96 3 | -------------------------------------------------------------------------------- /lazuli/.bin/bunnyfetch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Tiny colored fetch script 3 | # Requires Typicons Font to display the icons 4 | # elenapan @ github 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | i=$'\e[3m' 16 | 17 | # Items 18 | sep= 19 | s=$d$f0$sep$t 20 | 21 | w= 22 | wifiname="$(iwgetid | cut -d \" -f2)" 23 | 24 | h= 25 | wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" 26 | 27 | k= 28 | kernel="$(uname -r | cut -d '-' -f1)" 29 | 30 | r= 31 | resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)" 32 | 33 | sh= 34 | shell=$(basename $SHELL) 35 | 36 | # (\ /) 37 | # ( · ·) 38 | # c(")(") 39 | 40 | # (\ /) 41 | # ( . .) 42 | # c(")(") 43 | 44 | tput clear 45 | cat << EOF 46 | 47 | $d$f1$h $t$i$wmname$t 48 | (\ /) $f3$k $t$i$kernel$t 49 | ( $d. .$t) $f2$sh $t$i$shell$t 50 | c($f1"$t)($f1"$t) $f5$r $t$i$resolution$t 51 | $f4$w $t$i$wifiname$t 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /lazuli/.bin/cl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Nice and clean colorscheme script 4 | 5 | f=3 b=4 6 | for j in f b; do 7 | for i in {0..7}; do 8 | printf -v $j$i %b "\e[${!j}${i}m" 9 | done 10 | done 11 | d=$'\e[1m' 12 | t=$'\e[0m' 13 | v=$'\e[7m' 14 | 15 | cat << EOF 16 | 17 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 18 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 19 | $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t 20 | 21 | EOF 22 | -------------------------------------------------------------------------------- /lazuli/.bin/getxres: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xrdb -query | grep $1 | head -n1 | cut -d':' -f2 | sed 's/ //g' 3 | -------------------------------------------------------------------------------- /lazuli/.bin/launcher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # theme=~/.cache/colorer/rofi.rasi 3 | # theme=~/.config/rofi/san.rasi 4 | # rofi -show run -theme $theme 5 | prompt 'Launcher' --run 6 | -------------------------------------------------------------------------------- /lazuli/.bin/playerctl_controls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | play_icon=$2 3 | pause_icon=$3 4 | prev_icon=$4 5 | next_icon=$5 6 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && color=$(polybar --dump=foreground base 2>/dev/null) || color=$(polybar --dump=line-color base 2>/dev/null) 7 | player=$1 8 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && status=$pause_icon || status=$play_icon 9 | string=$(echo %{A1:playerctl previous -p $1:}$prev_icon%{A}%{A1:playerctl play-pause -p $1:} $status%{A}%{A1:playerctl next -p $1:} $next_icon%{A}%{-o}) 10 | 11 | echo $string 12 | -------------------------------------------------------------------------------- /lazuli/.bin/powermenu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | choices="Poweroff\nQuit\nReboot\nLock\nSuspend" 3 | # chosen=$(echo -e $choices | rofi -dmenu -i -p "Power Menu" -theme ~/.cache/colorer/rofi.rasi) 4 | fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 5 | bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 6 | chosen=$(echo -e $choices | prompt "Powermenu") 7 | echo "$chosen" 8 | 9 | case "$chosen" in 10 | Lock) lock ;; 11 | Suspend) systemctl suspend ;; 12 | Quit) bspc quit ;; 13 | Poweroff) poweroff ;; 14 | Reboot) reboot ;; 15 | esac 16 | -------------------------------------------------------------------------------- /lazuli/.bin/prompt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Use as dmenu (by piping values separated by \n to it) 4 | # $1 is the text shown in the prompt (defaults as 'dmenu') 5 | # if $2 is '--run', runs dmenu_run instead 6 | 7 | fg=$(colorer -g color7) 8 | bg=$(colorer -g bg) 9 | [[ $1 == '' ]] && prompt='dmenu' || prompt=$1 10 | args="-fn mono-11 -h 40 -nb ${bg} -nf ${fg} -sb ${fg} -sf ${bg} -p ${prompt} -i -b" 11 | [[ $2 == '--run' ]] && dmenu_run $args || dmenu $args 12 | # [[ $2 == '--run' ]] && rofi -show run -theme ~/.config/colorer/out/rofi.rasi || rofi -dmenu -p "$1" -theme ~/.config/colorer/out/rofi.rasi -i 13 | -------------------------------------------------------------------------------- /lazuli/.bin/screen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # file=/tmp/$(date +%s).png 4 | # default_dir=~/Pictures/Screenshots 5 | # 6 | # sleep 0.6 7 | # maim -u $1 $file 8 | # 9 | # # dir=$(find ~ -type d 2>/dev/null | rofi -dmenu -i -p "Choose a directory" -theme ~/.cache/colorer/rofi.rasi) 10 | # fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 11 | # bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 12 | # #dir=$(find ~ -type d 2>/dev/null | prompt "Where?") 13 | # dir=$default_dir 14 | # 15 | # if [[ -n $dir ]]; then 16 | # mv $file $dir 17 | # else 18 | # mv $file $default_dir 19 | # fi 20 | 21 | file=~/Pictures/Screenshots/$(date +%s).png 22 | maim -u $1 $file 23 | 24 | xclip -selection clipboard -target image/png -i $file 25 | 26 | notify-send "Took a screenshot" "saved to ${file} and copied to clipboard." -i $file 27 | -------------------------------------------------------------------------------- /lazuli/.bin/toggle_bar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xdo show -N Polybar; pkill -f polybar-autohide || polybar-autohide &>/dev/null 3 | -------------------------------------------------------------------------------- /lazuli/.cal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git=`which git` 4 | while read -ra Z; do 5 | if [[ "${Z[@]}" == \*\ * ]]; then 6 | gbranch="${Z[1]}" 7 | break 8 | fi 9 | done <<< "$($git branch 2> /dev/null)" 10 | 11 | ((cno=0)) 12 | while read -r Z; do 13 | [[ "$Z" == commit* ]] && ((cno+=1)) 14 | done <<< "$($git log 2> /dev/null)" 15 | 16 | $git rev-list --left-right --count origin/main..."$gbranch" >/dev/null 2>&1 17 | if [ "$?" == 0 ];then 18 | rev=`$git rev-list --left-right --count origin/main..."$gbranch"`; 19 | beh=$(cut -f1 <<< $rev ) 20 | ahe=$(cut -f2 <<< $rev ) 21 | 22 | echo -e "$($git diff --cached --name-only | wc -l)"\ 23 | "$($git diff --stat origin/main.. | wc -l)"\ 24 | "$($git diff --name-status | wc -l)"\ 25 | "$($git ls-files --others --exclude-standard | wc -l)"\ 26 | "$gbranch"\ 27 | "${cno}"\ 28 | "$beh"\ 29 | "$ahe" 30 | else 31 | beh="-1" 32 | ahe="-1" 33 | echo -e "$($git diff --cached --name-only | wc -l)"\ 34 | "0"\ 35 | "$($git diff --name-status | wc -l)"\ 36 | "$($git ls-files --others --exclude-standard | wc -l)"\ 37 | "$gbranch"\ 38 | "${cno}"\ 39 | "$beh"\ 40 | "$ahe" 41 | fi 42 | 43 | -------------------------------------------------------------------------------- /lazuli/.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | sxhkd & 4 | 5 | # wm config 6 | bspc config border_width 1 7 | bspc config window_gap 25 8 | out=0 9 | # bspc config top_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out + $(bspc config window_gap))) 10 | bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out)) 11 | bspc config split_ratio 0.50 12 | 13 | bspc config focus_follows_pointer true 14 | 15 | bspc monitor -d 1 2 3 4 5 16 | 17 | # rules 18 | bspc rule -a Zathura state=tiled 19 | 20 | inactive=$(colorer -g bg) 21 | active=$(colorer -g color8) 22 | bspc config normal_border_color "$inactive" 23 | bspc config focused_border_color "$active" 24 | # bspc config focused_border_color "$inactive" 25 | bspc config presel_feedback_color "$inactive" 26 | 27 | # startup 28 | ~/.fehbg & 29 | # hsetroot -solid $(getxres background) 30 | ~/.config/polybar/launch.sh & 31 | picom & 32 | mpDris2 & 33 | pulseeffects --gapplication-service & 34 | dunst & 35 | # pgrep xflux || xflux -l 43.36 -g 1.26 & 36 | udiskie & 37 | # pkill 2bspwm ; 2bspwm & 38 | pkill flashfocus ; flashfocus & 39 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/README.md: -------------------------------------------------------------------------------- 1 | # Example files for [colorer](https://github.com/kiddae/colorer) 2 | 3 | This includes colorschemes, templates for various config files and commands for colorer. 4 | 5 | The repo is organized as the `~/.config/colorer/` folder should be. 6 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/commands: -------------------------------------------------------------------------------- 1 | echo "Applying changes" 2 | sed -E "s/colorscheme [a-zA-Z]*-?_?[a-zA-Z]*/colorscheme {vim}/g" ~/.config/nvim/global.vim -i 3 | sed -E "s/'colorscheme': '[a-zA-Z]*-?_?[a-zA-Z]*',$/'colorscheme': '{lightline}',/g" ~/.config/nvim/plug-config/lightline.vim -i 4 | echo -ne $(cat ~/.config/colorer/out/sequences) | tee /dev/pts/[0-9]* 5 | cp {wp} /usr/share/sddm/themes/sugar-candy/Backgrounds/Wall.png 6 | cp ~/.config/colorer/out/lightdm-mini-greeter.conf /etc/lightdm/lightdm-mini-greeter.conf 7 | cp ~/.config/colorer/out/dunstrc ~/.config/dunst/dunstrc 8 | cp ~/.config/colorer/out/kitty ~/.config/kitty/colors 9 | cp ~/.config/colorer/out/userChrome.css ~/.mozilla/firefox/5rg3vfkm.default-release/chrome/userChrome.css 10 | cp ~/.config/colorer/out/zathurarc ~/.config/zathura/zathurarc 11 | echo "Reloading everything" 12 | xrdb -merge ~/.config/colorer/out/Xresources 13 | # pkill -USR1 polybar 14 | killall dunst && dunst & 15 | feh --bg-fill {wp} 16 | bspc wm -r 17 | # echo "Generating GTK theme..." 18 | # oomox-cli /opt/oomox/scripted_colors/xresources/xresources-reverse -t ~/.local/share/themes/ -m all -d true & 19 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/templates/Xresources: -------------------------------------------------------------------------------- 1 | *background: {bg} 2 | *foreground: {fg} 3 | ! Black + DarkGrey 4 | *color0: {color0} 5 | *color8: {color8} 6 | ! DarkRed + Red 7 | *color1: {color1} 8 | *color9: {color9} 9 | ! DarkGreen + Green 10 | *color2: {color2} 11 | *color10: {color10} 12 | ! DarkYellow + Yellow 13 | *color3: {color3} 14 | *color11: {color11} 15 | ! DarkBlue + Blue 16 | *color4: {color4} 17 | *color12: {color12} 18 | ! DarkMagenta + Magenta 19 | *color5: {color5} 20 | *color13: {color13} 21 | ! DarkCyan + Cyan 22 | *color6: {color6} 23 | *color14: {color14} 24 | ! LightGrey + White 25 | *color7: {color7} 26 | *color15: {color15} 27 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/templates/alacritty: -------------------------------------------------------------------------------- 1 | colors: 2 | # Default colors 3 | primary: 4 | background: '{bg}' 5 | foreground: '{fg}' 6 | 7 | # Normal colors 8 | normal: 9 | # NOTE: Use '#131613' for the `black` color if you'd like to see 10 | # black text on the background. 11 | black: '{color0}' 12 | red: '{color1}' 13 | green: '{color2}' 14 | yellow: '{color3}' 15 | blue: '{color4}' 16 | magenta: '{color5}' 17 | cyan: '{color6}' 18 | white: '{color7}' 19 | 20 | # Bright colors 21 | bright: 22 | black: '{color8}' 23 | red: '{color9}' 24 | green: '{color10}' 25 | yellow: '{color11}' 26 | blue: '{color12}' 27 | magenta: '{color13}' 28 | cyan: '{color14}' 29 | white: '{color15}' 30 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/templates/kitty: -------------------------------------------------------------------------------- 1 | foreground {fg} 2 | background {bg} 3 | color0 {color0} 4 | color1 {color1} 5 | color2 {color2} 6 | color3 {color3} 7 | color4 {color4} 8 | color5 {color5} 9 | color6 {color6} 10 | color7 {color7} 11 | color8 {color8} 12 | color9 {color9} 13 | color10 {color10} 14 | color11 {color11} 15 | color12 {color12} 16 | color13 {color13} 17 | color14 {color14} 18 | color15 {color15} 19 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/templates/polybar: -------------------------------------------------------------------------------- 1 | [colors] 2 | background = {bg} 3 | foreground = {fg} 4 | color0 = {color0} 5 | color1 = {color1} 6 | color2 = {color2} 7 | color3 = {color3} 8 | color4 = {color4} 9 | color5 = {color5} 10 | color6 = {color6} 11 | color7 = {color7} 12 | color8 = {color8} 13 | color9 = {color9} 14 | color10 = {color10} 15 | color11 = {color11} 16 | color12 = {color12} 17 | color13 = {color13} 18 | color14 = {color14} 19 | color15 = {color15} 20 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/templates/sequences: -------------------------------------------------------------------------------- 1 | \033]4;0;{color0}\033\\\033]4;1;{color1}\033\\\033]4;2;{color2}\033\\\033]4;3;{color3}\033\\\033]4;4;{color4}\033\\\033]4;5;{color5}\033\\\033]4;6;{color6}\033\\\033]4;7;{color7}\033\\\033]4;8;{color8}\033\\\033]4;9;{color9}\033\\\033]4;10;{color10}\033\\\033]4;11;{color11}\033\\\033]4;12;{color12}\033\\\033]4;13;{color13}\033\\\033]4;14;{color14}\033\\\033]4;15;{color15}\033\\\033]10;{fg}\033\\\033]11;{bg}\033\\ 2 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/templates/var.css: -------------------------------------------------------------------------------- 1 | /* CSS variables 2 | Generated by 'colorer' */ 3 | :root {{ 4 | --wallpaper: url("{wp}"); 5 | 6 | /* Special */ 7 | --background: {bg}; 8 | --foreground: {fg}; 9 | --cursor: {fg}; 10 | 11 | /* Colors */ 12 | --color0: {color0}; 13 | --color1: {color1}; 14 | --color2: {color2}; 15 | --color3: {color3}; 16 | --color4: {color4}; 17 | --color5: {color5}; 18 | --color6: {color6}; 19 | --color7: {color7}; 20 | --color8: {color8}; 21 | --color9: {color9}; 22 | --color10: {color10}; 23 | --color11: {color11}; 24 | --color12: {color12}; 25 | --color13: {color13}; 26 | --color14: {color14}; 27 | --color15: {color15}; 28 | }} 29 | -------------------------------------------------------------------------------- /lazuli/.config/colorer/templates/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 11" 4 | 5 | set completion-bg "{bg}" 6 | set completion-fg "{fg}" 7 | set completion-group-bg "{bg}" 8 | set completion-group-fg "{color2}" 9 | set completion-highlight-bg "{fg}" 10 | set completion-highlight-fg "{bg}" 11 | 12 | set recolor-lightcolor "{bg}" 13 | set recolor-darkcolor "{fg}" 14 | set default-bg "{bg}" 15 | 16 | set inputbar-bg "{bg}" 17 | set inputbar-fg "{fg}" 18 | set notification-bg "{bg}" 19 | set notification-fg "{fg}" 20 | set notification-error-bg "{color1}" 21 | set notification-error-fg "{fg}" 22 | set notification-warning-bg "{color1}" 23 | set notification-warning-fg "{fg}" 24 | set statusbar-bg "{bg}" 25 | set statusbar-fg "{fg}" 26 | set index-bg "{bg}" 27 | set index-fg "{fg}" 28 | set index-active-bg "{fg}" 29 | set index-active-fg "{bg}" 30 | set render-loading-bg "{bg}" 31 | set render-loading-fg "{fg}" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /lazuli/.config/kitty/colors: -------------------------------------------------------------------------------- 1 | foreground #383A42 2 | background #FAFAFA 3 | color0 #FAFAFA 4 | color1 #E45649 5 | color2 #50A14F 6 | color3 #C18401 7 | color4 #0184BC 8 | color5 #A626A4 9 | color6 #0997B3 10 | color7 #383A42 11 | color8 #797d8d 12 | color9 #E45649 13 | color10 #50A14F 14 | color11 #C18401 15 | color12 #0184BC 16 | color13 #A626A4 17 | color14 #0997B3 18 | color15 #797d8d 19 | -------------------------------------------------------------------------------- /lazuli/.config/kitty/kitty.conf: -------------------------------------------------------------------------------- 1 | include colors 2 | font_family monospace 3 | italic_font auto 4 | bold_font auto 5 | bold_italic_font auto 6 | font_size 12 7 | 8 | cursor_shape beam 9 | 10 | window_padding_width 45 11 | initial_window_width 600 12 | initial_window_height 440 13 | remember_window_size no 14 | -------------------------------------------------------------------------------- /lazuli/.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | polybar -r base & 10 | echo "Polybar launched..." 11 | -------------------------------------------------------------------------------- /lazuli/.config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration { 2 | font: "SF Pro Text 11"; 3 | } 4 | -------------------------------------------------------------------------------- /lazuli/.config/sxhkd/inner_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gaps=$(bspc config -d focused window_gap) 3 | [[ $(( $gaps$1 )) -ge 0 ]] && bspc config -d focused window_gap $(( $gaps$1 )) 4 | -------------------------------------------------------------------------------- /lazuli/.config/sxhkd/move: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | state=$(bspc query -T -n | jq '.client.state' | sed 's/\"//g') 3 | interval=40 4 | 5 | if [[ "$state" == "tiled" ]]; then 6 | echo $state 7 | case $1 in 8 | west) bspc node -s west;; 9 | south) bspc node -s south;; 10 | north) bspc node -s north;; 11 | east) bspc node -s east 12 | esac 13 | fi 14 | 15 | if [[ "$state" == "floating" ]]; then 16 | case $1 in 17 | west) bspc node -v $(( 0 - $interval )) 0;; 18 | south) bspc node -v 0 $interval;; 19 | north) bspc node -v 0 $(( 0 - $interval ));; 20 | east) bspc node -v $interval 0 21 | esac 22 | fi 23 | -------------------------------------------------------------------------------- /lazuli/.config/sxhkd/outer_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | left=$(bspc config ${@:2} left_padding) 3 | right=$(bspc config ${@:2} right_padding) 4 | top=$(bspc config ${@:2} top_padding) 5 | bottom=$(bspc config ${@:2} bottom_padding) 6 | 7 | if [[ ${1:0:1} = '=' ]] 8 | then 9 | n_left=${1:1} 10 | n_right=${1:1} 11 | n_top=${1:1} 12 | n_bottom=${1:1} 13 | else 14 | [[ $(($left$1)) -ge 0 ]] && n_left=$(($left$1)) 15 | [[ $(($right$1)) -ge 0 ]] && n_right=$(($right$1)) 16 | [[ $(($top$1)) -ge 0 ]] && n_top=$(($top$1)) 17 | [[ $(($bottom$1)) -ge 0 ]] && n_bottom=$(($bottom$1)) 18 | fi 19 | 20 | 21 | bspc config ${@:2} left_padding $n_left && echo $n_left 22 | bspc config ${@:2} right_padding $n_right && echo $n_right 23 | bspc config ${@:2} top_padding $n_top && echo $n_top 24 | bspc config ${@:2} bottom_padding $n_bottom && echo $n_bottom 25 | -------------------------------------------------------------------------------- /lazuli/.config/sxhkd/resize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | size=${2:-'10'} 4 | dir=$1 5 | 6 | # Find current window mode 7 | is_tiled() { 8 | bspc query -T -n | grep -q '"state":"tiled"' 9 | } 10 | # If the window is floating, move it 11 | if ! is_tiled; then 12 | #only parse input if window is floating,tiled windows accept input as is 13 | case "$dir" in 14 | west) switch="-w" 15 | sign="-" 16 | ;; 17 | east) switch="-w" 18 | sign="+" 19 | ;; 20 | north) switch="-h" 21 | sign="-" 22 | ;; 23 | south) switch="-h" 24 | sign="+" 25 | ;; 26 | esac 27 | xdo resize ${switch} ${sign}${size} 28 | 29 | # Otherwise, window is tiled: switch with window in given direction 30 | else 31 | case "$dir" in 32 | west) bspc node @west -r -$size || bspc node @east -r -${size} 33 | ;; 34 | east) bspc node @west -r +$size || bspc node @east -r +${size} 35 | ;; 36 | north) bspc node @south -r -$size || bspc node @north -r -${size} 37 | ;; 38 | south) bspc node @south -r +$size || bspc node @north -r +${size} 39 | ;; 40 | esac 41 | fi 42 | -------------------------------------------------------------------------------- /lazuli/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 11" 4 | 5 | set completion-bg "#FAFAFA" 6 | set completion-fg "#383A42" 7 | set completion-group-bg "#FAFAFA" 8 | set completion-group-fg "#50A14F" 9 | set completion-highlight-bg "#383A42" 10 | set completion-highlight-fg "#FAFAFA" 11 | 12 | set recolor-lightcolor "#FAFAFA" 13 | set recolor-darkcolor "#383A42" 14 | set default-bg "#FAFAFA" 15 | 16 | set inputbar-bg "#FAFAFA" 17 | set inputbar-fg "#383A42" 18 | set notification-bg "#FAFAFA" 19 | set notification-fg "#383A42" 20 | set notification-error-bg "#E45649" 21 | set notification-error-fg "#383A42" 22 | set notification-warning-bg "#E45649" 23 | set notification-warning-fg "#383A42" 24 | set statusbar-bg "#FAFAFA" 25 | set statusbar-fg "#383A42" 26 | set index-bg "#FAFAFA" 27 | set index-fg "#383A42" 28 | set index-active-bg "#383A42" 29 | set index-active-fg "#FAFAFA" 30 | set render-loading-bg "#FAFAFA" 31 | set render-loading-fg "#383A42" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /lazuli/.inputrc: -------------------------------------------------------------------------------- 1 | # When pressing up or down arrow, show only history that 2 | # matches what was already written 3 | "\e[A":history-search-backward 4 | "\e[B":history-search-forward 5 | 6 | "\C-?": backward-kill-word 7 | "\e[3;5~": kill-word 8 | 9 | # Disable bell 10 | set bell-style none 11 | 12 | # set show-mode-in-prompt on 13 | -------------------------------------------------------------------------------- /lazuli/.profile: -------------------------------------------------------------------------------- 1 | if [ -n "$BASH_VERSION" ]; then 2 | # include .bashrc if it exists 3 | if [ -f "$HOME/.bashrc" ]; then 4 | . "$HOME/.bashrc" 5 | fi 6 | fi 7 | 8 | # set PATH so it includes user's private bin if it exists 9 | if [ -d "$HOME/.local/bin" ] ; then 10 | PATH="$HOME/.local/bin:$PATH" 11 | fi 12 | 13 | # constants 14 | export TERMINAL="kitty" 15 | export EDITOR="nvim" 16 | export BROWSER="firefox" 17 | export SCRIPT_FOLDER="$HOME/.bin" 18 | export WALLPAPER_FOLDER="$HOME/Pictures/Wallpapers/" 19 | 20 | # add scripts to path 21 | PATH="$SCRIPT_FOLDER:$PATH" 22 | 23 | export QT_QPA_PLATFORMTHEME=qt5ct 24 | -------------------------------------------------------------------------------- /lazuli/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -f ~/.xprofile ] && . ~/.xprofile 3 | exec bspwm 4 | -------------------------------------------------------------------------------- /lazuli/.xprofile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xrdb -merge ~/.cache/colorer/Xresources 3 | # lock-screen-timer & 4 | # timemanager & 5 | # setxkbmap fr 6 | xsetroot -cursor_name left_ptr 7 | xset +fp /usr/share/fonts/misc/ 8 | xset fp rehash 9 | xset b off 10 | -------------------------------------------------------------------------------- /lazuli/README.md: -------------------------------------------------------------------------------- 1 | # `lazuli` 2 | > A strange paradise... 3 | 4 | # Screenshots 5 | 6 | ![screenshot](screenshot.png) 7 | 8 | # Some info 9 | 10 | + Colorscheme: [`onelight`](https://github.com/kiddae/colorer-colorschemes/blob/main/onelight) 11 | + Wallpaper: [link](https://github.com/kiddae/wallpapers/blob/main/music/4t2qli7sxom61_c.png?raw=true) or alternatively [dark version](https://github.com/kiddae/wallpapers/blob/main/music/4t2qli7sxom61_c_inv.png?raw=true) 12 | + Font: `Recursive Mono Casual` and `Recursive Sans Casual` 13 | + Shown in the screenshot: `bspwm`, `polybar`, `2bspwm` for the double borders, `picom-ibhagwan` (fork with rounded corner support), `kitty`, `bunnyfetch`, `cl`, `zathura`, `firefox` with NightTab 14 | -------------------------------------------------------------------------------- /lazuli/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/lazuli/screenshot.png -------------------------------------------------------------------------------- /quickdiff: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | script_dir=$(dirname $0) 3 | file=$1 4 | theme=$2 5 | diff --color=auto "$script_dir/$theme/$file" ~/"$file" 6 | -------------------------------------------------------------------------------- /sixtyten/.Xresources: -------------------------------------------------------------------------------- 1 | #include ".config/colorer/out/Xresources" 2 | Xft.dpi: 96 3 | -------------------------------------------------------------------------------- /sixtyten/.bin/appsbar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import subprocess 3 | 4 | def get(str): 5 | try: 6 | return subprocess.check_output(str, shell=True).decode('utf-8').replace('\n', '') 7 | except: 8 | return "" 9 | 10 | highlight = get("colorer -g color7") 11 | closed = get("colorer -g color8") 12 | 13 | apps_icons = ['', '', '', '', ''] 14 | apps_names = ['firefox', 'kitty', 'kitty -e ranger', 'discord', 'kitty -e nvim'] 15 | 16 | for i in range(len(apps_icons)): 17 | format = "%{A1:" + apps_names[i] + ":}" + "%{F" + (highlight if get("pgrep '{}'".format(apps_names[i].split(" ")[-1])) != "" else closed) + "}" + apps_icons[i] + "%{F-}%{A} " 18 | print(format, end="") 19 | 20 | -------------------------------------------------------------------------------- /sixtyten/.bin/backlight_status: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | brightness="$(xbacklight -get | cut -d '.' -f1)" 3 | if [[ $brightness -lt 25 ]] 4 | then 5 | icon= 6 | elif [[ $brightness -lt 50 ]] 7 | then 8 | icon= 9 | elif [[ $brightness -lt 75 ]] 10 | then 11 | icon= 12 | else 13 | icon= 14 | fi 15 | echo $icon 16 | -------------------------------------------------------------------------------- /sixtyten/.bin/bunnyfetch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Tiny colored fetch script 3 | # Requires Typicons Font to display the icons 4 | # elenapan @ github 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | i=$'\e[3m' 16 | 17 | # Items 18 | sep= 19 | s=$d$f0$sep$t 20 | 21 | w= 22 | wifiname="$(iwgetid | cut -d \" -f2)" 23 | 24 | h= 25 | wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" 26 | 27 | k= 28 | kernel="$(uname -r | cut -d '-' -f1)" 29 | 30 | r= 31 | resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)" 32 | 33 | sh= 34 | shell=$(basename $SHELL) 35 | 36 | # (\ /) 37 | # ( · ·) 38 | # c(")(") 39 | 40 | # (\ /) 41 | # ( . .) 42 | # c(")(") 43 | 44 | tput clear 45 | cat << EOF 46 | 47 | $d$f1$h $t$i$wmname$t 48 | (\ /) $f3$k $t$i$kernel$t 49 | ( $d. .$t) $f2$sh $t$i$shell$t 50 | c($f1"$t)($f1"$t) $f5$r $t$i$resolution$t 51 | $f4$w $t$i$wifiname$t 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /sixtyten/.bin/chbacklight: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ "$1" = "up" ]] 3 | then 4 | xbacklight -inc $2 5 | elif [[ "$1" = "down" ]] && [[ $(xbacklight -get | cut -d'.' -f1) -gt 10 ]] 6 | then 7 | xbacklight -dec $2 8 | else 9 | echo "No argument/wrong arguments" 10 | exit 1 11 | fi 12 | backlight=$(xbacklight -get | cut -d'.' -f1) 13 | dunstify "Backlight" "Backlight: ${backlight}%" -h int:value:$backlight -h string:x-dunst-stack-tag:backlight-control -t 1000 14 | -------------------------------------------------------------------------------- /sixtyten/.bin/chvolume: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ "$1" = "up" ]] 3 | then 4 | pamixer -i $2 5 | elif [[ "$1" = "down" ]] 6 | then 7 | pamixer -d $2 8 | else 9 | echo "No argument/wrong arguments" 10 | exit 1 11 | fi 12 | volume=$(pamixer --get-volume) 13 | dunstify "Volume" "Volume: ${volume}%" -h int:value:$volume -h string:x-dunst-stack-tag:volume -t 1000 14 | -------------------------------------------------------------------------------- /sixtyten/.bin/cl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Nice and clean colorscheme script 4 | 5 | f=3 b=4 6 | for j in f b; do 7 | for i in {0..7}; do 8 | printf -v $j$i %b "\e[${!j}${i}m" 9 | done 10 | done 11 | d=$'\e[1m' 12 | t=$'\e[0m' 13 | v=$'\e[7m' 14 | 15 | cat << EOF 16 | 17 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 18 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 19 | $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t 20 | 21 | EOF 22 | -------------------------------------------------------------------------------- /sixtyten/.bin/colorer_toggle: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | current=$(colorer -g colorscheme) 3 | [ ! -e "$(readlink -f $1)" ] || [ ! -e "$(readlink -f $2)" ] && echo "Colorschemes do not exist." && exit 1 4 | [ "$(readlink -f $1)" != "$current" ] && [ "$(readlink -f $2)" != "$current" ] && echo "Wrong args, one has to be the current colorscheme: $current" && exit 1 5 | if [ "$(readlink -f $1)" = "$current" ]; then to="$2"; else to="$1"; fi 6 | echo $to 7 | colorer $to 8 | -------------------------------------------------------------------------------- /sixtyten/.bin/getxres: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xrdb -query | grep $1 | head -n1 | cut -d':' -f2 | sed 's/ //g' 3 | -------------------------------------------------------------------------------- /sixtyten/.bin/launcher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # theme=~/.cache/colorer/rofi.rasi 3 | # theme=~/.config/rofi/san.rasi 4 | # rofi -show run -theme $theme 5 | prompt 'Launcher' --run 6 | -------------------------------------------------------------------------------- /sixtyten/.bin/lightdark_switch: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $1: dark colorer colorscheme 3 | # $2: light colorer colorscheme 4 | # $3: dark switch icon 5 | # $4: light switch icon 6 | if [ "$(readlink -f $1)" = "$(colorer -g colorscheme)" ]; then echo $3; else echo $4; fi 7 | 8 | -------------------------------------------------------------------------------- /sixtyten/.bin/memalert: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | percent_used=$(free | grep Mem | awk '{print ($2-$7)/$2 * 100.0}') 3 | limit=90 4 | if (($(echo "$percent_used >= $limit" | bc -l))); then 5 | notify-send "Memory usage" "Memory usage exceeds ${limit}%." -u critical 6 | fi 7 | 8 | -------------------------------------------------------------------------------- /sixtyten/.bin/playerctl_controls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | play_icon=$2 3 | pause_icon=$3 4 | prev_icon=$4 5 | next_icon=$5 6 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && color=$(polybar --dump=foreground base 2>/dev/null) || color=$(polybar --dump=line-color base 2>/dev/null) 7 | player=$1 8 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && status=$pause_icon || status=$play_icon 9 | string=$(echo %{A1:playerctl previous -p $1:}$prev_icon%{A}%{A1:playerctl play-pause -p $1:} $status%{A}%{A1:playerctl next -p $1:} $next_icon%{A}%{-o}) 10 | 11 | echo $string 12 | -------------------------------------------------------------------------------- /sixtyten/.bin/powermenu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | choices="Poweroff\nQuit\nReboot\nLock\nSuspend" 3 | # chosen=$(echo -e $choices | rofi -dmenu -i -p "Power Menu" -theme ~/.cache/colorer/rofi.rasi) 4 | fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 5 | bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 6 | chosen=$(echo -e $choices | prompt "Powermenu") 7 | echo "$chosen" 8 | 9 | case "$chosen" in 10 | Lock) lock ;; 11 | Suspend) systemctl suspend ;; 12 | Quit) bspc quit ;; 13 | Poweroff) poweroff ;; 14 | Reboot) reboot ;; 15 | esac 16 | -------------------------------------------------------------------------------- /sixtyten/.bin/prompt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Use as dmenu (by piping values separated by \n to it) 4 | # $1 is the text shown in the prompt (defaults as 'dmenu') 5 | # if $2 is '--run', runs dmenu_run instead 6 | 7 | fg=$(colorer -g color1) 8 | bg=$(colorer -g bg) 9 | [[ $1 == '' ]] && prompt='dmenu' || prompt=$1 10 | args="-fn Cozette-8 -h 30 -nb ${bg} -nf ${fg} -sb ${fg} -sf ${bg} -p ${prompt} -i -b" 11 | # [[ $2 == '--run' ]] && dmenu_run $args || dmenu $args 12 | [[ $2 == '--run' ]] && rofi -show run -theme ~/.config/colorer/out/rofi.rasi || rofi -dmenu -p "$1" -theme ~/.config/colorer/out/rofi.rasi -i 13 | -------------------------------------------------------------------------------- /sixtyten/.bin/screen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # file=/tmp/$(date +%s).png 4 | # default_dir=~/Pictures/Screenshots 5 | # 6 | # sleep 0.6 7 | # maim -u $1 $file 8 | # 9 | # # dir=$(find ~ -type d 2>/dev/null | rofi -dmenu -i -p "Choose a directory" -theme ~/.cache/colorer/rofi.rasi) 10 | # fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 11 | # bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 12 | # #dir=$(find ~ -type d 2>/dev/null | prompt "Where?") 13 | # dir=$default_dir 14 | # 15 | # if [[ -n $dir ]]; then 16 | # mv $file $dir 17 | # else 18 | # mv $file $default_dir 19 | # fi 20 | 21 | file=~/Pictures/Screenshots/$(date +%s).png 22 | maim -u $1 $file 23 | 24 | xclip -selection clipboard -target image/png -i $file 25 | 26 | notify-send "Took a screenshot" "saved to ${file} and copied to clipboard." -i $file 27 | -------------------------------------------------------------------------------- /sixtyten/.bin/toggle_bar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xdo show -N Polybar; pkill -f polybar-autohide || polybar-autohide &>/dev/null 3 | -------------------------------------------------------------------------------- /sixtyten/.bin/volume_status: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | volume=$(pamixer --get-volume) 3 | # volume=$(($volume + 0)) 4 | if [[ $volume -lt 33 ]] 5 | then 6 | icon=奄 7 | elif [[ $volume -lt 66 ]] 8 | then 9 | icon=奔 10 | else 11 | icon=墳 12 | fi 13 | if [[ $(pamixer --get-volume-human) = "muted" ]] 14 | then 15 | icon="%{F$(colorer -g color8)}婢%{F-}" 16 | fi 17 | echo $icon 18 | -------------------------------------------------------------------------------- /sixtyten/.cal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git=`which git` 4 | while read -ra Z; do 5 | if [[ "${Z[@]}" == \*\ * ]]; then 6 | gbranch="${Z[1]}" 7 | break 8 | fi 9 | done <<< "$($git branch 2> /dev/null)" 10 | 11 | ((cno=0)) 12 | while read -r Z; do 13 | [[ "$Z" == commit* ]] && ((cno+=1)) 14 | done <<< "$($git log 2> /dev/null)" 15 | 16 | $git rev-list --left-right --count origin/main..."$gbranch" >/dev/null 2>&1 17 | if [ "$?" == 0 ];then 18 | rev=`$git rev-list --left-right --count origin/main..."$gbranch"`; 19 | beh=$(cut -f1 <<< $rev ) 20 | ahe=$(cut -f2 <<< $rev ) 21 | 22 | echo -e "$($git diff --cached --name-only | wc -l)"\ 23 | "$($git diff --stat origin/main.. | wc -l)"\ 24 | "$($git diff --name-status | wc -l)"\ 25 | "$($git ls-files --others --exclude-standard | wc -l)"\ 26 | "$gbranch"\ 27 | "${cno}"\ 28 | "$beh"\ 29 | "$ahe" 30 | else 31 | beh="-1" 32 | ahe="-1" 33 | echo -e "$($git diff --cached --name-only | wc -l)"\ 34 | "0"\ 35 | "$($git diff --name-status | wc -l)"\ 36 | "$($git ls-files --others --exclude-standard | wc -l)"\ 37 | "$gbranch"\ 38 | "${cno}"\ 39 | "$beh"\ 40 | "$ahe" 41 | fi 42 | 43 | -------------------------------------------------------------------------------- /sixtyten/.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # wm config 4 | bspc config border_width 0 5 | bspc config window_gap 15 6 | out=0 7 | bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out + $(bspc config window_gap))) 8 | # bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out)) 9 | bspc config split_ratio 0.50 10 | 11 | bspc config focus_follows_pointer true 12 | 13 | bspc monitor -d 1 2 3 4 5 6 7 8 9 10 14 | 15 | # rules 16 | bspc rule -a Zathura state=tiled 17 | bspc rule -a matplotlib state=floating 18 | 19 | inactive=$(colorer -g bg) 20 | active=$(colorer -g color8) 21 | bspc config normal_border_color "$inactive" 22 | bspc config focused_border_color "$active" 23 | # bspc config focused_border_color "$inactive" 24 | bspc config presel_feedback_color "$inactive" 25 | 26 | # startup 27 | pgrep sxhkd || sxhkd -m 1 & 28 | 29 | ~/.fehbg & 30 | # hsetroot -solid $(getxres background) 31 | # ~/.config/polybar/launch.sh & 32 | pgrep polybar || polybar -r & 33 | pgrep picom || picom -b & 34 | # mpDris2 & 35 | # pulseeffects --gapplication-service & 36 | pkill dunst; dunst & 37 | # pgrep xflux || xflux -l 43.36 -g 1.26 & 38 | pgrep udiskie || udiskie & 39 | # pkill 2bspwm ; 2bspwm & 40 | pkill flashfocus ; flashfocus & 41 | pgrep xfce4-power-manager || xfce4-power-manager & 42 | pm2 describe fmcord || pm2 start --cwd="/home/louise/Code/fmcord" --name=fmcord app.js & 43 | pgrep xsettingsd || xsettingsd & 44 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/README.md: -------------------------------------------------------------------------------- 1 | # Example files for [colorer](https://github.com/kiddae/colorer) 2 | 3 | This includes colorschemes, templates for various config files and commands for colorer. 4 | 5 | The repo is organized as the `~/.config/colorer/` folder should be. 6 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/bla.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/sixtyten/.config/colorer/bla.png -------------------------------------------------------------------------------- /sixtyten/.config/colorer/boc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/sixtyten/.config/colorer/boc.jpg -------------------------------------------------------------------------------- /sixtyten/.config/colorer/commands: -------------------------------------------------------------------------------- 1 | echo "Applying changes to files" 2 | sed -E "s/colorscheme .+/colorscheme {vim}/g" ~/.config/nvim/global.vim -i & 3 | # sed -E "s/'colorscheme': '.+',$/'colorscheme': '{lightline}',/g" ~/.config/nvim/plug-config/lightline.vim -i 4 | sed -E "s/let g:ayucolor = \".+\"$/let g:ayucolor = \"{ayu_theme}\"/g" ~/.config/nvim/plugins.vim -i & 5 | sed -E "s/Net\/ThemeName \".+\"$/Net\/ThemeName \"{gtk}\"/g" ~/.config/xsettingsd/xsettingsd.conf -i & 6 | echo -ne $(cat ~/.config/colorer/out/sequences) | tee /dev/pts/[0-9]* & 7 | #cp {wp} /usr/share/sddm/themes/sugar-candy/Backgrounds/Wall.png 8 | cp ~/.config/colorer/out/lightdm-mini-greeter.conf /etc/lightdm/lightdm-mini-greeter.conf & 9 | cp ~/.config/colorer/out/dunstrc ~/.config/dunst/dunstrc & 10 | cp ~/.config/colorer/out/kitty ~/.config/kitty/colors & 11 | # cp ~/.config/colorer/out/userChrome.css ~/.mozilla/firefox/c6xdm17d.default-release/chrome/userChrome.css & 12 | cp ~/.config/colorer/out/zathurarc ~/.config/zathura/zathurarc & 13 | echo "Reloading everything" 14 | xrdb -merge ~/.config/colorer/out/Xresources & 15 | # pkill -USR1 polybar 16 | polybar-msg cmd restart & 17 | ImageColorizer {wp} ~/.cache/wp.png -c {colorscheme} -i && feh --bg-{wp_mode} ~/.cache/wp.png -B $(colorer -g bg) 18 | cp ~/.cache/wp.png /etc/lightdm/Wall.png & 19 | pkill -HUP xsettingsd & 20 | # killall dunst && dunst & 21 | bspc wm -r & 22 | # echo "Generating GTK theme..." 23 | # oomox-cli /opt/oomox/scripted_colors/xresources/xresources-reverse -t ~/.local/share/themes/ -m all -d true & 24 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/templates/Xresources: -------------------------------------------------------------------------------- 1 | *background: {bg} 2 | *foreground: {fg} 3 | ! Black + DarkGrey 4 | *color0: {color0} 5 | *color8: {color8} 6 | ! DarkRed + Red 7 | *color1: {color1} 8 | *color9: {color9} 9 | ! DarkGreen + Green 10 | *color2: {color2} 11 | *color10: {color10} 12 | ! DarkYellow + Yellow 13 | *color3: {color3} 14 | *color11: {color11} 15 | ! DarkBlue + Blue 16 | *color4: {color4} 17 | *color12: {color12} 18 | ! DarkMagenta + Magenta 19 | *color5: {color5} 20 | *color13: {color13} 21 | ! DarkCyan + Cyan 22 | *color6: {color6} 23 | *color14: {color14} 24 | ! LightGrey + White 25 | *color7: {color7} 26 | *color15: {color15} 27 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/templates/alacritty: -------------------------------------------------------------------------------- 1 | colors: 2 | # Default colors 3 | primary: 4 | background: '{bg}' 5 | foreground: '{fg}' 6 | 7 | # Normal colors 8 | normal: 9 | # NOTE: Use '#131613' for the `black` color if you'd like to see 10 | # black text on the background. 11 | black: '{color0}' 12 | red: '{color1}' 13 | green: '{color2}' 14 | yellow: '{color3}' 15 | blue: '{color4}' 16 | magenta: '{color5}' 17 | cyan: '{color6}' 18 | white: '{color7}' 19 | 20 | # Bright colors 21 | bright: 22 | black: '{color8}' 23 | red: '{color9}' 24 | green: '{color10}' 25 | yellow: '{color11}' 26 | blue: '{color12}' 27 | magenta: '{color13}' 28 | cyan: '{color14}' 29 | white: '{color15}' 30 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/templates/kitty: -------------------------------------------------------------------------------- 1 | foreground {fg} 2 | background {bg} 3 | color0 {color0} 4 | color1 {color1} 5 | color2 {color2} 6 | color3 {color3} 7 | color4 {color4} 8 | color5 {color5} 9 | color6 {color6} 10 | color7 {color7} 11 | color8 {color8} 12 | color9 {color9} 13 | color10 {color10} 14 | color11 {color11} 15 | color12 {color12} 16 | color13 {color13} 17 | color14 {color14} 18 | color15 {color15} 19 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/templates/polybar: -------------------------------------------------------------------------------- 1 | [colors] 2 | background = {bg} 3 | foreground = {fg} 4 | color0 = {color0} 5 | color1 = {color1} 6 | color2 = {color2} 7 | color3 = {color3} 8 | color4 = {color4} 9 | color5 = {color5} 10 | color6 = {color6} 11 | color7 = {color7} 12 | color8 = {color8} 13 | color9 = {color9} 14 | color10 = {color10} 15 | color11 = {color11} 16 | color12 = {color12} 17 | color13 = {color13} 18 | color14 = {color14} 19 | color15 = {color15} 20 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/templates/sequences: -------------------------------------------------------------------------------- 1 | \033]4;0;{color0}\033\\\033]4;1;{color1}\033\\\033]4;2;{color2}\033\\\033]4;3;{color3}\033\\\033]4;4;{color4}\033\\\033]4;5;{color5}\033\\\033]4;6;{color6}\033\\\033]4;7;{color7}\033\\\033]4;8;{color8}\033\\\033]4;9;{color9}\033\\\033]4;10;{color10}\033\\\033]4;11;{color11}\033\\\033]4;12;{color12}\033\\\033]4;13;{color13}\033\\\033]4;14;{color14}\033\\\033]4;15;{color15}\033\\\033]10;{fg}\033\\\033]11;{bg}\033\\ 2 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/templates/var.css: -------------------------------------------------------------------------------- 1 | /* CSS variables 2 | Generated by 'colorer' */ 3 | :root {{ 4 | --wallpaper: url("{wp}"); 5 | 6 | /* Special */ 7 | --background: {bg}; 8 | --foreground: {fg}; 9 | --cursor: {fg}; 10 | 11 | /* Colors */ 12 | --color0: {color0}; 13 | --color1: {color1}; 14 | --color2: {color2}; 15 | --color3: {color3}; 16 | --color4: {color4}; 17 | --color5: {color5}; 18 | --color6: {color6}; 19 | --color7: {color7}; 20 | --color8: {color8}; 21 | --color9: {color9}; 22 | --color10: {color10}; 23 | --color11: {color11}; 24 | --color12: {color12}; 25 | --color13: {color13}; 26 | --color14: {color14}; 27 | --color15: {color15}; 28 | }} 29 | -------------------------------------------------------------------------------- /sixtyten/.config/colorer/templates/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 9" 4 | 5 | set completion-bg "{bg}" 6 | set completion-fg "{fg}" 7 | set completion-group-bg "{bg}" 8 | set completion-group-fg "{color2}" 9 | set completion-highlight-bg "{fg}" 10 | set completion-highlight-fg "{bg}" 11 | 12 | set recolor-lightcolor "{bg}" 13 | set recolor-darkcolor "{fg}" 14 | set default-bg "{bg}" 15 | 16 | set inputbar-bg "{bg}" 17 | set inputbar-fg "{fg}" 18 | set notification-bg "{bg}" 19 | set notification-fg "{fg}" 20 | set notification-error-bg "{color1}" 21 | set notification-error-fg "{fg}" 22 | set notification-warning-bg "{color1}" 23 | set notification-warning-fg "{fg}" 24 | set statusbar-bg "{bg}" 25 | set statusbar-fg "{fg}" 26 | set index-bg "{bg}" 27 | set index-fg "{fg}" 28 | set index-active-bg "{fg}" 29 | set index-active-fg "{bg}" 30 | set render-loading-bg "{bg}" 31 | set render-loading-fg "{fg}" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /sixtyten/.config/kitty/colors: -------------------------------------------------------------------------------- 1 | foreground #6c7680 2 | background #fafafa 3 | color0 #ffffff 4 | color1 #f51818 5 | color2 #86b300 6 | color3 #fa8d3e 7 | color4 #399ee6 8 | color5 #f07171 9 | color6 #4cbf99 10 | color7 #6c7680 11 | color8 #cbccc6 12 | color9 #ff3333 13 | color10 #bae67e 14 | color11 #ffa759 15 | color12 #73d0ff 16 | color13 #f28779 17 | color14 #95e6cb 18 | color15 #6c7680 19 | -------------------------------------------------------------------------------- /sixtyten/.config/kitty/kitty.conf: -------------------------------------------------------------------------------- 1 | include colors 2 | allow_remote_control yes 3 | 4 | font_family SFMono Nerd Font Mono 5 | italic_font auto 6 | bold_font auto 7 | bold_italic_font auto 8 | font_size 10 9 | 10 | adjust_line_height 9 11 | resize_in_steps yes 12 | placement_strategy top-left 13 | 14 | cursor_shape beam 15 | 16 | window_padding_width 20 17 | initial_window_width 400 18 | initial_window_height 320 19 | remember_window_size no 20 | 21 | listen_on unix:/tmp/mykitty 22 | -------------------------------------------------------------------------------- /sixtyten/.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | polybar -r base & 10 | echo "Polybar launched..." 11 | -------------------------------------------------------------------------------- /sixtyten/.config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration{ 2 | font: "SF Mono 10"; 3 | location: 7; 4 | yoffset: -50; 5 | xoffset: 10; 6 | show-icons: false; 7 | } 8 | -------------------------------------------------------------------------------- /sixtyten/.config/sxhkd/inner_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gaps=$(bspc config -d focused window_gap) 3 | [[ $(( $gaps$1 )) -ge 0 ]] && bspc config -d focused window_gap $(( $gaps$1 )) 4 | -------------------------------------------------------------------------------- /sixtyten/.config/sxhkd/move: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | state=$(bspc query -T -n | jq '.client.state' | sed 's/\"//g') 3 | interval=40 4 | 5 | if [[ "$state" == "tiled" ]]; then 6 | echo $state 7 | case $1 in 8 | west) bspc node -s west;; 9 | south) bspc node -s south;; 10 | north) bspc node -s north;; 11 | east) bspc node -s east 12 | esac 13 | fi 14 | 15 | if [[ "$state" == "floating" ]]; then 16 | case $1 in 17 | west) bspc node -v $(( 0 - $interval )) 0;; 18 | south) bspc node -v 0 $interval;; 19 | north) bspc node -v 0 $(( 0 - $interval ));; 20 | east) bspc node -v $interval 0 21 | esac 22 | fi 23 | -------------------------------------------------------------------------------- /sixtyten/.config/sxhkd/outer_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | left=$(bspc config ${@:2} left_padding) 3 | right=$(bspc config ${@:2} right_padding) 4 | top=$(bspc config ${@:2} top_padding) 5 | bottom=$(bspc config ${@:2} bottom_padding) 6 | 7 | if [[ ${1:0:1} = '=' ]] 8 | then 9 | n_left=${1:1} 10 | n_right=${1:1} 11 | n_top=${1:1} 12 | n_bottom=${1:1} 13 | else 14 | [[ $(($left$1)) -ge 0 ]] && n_left=$(($left$1)) 15 | [[ $(($right$1)) -ge 0 ]] && n_right=$(($right$1)) 16 | [[ $(($top$1)) -ge 0 ]] && n_top=$(($top$1)) 17 | [[ $(($bottom$1)) -ge 0 ]] && n_bottom=$(($bottom$1)) 18 | fi 19 | 20 | 21 | bspc config ${@:2} left_padding $n_left && echo $n_left 22 | bspc config ${@:2} right_padding $n_right && echo $n_right 23 | bspc config ${@:2} top_padding $n_top && echo $n_top 24 | bspc config ${@:2} bottom_padding $n_bottom && echo $n_bottom 25 | -------------------------------------------------------------------------------- /sixtyten/.config/sxhkd/resize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | size=${2:-'10'} 4 | dir=$1 5 | 6 | # Find current window mode 7 | is_tiled() { 8 | bspc query -T -n | grep -q '"state":"tiled"' 9 | } 10 | # If the window is floating, move it 11 | if ! is_tiled; then 12 | #only parse input if window is floating,tiled windows accept input as is 13 | case "$dir" in 14 | west) switch="-w" 15 | sign="-" 16 | ;; 17 | east) switch="-w" 18 | sign="+" 19 | ;; 20 | north) switch="-h" 21 | sign="-" 22 | ;; 23 | south) switch="-h" 24 | sign="+" 25 | ;; 26 | esac 27 | xdo resize ${switch} ${sign}${size} 28 | 29 | # Otherwise, window is tiled: switch with window in given direction 30 | else 31 | case "$dir" in 32 | west) bspc node @west -r -$size || bspc node @east -r -${size} 33 | ;; 34 | east) bspc node @west -r +$size || bspc node @east -r +${size} 35 | ;; 36 | north) bspc node @south -r -$size || bspc node @north -r -${size} 37 | ;; 38 | south) bspc node @south -r +$size || bspc node @north -r +${size} 39 | ;; 40 | esac 41 | fi 42 | -------------------------------------------------------------------------------- /sixtyten/.config/xsettingsd/xsettingsd.conf: -------------------------------------------------------------------------------- 1 | Net/ThemeName "Flat-Remix-GTK-Cyan-Light" 2 | -------------------------------------------------------------------------------- /sixtyten/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 9" 4 | 5 | set completion-bg "#fafafa" 6 | set completion-fg "#6c7680" 7 | set completion-group-bg "#fafafa" 8 | set completion-group-fg "#86b300" 9 | set completion-highlight-bg "#6c7680" 10 | set completion-highlight-fg "#fafafa" 11 | 12 | set recolor-lightcolor "#fafafa" 13 | set recolor-darkcolor "#6c7680" 14 | set default-bg "#fafafa" 15 | 16 | set inputbar-bg "#fafafa" 17 | set inputbar-fg "#6c7680" 18 | set notification-bg "#fafafa" 19 | set notification-fg "#6c7680" 20 | set notification-error-bg "#f51818" 21 | set notification-error-fg "#6c7680" 22 | set notification-warning-bg "#f51818" 23 | set notification-warning-fg "#6c7680" 24 | set statusbar-bg "#fafafa" 25 | set statusbar-fg "#6c7680" 26 | set index-bg "#fafafa" 27 | set index-fg "#6c7680" 28 | set index-active-bg "#6c7680" 29 | set index-active-fg "#fafafa" 30 | set render-loading-bg "#fafafa" 31 | set render-loading-fg "#6c7680" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /sixtyten/.inputrc: -------------------------------------------------------------------------------- 1 | # When pressing up or down arrow, show only history that 2 | # matches what was already written 3 | "\e[A":history-search-backward 4 | "\e[B":history-search-forward 5 | 6 | "\C-?": backward-kill-word 7 | "\e[3;5~": kill-word 8 | 9 | # Disable bell 10 | set bell-style none 11 | 12 | # set show-mode-in-prompt on 13 | -------------------------------------------------------------------------------- /sixtyten/.profile: -------------------------------------------------------------------------------- 1 | if [ -n "$BASH_VERSION" ]; then 2 | # include .bashrc if it exists 3 | if [ -f "$HOME/.bashrc" ]; then 4 | . "$HOME/.bashrc" 5 | fi 6 | fi 7 | 8 | # set PATH so it includes user's private bin if it exists 9 | if [ -d "$HOME/.local/bin" ] ; then 10 | PATH="$HOME/.local/bin:$PATH" 11 | fi 12 | 13 | # constants 14 | export TERMINAL="kitty" 15 | export EDITOR="nvim" 16 | export BROWSER="firefox" 17 | export SCRIPT_FOLDER="$HOME/.bin" 18 | export WALLPAPER_FOLDER="$HOME/Pictures/Wallpapers/" 19 | 20 | # add scripts to path 21 | PATH="$SCRIPT_FOLDER:$PATH" 22 | PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH" 23 | 24 | export QT_QPA_PLATFORMTHEME=gnome 25 | export GTK2_RC_FILES=$HOME/.gtkrc-2.0 26 | -------------------------------------------------------------------------------- /sixtyten/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -f ~/.xprofile ] && . ~/.xprofile 3 | exec bspwm 4 | -------------------------------------------------------------------------------- /sixtyten/.xprofile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xrdb -merge ~/.cache/colorer/Xresources 3 | # lock-screen-timer & 4 | # timemanager & 5 | # setxkbmap fr 6 | xsetroot -cursor_name left_ptr 7 | xset +fp /usr/share/fonts/misc/ 8 | xset fp rehash 9 | xset b off 10 | xset r rate 400 100 11 | -------------------------------------------------------------------------------- /sixtyten/README.md: -------------------------------------------------------------------------------- 1 | # `sweet` 2 | > Soft and sweet, just like candy. 3 | 4 | # Screenshots 5 | 6 | ![screenshot](screenshot.png) 7 | 8 | # Some info 9 | 10 | + Colorscheme: [`everblush`](https://github.com/kiddae/colorer-colorschemes/blob/main/everblush) 11 | + Wallpaper: [link](https://raw.githubusercontent.com/kiddae/wallpapers/main/music/colorized/4t2qli7sxom61_c_inv_everblush.png) 12 | + Font: `SF Pro Text`/`SF Pro Display` and `SF Mono` 13 | + Shown in the screenshots: `bspwm`, `polybar`, `kitty`, `neovim` 14 | 15 | -------------------------------------------------------------------------------- /sixtyten/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/sixtyten/screenshot.png -------------------------------------------------------------------------------- /sixtyten_desktop/.Xresources: -------------------------------------------------------------------------------- 1 | #include ".config/colorer/out/Xresources" 2 | Xft.dpi: 96 3 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/appsbar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import subprocess 3 | 4 | def get(str): 5 | try: 6 | return subprocess.check_output(str, shell=True).decode('utf-8').replace('\n', '') 7 | except: 8 | return "" 9 | 10 | highlight = get("colorer -g color7") 11 | closed = get("colorer -g color8") 12 | 13 | apps_icons = ['', '', '', '', ''] 14 | apps_names = ['firefox', 'kitty', 'kitty -e ranger', 'discord', 'kitty -e nvim'] 15 | 16 | for i in range(len(apps_icons)): 17 | format = "%{A1:" + apps_names[i] + ":}" + "%{F" + (highlight if get("pgrep '{}'".format(apps_names[i].split(" ")[-1])) != "" else closed) + "}" + apps_icons[i] + "%{F-}%{A} " 18 | print(format, end="") 19 | 20 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/backlight_status: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | brightness="$(xbacklight -get | cut -d '.' -f1)" 3 | if [[ $brightness -lt 25 ]] 4 | then 5 | icon= 6 | elif [[ $brightness -lt 50 ]] 7 | then 8 | icon= 9 | elif [[ $brightness -lt 75 ]] 10 | then 11 | icon= 12 | else 13 | icon= 14 | fi 15 | echo $icon 16 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/bunnyfetch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Tiny colored fetch script 3 | # Requires Typicons Font to display the icons 4 | # elenapan @ github 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | i=$'\e[3m' 16 | 17 | # Items 18 | sep= 19 | s=$d$f0$sep$t 20 | 21 | w= 22 | wifiname="$(iwgetid | cut -d \" -f2)" 23 | 24 | h= 25 | wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" 26 | 27 | k= 28 | kernel="$(uname -r | cut -d '-' -f1)" 29 | 30 | r= 31 | resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)" 32 | 33 | sh= 34 | shell=$(basename $SHELL) 35 | 36 | # (\ /) 37 | # ( · ·) 38 | # c(")(") 39 | 40 | # (\ /) 41 | # ( . .) 42 | # c(")(") 43 | 44 | tput clear 45 | cat << EOF 46 | 47 | $d$f1$h $t$i$wmname$t 48 | (\ /) $f3$k $t$i$kernel$t 49 | ( $d. .$t) $f2$sh $t$i$shell$t 50 | c($f1"$t)($f1"$t) $f5$r $t$i$resolution$t 51 | $f4$w $t$i$wifiname$t 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/chbacklight: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ "$1" = "up" ]] 3 | then 4 | xbacklight -inc $2 5 | elif [[ "$1" = "down" ]] && [[ $(xbacklight -get | cut -d'.' -f1) -gt 10 ]] 6 | then 7 | xbacklight -dec $2 8 | else 9 | echo "No argument/wrong arguments" 10 | exit 1 11 | fi 12 | backlight=$(xbacklight -get | cut -d'.' -f1) 13 | dunstify "Backlight" "Backlight: ${backlight}%" -h int:value:$backlight -h string:x-dunst-stack-tag:backlight-control -t 1000 14 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/chvolume: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ "$1" = "up" ]] 3 | then 4 | pamixer -i $2 5 | elif [[ "$1" = "down" ]] 6 | then 7 | pamixer -d $2 8 | else 9 | echo "No argument/wrong arguments" 10 | exit 1 11 | fi 12 | volume=$(pamixer --get-volume) 13 | dunstify "Volume" "Volume: ${volume}%" -h int:value:$volume -h string:x-dunst-stack-tag:volume -t 1000 14 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/cl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Nice and clean colorscheme script 4 | 5 | f=3 b=4 6 | for j in f b; do 7 | for i in {0..7}; do 8 | printf -v $j$i %b "\e[${!j}${i}m" 9 | done 10 | done 11 | d=$'\e[1m' 12 | t=$'\e[0m' 13 | v=$'\e[7m' 14 | 15 | cat << EOF 16 | 17 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 18 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 19 | $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t 20 | 21 | EOF 22 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/colorer_toggle: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | current=$(colorer -g colorscheme) 3 | [ ! -e "$(readlink -f $1)" ] || [ ! -e "$(readlink -f $2)" ] && echo "Colorschemes do not exist." && exit 1 4 | [ "$(readlink -f $1)" != "$current" ] && [ "$(readlink -f $2)" != "$current" ] && echo "Wrong args, one has to be the current colorscheme: $current" && exit 1 5 | if [ "$(readlink -f $1)" = "$current" ]; then to="$2"; else to="$1"; fi 6 | echo $to 7 | colorer $to 8 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/getxres: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xrdb -query | grep $1 | head -n1 | cut -d':' -f2 | sed 's/ //g' 3 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/launcher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # theme=~/.cache/colorer/rofi.rasi 3 | # theme=~/.config/rofi/san.rasi 4 | # rofi -show run -theme $theme 5 | prompt 'Launcher' --run 6 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/lightdark_switch: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $1: dark colorer colorscheme 3 | # $2: light colorer colorscheme 4 | # $3: dark switch icon 5 | # $4: light switch icon 6 | if [ "$(readlink -f $1)" = "$(colorer -g colorscheme)" ]; then echo $3; else echo $4; fi 7 | 8 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/memalert: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | percent_used=$(free | grep Mem | awk '{print ($2-$7)/$2 * 100.0}') 3 | limit=90 4 | if (($(echo "$percent_used >= $limit" | bc -l))); then 5 | notify-send "Memory usage" "Memory usage exceeds ${limit}%." -u critical 6 | fi 7 | 8 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/playerctl_controls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | play_icon=$2 3 | pause_icon=$3 4 | prev_icon=$4 5 | next_icon=$5 6 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && color=$(polybar --dump=foreground base 2>/dev/null) || color=$(polybar --dump=line-color base 2>/dev/null) 7 | player=$1 8 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && status=$pause_icon || status=$play_icon 9 | string=$(echo %{A1:playerctl previous -p $1:}$prev_icon%{A}%{A1:playerctl play-pause -p $1:} $status%{A}%{A1:playerctl next -p $1:} $next_icon%{A}%{-o}) 10 | 11 | echo $string 12 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/powermenu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | choices="Poweroff\nQuit\nReboot\nLock\nSuspend" 3 | # chosen=$(echo -e $choices | rofi -dmenu -i -p "Power Menu" -theme ~/.cache/colorer/rofi.rasi) 4 | fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 5 | bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 6 | chosen=$(echo -e $choices | prompt "Powermenu") 7 | echo "$chosen" 8 | 9 | case "$chosen" in 10 | Lock) lock ;; 11 | Suspend) systemctl suspend ;; 12 | Quit) bspc quit ;; 13 | Poweroff) poweroff ;; 14 | Reboot) reboot ;; 15 | esac 16 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/prompt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Use as dmenu (by piping values separated by \n to it) 4 | # $1 is the text shown in the prompt (defaults as 'dmenu') 5 | # if $2 is '--run', runs dmenu_run instead 6 | 7 | fg=$(colorer -g color1) 8 | bg=$(colorer -g bg) 9 | [[ $1 == '' ]] && prompt='dmenu' || prompt=$1 10 | args="-fn Cozette-8 -h 30 -nb ${bg} -nf ${fg} -sb ${fg} -sf ${bg} -p ${prompt} -i -b" 11 | # [[ $2 == '--run' ]] && dmenu_run $args || dmenu $args 12 | [[ $2 == '--run' ]] && rofi -show run -theme ~/.config/colorer/out/rofi.rasi || rofi -dmenu -p "$1" -theme ~/.config/colorer/out/rofi.rasi -i 13 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/screen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # file=/tmp/$(date +%s).png 4 | # default_dir=~/Pictures/Screenshots 5 | # 6 | # sleep 0.6 7 | # maim -u $1 $file 8 | # 9 | # # dir=$(find ~ -type d 2>/dev/null | rofi -dmenu -i -p "Choose a directory" -theme ~/.cache/colorer/rofi.rasi) 10 | # fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 11 | # bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 12 | # #dir=$(find ~ -type d 2>/dev/null | prompt "Where?") 13 | # dir=$default_dir 14 | # 15 | # if [[ -n $dir ]]; then 16 | # mv $file $dir 17 | # else 18 | # mv $file $default_dir 19 | # fi 20 | 21 | file=~/Pictures/Screenshots/$(date +%s).png 22 | maim -u $1 $file 23 | 24 | xclip -selection clipboard -target image/png -i $file 25 | 26 | notify-send "Took a screenshot" "saved to ${file} and copied to clipboard." -i $file 27 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/toggle_bar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xdo show -N Polybar; pkill -f polybar-autohide || polybar-autohide &>/dev/null 3 | -------------------------------------------------------------------------------- /sixtyten_desktop/.bin/volume_status: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | volume=$(pamixer --get-volume) 3 | # volume=$(($volume + 0)) 4 | if [[ $volume -lt 33 ]] 5 | then 6 | icon=奄 7 | elif [[ $volume -lt 66 ]] 8 | then 9 | icon=奔 10 | else 11 | icon=墳 12 | fi 13 | if [[ $(pamixer --get-volume-human) = "muted" ]] 14 | then 15 | icon="%{F$(colorer -g color8)}婢%{F-}" 16 | fi 17 | echo $icon 18 | -------------------------------------------------------------------------------- /sixtyten_desktop/.cal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git=`which git` 4 | while read -ra Z; do 5 | if [[ "${Z[@]}" == \*\ * ]]; then 6 | gbranch="${Z[1]}" 7 | break 8 | fi 9 | done <<< "$($git branch 2> /dev/null)" 10 | 11 | ((cno=0)) 12 | while read -r Z; do 13 | [[ "$Z" == commit* ]] && ((cno+=1)) 14 | done <<< "$($git log 2> /dev/null)" 15 | 16 | $git rev-list --left-right --count origin/main..."$gbranch" >/dev/null 2>&1 17 | if [ "$?" == 0 ];then 18 | rev=`$git rev-list --left-right --count origin/main..."$gbranch"`; 19 | beh=$(cut -f1 <<< $rev ) 20 | ahe=$(cut -f2 <<< $rev ) 21 | 22 | echo -e "$($git diff --cached --name-only | wc -l)"\ 23 | "$($git diff --stat origin/main.. | wc -l)"\ 24 | "$($git diff --name-status | wc -l)"\ 25 | "$($git ls-files --others --exclude-standard | wc -l)"\ 26 | "$gbranch"\ 27 | "${cno}"\ 28 | "$beh"\ 29 | "$ahe" 30 | else 31 | beh="-1" 32 | ahe="-1" 33 | echo -e "$($git diff --cached --name-only | wc -l)"\ 34 | "0"\ 35 | "$($git diff --name-status | wc -l)"\ 36 | "$($git ls-files --others --exclude-standard | wc -l)"\ 37 | "$gbranch"\ 38 | "${cno}"\ 39 | "$beh"\ 40 | "$ahe" 41 | fi 42 | 43 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # wm config 4 | bspc config border_width 0 5 | bspc config window_gap 20 6 | out=0 7 | bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out + $(bspc config window_gap))) 8 | # bspc config bottom_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out)) 9 | bspc config split_ratio 0.50 10 | 11 | bspc config focus_follows_pointer true 12 | 13 | bspc monitor -d 1 2 3 4 5 6 7 8 9 10 14 | 15 | # rules 16 | bspc rule -a Zathura state=tiled 17 | bspc rule -a matplotlib state=floating 18 | 19 | inactive=$(colorer -g bg) 20 | active=$(colorer -g color8) 21 | bspc config normal_border_color "$inactive" 22 | bspc config focused_border_color "$active" 23 | # bspc config focused_border_color "$inactive" 24 | bspc config presel_feedback_color "$inactive" 25 | 26 | # startup 27 | pgrep sxhkd || sxhkd -m 1 & 28 | 29 | ~/.fehbg & 30 | # hsetroot -solid $(getxres background) 31 | # ~/.config/polybar/launch.sh & 32 | pgrep polybar || polybar -r & 33 | pgrep picom || picom -b & 34 | # mpDris2 & 35 | # pulseeffects --gapplication-service & 36 | pkill dunst; dunst & 37 | # pgrep xflux || xflux -l 43.36 -g 1.26 & 38 | pgrep udiskie || udiskie & 39 | # pkill 2bspwm ; 2bspwm & 40 | pkill flashfocus ; flashfocus & 41 | pgrep xfce4-power-manager || xfce4-power-manager & 42 | pm2 describe fmcord || pm2 start --cwd="/home/louise/Code/fmcord" --name=fmcord app.js & 43 | pgrep xsettingsd || xsettingsd & 44 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/README.md: -------------------------------------------------------------------------------- 1 | # Example files for [colorer](https://github.com/kiddae/colorer) 2 | 3 | This includes colorschemes, templates for various config files and commands for colorer. 4 | 5 | The repo is organized as the `~/.config/colorer/` folder should be. 6 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/bla.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/sixtyten_desktop/.config/colorer/bla.png -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/boc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/sixtyten_desktop/.config/colorer/boc.jpg -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/commands: -------------------------------------------------------------------------------- 1 | echo "Applying changes to files" 2 | sed -E "s/colorscheme .+/colorscheme {vim}/g" ~/.config/nvim/global.vim -i & 3 | # sed -E "s/'colorscheme': '.+',$/'colorscheme': '{lightline}',/g" ~/.config/nvim/plug-config/lightline.vim -i 4 | sed -E "s/let g:ayucolor = \".+\"$/let g:ayucolor = \"{ayu_theme}\"/g" ~/.config/nvim/plugins.vim -i & 5 | sed -E "s/Net\/ThemeName \".+\"$/Net\/ThemeName \"{gtk}\"/g" ~/.config/xsettingsd/xsettingsd.conf -i & 6 | echo -ne $(cat ~/.config/colorer/out/sequences) | tee /dev/pts/[0-9]* & 7 | #cp {wp} /usr/share/sddm/themes/sugar-candy/Backgrounds/Wall.png 8 | cp ~/.config/colorer/out/lightdm-mini-greeter.conf /etc/lightdm/lightdm-mini-greeter.conf & 9 | cp ~/.config/colorer/out/dunstrc ~/.config/dunst/dunstrc & 10 | cp ~/.config/colorer/out/kitty ~/.config/kitty/colors & 11 | # cp ~/.config/colorer/out/userChrome.css ~/.mozilla/firefox/c6xdm17d.default-release/chrome/userChrome.css & 12 | cp ~/.config/colorer/out/zathurarc ~/.config/zathura/zathurarc & 13 | echo "Reloading everything" 14 | xrdb -merge ~/.config/colorer/out/Xresources & 15 | # pkill -USR1 polybar 16 | polybar-msg cmd restart & 17 | ImageColorizer {wp} ~/.cache/wp.png -c {colorscheme} && feh --bg-{wp_mode} ~/.cache/wp.png -B $(colorer -g bg) 18 | cp ~/.cache/wp.png /etc/lightdm/Wall.png & 19 | pkill -HUP xsettingsd & 20 | # killall dunst && dunst & 21 | bspc wm -r & 22 | # echo "Generating GTK theme..." 23 | # oomox-cli /opt/oomox/scripted_colors/xresources/xresources-reverse -t ~/.local/share/themes/ -m all -d true & 24 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/templates/Xresources: -------------------------------------------------------------------------------- 1 | *background: {bg} 2 | *foreground: {fg} 3 | ! Black + DarkGrey 4 | *color0: {color0} 5 | *color8: {color8} 6 | ! DarkRed + Red 7 | *color1: {color1} 8 | *color9: {color9} 9 | ! DarkGreen + Green 10 | *color2: {color2} 11 | *color10: {color10} 12 | ! DarkYellow + Yellow 13 | *color3: {color3} 14 | *color11: {color11} 15 | ! DarkBlue + Blue 16 | *color4: {color4} 17 | *color12: {color12} 18 | ! DarkMagenta + Magenta 19 | *color5: {color5} 20 | *color13: {color13} 21 | ! DarkCyan + Cyan 22 | *color6: {color6} 23 | *color14: {color14} 24 | ! LightGrey + White 25 | *color7: {color7} 26 | *color15: {color15} 27 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/templates/alacritty: -------------------------------------------------------------------------------- 1 | colors: 2 | # Default colors 3 | primary: 4 | background: '{bg}' 5 | foreground: '{fg}' 6 | 7 | # Normal colors 8 | normal: 9 | # NOTE: Use '#131613' for the `black` color if you'd like to see 10 | # black text on the background. 11 | black: '{color0}' 12 | red: '{color1}' 13 | green: '{color2}' 14 | yellow: '{color3}' 15 | blue: '{color4}' 16 | magenta: '{color5}' 17 | cyan: '{color6}' 18 | white: '{color7}' 19 | 20 | # Bright colors 21 | bright: 22 | black: '{color8}' 23 | red: '{color9}' 24 | green: '{color10}' 25 | yellow: '{color11}' 26 | blue: '{color12}' 27 | magenta: '{color13}' 28 | cyan: '{color14}' 29 | white: '{color15}' 30 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/templates/kitty: -------------------------------------------------------------------------------- 1 | foreground {fg} 2 | background {bg} 3 | color0 {color0} 4 | color1 {color1} 5 | color2 {color2} 6 | color3 {color3} 7 | color4 {color4} 8 | color5 {color5} 9 | color6 {color6} 10 | color7 {color7} 11 | color8 {color8} 12 | color9 {color9} 13 | color10 {color10} 14 | color11 {color11} 15 | color12 {color12} 16 | color13 {color13} 17 | color14 {color14} 18 | color15 {color15} 19 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/templates/polybar: -------------------------------------------------------------------------------- 1 | [colors] 2 | background = {bg} 3 | foreground = {fg} 4 | color0 = {color0} 5 | color1 = {color1} 6 | color2 = {color2} 7 | color3 = {color3} 8 | color4 = {color4} 9 | color5 = {color5} 10 | color6 = {color6} 11 | color7 = {color7} 12 | color8 = {color8} 13 | color9 = {color9} 14 | color10 = {color10} 15 | color11 = {color11} 16 | color12 = {color12} 17 | color13 = {color13} 18 | color14 = {color14} 19 | color15 = {color15} 20 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/templates/sequences: -------------------------------------------------------------------------------- 1 | \033]4;0;{color0}\033\\\033]4;1;{color1}\033\\\033]4;2;{color2}\033\\\033]4;3;{color3}\033\\\033]4;4;{color4}\033\\\033]4;5;{color5}\033\\\033]4;6;{color6}\033\\\033]4;7;{color7}\033\\\033]4;8;{color8}\033\\\033]4;9;{color9}\033\\\033]4;10;{color10}\033\\\033]4;11;{color11}\033\\\033]4;12;{color12}\033\\\033]4;13;{color13}\033\\\033]4;14;{color14}\033\\\033]4;15;{color15}\033\\\033]10;{fg}\033\\\033]11;{bg}\033\\ 2 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/templates/var.css: -------------------------------------------------------------------------------- 1 | /* CSS variables 2 | Generated by 'colorer' */ 3 | :root {{ 4 | --wallpaper: url("{wp}"); 5 | 6 | /* Special */ 7 | --background: {bg}; 8 | --foreground: {fg}; 9 | --cursor: {fg}; 10 | 11 | /* Colors */ 12 | --color0: {color0}; 13 | --color1: {color1}; 14 | --color2: {color2}; 15 | --color3: {color3}; 16 | --color4: {color4}; 17 | --color5: {color5}; 18 | --color6: {color6}; 19 | --color7: {color7}; 20 | --color8: {color8}; 21 | --color9: {color9}; 22 | --color10: {color10}; 23 | --color11: {color11}; 24 | --color12: {color12}; 25 | --color13: {color13}; 26 | --color14: {color14}; 27 | --color15: {color15}; 28 | }} 29 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/colorer/templates/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 9" 4 | 5 | set completion-bg "{bg}" 6 | set completion-fg "{fg}" 7 | set completion-group-bg "{bg}" 8 | set completion-group-fg "{color2}" 9 | set completion-highlight-bg "{fg}" 10 | set completion-highlight-fg "{bg}" 11 | 12 | set recolor-lightcolor "{bg}" 13 | set recolor-darkcolor "{fg}" 14 | set default-bg "{bg}" 15 | 16 | set inputbar-bg "{bg}" 17 | set inputbar-fg "{fg}" 18 | set notification-bg "{bg}" 19 | set notification-fg "{fg}" 20 | set notification-error-bg "{color1}" 21 | set notification-error-fg "{fg}" 22 | set notification-warning-bg "{color1}" 23 | set notification-warning-fg "{fg}" 24 | set statusbar-bg "{bg}" 25 | set statusbar-fg "{fg}" 26 | set index-bg "{bg}" 27 | set index-fg "{fg}" 28 | set index-active-bg "{fg}" 29 | set index-active-fg "{bg}" 30 | set render-loading-bg "{bg}" 31 | set render-loading-fg "{fg}" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/kitty/colors: -------------------------------------------------------------------------------- 1 | foreground #6c7680 2 | background #fafafa 3 | color0 #ffffff 4 | color1 #f51818 5 | color2 #86b300 6 | color3 #fa8d3e 7 | color4 #399ee6 8 | color5 #f07171 9 | color6 #4cbf99 10 | color7 #6c7680 11 | color8 #cbccc6 12 | color9 #ff3333 13 | color10 #bae67e 14 | color11 #ffa759 15 | color12 #73d0ff 16 | color13 #f28779 17 | color14 #95e6cb 18 | color15 #6c7680 19 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/kitty/kitty.conf: -------------------------------------------------------------------------------- 1 | include colors 2 | allow_remote_control yes 3 | 4 | font_family SFMono Nerd Font Mono 5 | italic_font auto 6 | bold_font auto 7 | bold_italic_font auto 8 | font_size 11 9 | 10 | adjust_line_height 9 11 | resize_in_steps yes 12 | placement_strategy top-left 13 | 14 | cursor_shape beam 15 | 16 | window_padding_width 30 17 | initial_window_width 400 18 | initial_window_height 320 19 | remember_window_size no 20 | 21 | listen_on unix:/tmp/mykitty 22 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | polybar -r base & 10 | echo "Polybar launched..." 11 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration{ 2 | font: "Google Sans 14"; 3 | location: 7; 4 | yoffset: -55; 5 | xoffset: 10; 6 | show-icons: false; 7 | } 8 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/sxhkd/inner_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gaps=$(bspc config -d focused window_gap) 3 | [[ $(( $gaps$1 )) -ge 0 ]] && bspc config -d focused window_gap $(( $gaps$1 )) 4 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/sxhkd/move: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | state=$(bspc query -T -n | jq '.client.state' | sed 's/\"//g') 3 | interval=40 4 | 5 | if [[ "$state" == "tiled" ]]; then 6 | echo $state 7 | case $1 in 8 | west) bspc node -s west;; 9 | south) bspc node -s south;; 10 | north) bspc node -s north;; 11 | east) bspc node -s east 12 | esac 13 | fi 14 | 15 | if [[ "$state" == "floating" ]]; then 16 | case $1 in 17 | west) bspc node -v $(( 0 - $interval )) 0;; 18 | south) bspc node -v 0 $interval;; 19 | north) bspc node -v 0 $(( 0 - $interval ));; 20 | east) bspc node -v $interval 0 21 | esac 22 | fi 23 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/sxhkd/outer_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | left=$(bspc config ${@:2} left_padding) 3 | right=$(bspc config ${@:2} right_padding) 4 | top=$(bspc config ${@:2} top_padding) 5 | bottom=$(bspc config ${@:2} bottom_padding) 6 | 7 | if [[ ${1:0:1} = '=' ]] 8 | then 9 | n_left=${1:1} 10 | n_right=${1:1} 11 | n_top=${1:1} 12 | n_bottom=${1:1} 13 | else 14 | [[ $(($left$1)) -ge 0 ]] && n_left=$(($left$1)) 15 | [[ $(($right$1)) -ge 0 ]] && n_right=$(($right$1)) 16 | [[ $(($top$1)) -ge 0 ]] && n_top=$(($top$1)) 17 | [[ $(($bottom$1)) -ge 0 ]] && n_bottom=$(($bottom$1)) 18 | fi 19 | 20 | 21 | bspc config ${@:2} left_padding $n_left && echo $n_left 22 | bspc config ${@:2} right_padding $n_right && echo $n_right 23 | bspc config ${@:2} top_padding $n_top && echo $n_top 24 | bspc config ${@:2} bottom_padding $n_bottom && echo $n_bottom 25 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/sxhkd/resize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | size=${2:-'10'} 4 | dir=$1 5 | 6 | # Find current window mode 7 | is_tiled() { 8 | bspc query -T -n | grep -q '"state":"tiled"' 9 | } 10 | # If the window is floating, move it 11 | if ! is_tiled; then 12 | #only parse input if window is floating,tiled windows accept input as is 13 | case "$dir" in 14 | west) switch="-w" 15 | sign="-" 16 | ;; 17 | east) switch="-w" 18 | sign="+" 19 | ;; 20 | north) switch="-h" 21 | sign="-" 22 | ;; 23 | south) switch="-h" 24 | sign="+" 25 | ;; 26 | esac 27 | xdo resize ${switch} ${sign}${size} 28 | 29 | # Otherwise, window is tiled: switch with window in given direction 30 | else 31 | case "$dir" in 32 | west) bspc node @west -r -$size || bspc node @east -r -${size} 33 | ;; 34 | east) bspc node @west -r +$size || bspc node @east -r +${size} 35 | ;; 36 | north) bspc node @south -r -$size || bspc node @north -r -${size} 37 | ;; 38 | south) bspc node @south -r +$size || bspc node @north -r +${size} 39 | ;; 40 | esac 41 | fi 42 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/xsettingsd/xsettingsd.conf: -------------------------------------------------------------------------------- 1 | Net/ThemeName "Flat-Remix-GTK-Cyan-Light" 2 | -------------------------------------------------------------------------------- /sixtyten_desktop/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 9" 4 | 5 | set completion-bg "#fafafa" 6 | set completion-fg "#6c7680" 7 | set completion-group-bg "#fafafa" 8 | set completion-group-fg "#86b300" 9 | set completion-highlight-bg "#6c7680" 10 | set completion-highlight-fg "#fafafa" 11 | 12 | set recolor-lightcolor "#fafafa" 13 | set recolor-darkcolor "#6c7680" 14 | set default-bg "#fafafa" 15 | 16 | set inputbar-bg "#fafafa" 17 | set inputbar-fg "#6c7680" 18 | set notification-bg "#fafafa" 19 | set notification-fg "#6c7680" 20 | set notification-error-bg "#f51818" 21 | set notification-error-fg "#6c7680" 22 | set notification-warning-bg "#f51818" 23 | set notification-warning-fg "#6c7680" 24 | set statusbar-bg "#fafafa" 25 | set statusbar-fg "#6c7680" 26 | set index-bg "#fafafa" 27 | set index-fg "#6c7680" 28 | set index-active-bg "#6c7680" 29 | set index-active-fg "#fafafa" 30 | set render-loading-bg "#fafafa" 31 | set render-loading-fg "#6c7680" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /sixtyten_desktop/.inputrc: -------------------------------------------------------------------------------- 1 | # When pressing up or down arrow, show only history that 2 | # matches what was already written 3 | "\e[A":history-search-backward 4 | "\e[B":history-search-forward 5 | 6 | "\C-?": backward-kill-word 7 | "\e[3;5~": kill-word 8 | 9 | # Disable bell 10 | set bell-style none 11 | 12 | # set show-mode-in-prompt on 13 | -------------------------------------------------------------------------------- /sixtyten_desktop/.profile: -------------------------------------------------------------------------------- 1 | if [ -n "$BASH_VERSION" ]; then 2 | # include .bashrc if it exists 3 | if [ -f "$HOME/.bashrc" ]; then 4 | . "$HOME/.bashrc" 5 | fi 6 | fi 7 | 8 | # set PATH so it includes user's private bin if it exists 9 | if [ -d "$HOME/.local/bin" ] ; then 10 | PATH="$HOME/.local/bin:$PATH" 11 | fi 12 | 13 | # constants 14 | export TERMINAL="kitty" 15 | export EDITOR="nvim" 16 | export BROWSER="firefox" 17 | export SCRIPT_FOLDER="$HOME/.bin" 18 | export WALLPAPER_FOLDER="$HOME/Pictures/Wallpapers/" 19 | 20 | # add scripts to path 21 | PATH="$SCRIPT_FOLDER:$PATH" 22 | PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH" 23 | 24 | export QT_QPA_PLATFORMTHEME=gnome 25 | export GTK2_RC_FILES=$HOME/.gtkrc-2.0 26 | -------------------------------------------------------------------------------- /sixtyten_desktop/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -f ~/.xprofile ] && . ~/.xprofile 3 | exec bspwm 4 | -------------------------------------------------------------------------------- /sixtyten_desktop/.xprofile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xrdb -merge ~/.cache/colorer/Xresources 3 | # lock-screen-timer & 4 | # timemanager & 5 | # setxkbmap fr 6 | xsetroot -cursor_name left_ptr 7 | xset +fp /usr/share/fonts/misc/ 8 | xset fp rehash 9 | xset b off 10 | xset r rate 400 100 11 | -------------------------------------------------------------------------------- /sixtyten_desktop/README.md: -------------------------------------------------------------------------------- 1 | # `sweet` 2 | > Soft and sweet, just like candy. 3 | 4 | # Screenshots 5 | 6 | ![screenshot](screenshot.png) 7 | 8 | # Some info 9 | 10 | + Colorscheme: [`everblush`](https://github.com/kiddae/colorer-colorschemes/blob/main/everblush) 11 | + Wallpaper: [link](https://raw.githubusercontent.com/kiddae/wallpapers/main/music/colorized/4t2qli7sxom61_c_inv_everblush.png) 12 | + Font: `SF Pro Text`/`SF Pro Display` and `SF Mono` 13 | + Shown in the screenshots: `bspwm`, `polybar`, `kitty`, `neovim` 14 | 15 | -------------------------------------------------------------------------------- /sixtyten_desktop/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/sixtyten_desktop/screenshot.png -------------------------------------------------------------------------------- /sweet/.Xresources: -------------------------------------------------------------------------------- 1 | #include ".config/colorer/out/Xresources" 2 | Xft.dpi: 96 3 | -------------------------------------------------------------------------------- /sweet/.bin/bunnyfetch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Tiny colored fetch script 3 | # Requires Typicons Font to display the icons 4 | # elenapan @ github 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | i=$'\e[3m' 16 | 17 | # Items 18 | sep= 19 | s=$d$f0$sep$t 20 | 21 | w= 22 | wifiname="$(iwgetid | cut -d \" -f2)" 23 | 24 | h= 25 | wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" 26 | 27 | k= 28 | kernel="$(uname -r | cut -d '-' -f1)" 29 | 30 | r= 31 | resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)" 32 | 33 | sh= 34 | shell=$(basename $SHELL) 35 | 36 | # (\ /) 37 | # ( · ·) 38 | # c(")(") 39 | 40 | # (\ /) 41 | # ( . .) 42 | # c(")(") 43 | 44 | tput clear 45 | cat << EOF 46 | 47 | $d$f1$h $t$i$wmname$t 48 | (\ /) $f3$k $t$i$kernel$t 49 | ( $d. .$t) $f2$sh $t$i$shell$t 50 | c($f1"$t)($f1"$t) $f5$r $t$i$resolution$t 51 | $f4$w $t$i$wifiname$t 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /sweet/.bin/chvolume: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ "$1" = "up" ]] 3 | then 4 | pamixer -i $2 5 | elif [[ "$1" = "down" ]] 6 | then 7 | pamixer -d $2 8 | else 9 | echo "No argument/wrong arguments" 10 | exit 1 11 | fi 12 | volume=$(pamixer --get-volume) 13 | dunstify "Volume" "Volume: ${volume}%" -h int:value:$volume -h string:x-dunst-stack-tag:volume 14 | -------------------------------------------------------------------------------- /sweet/.bin/cl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Nice and clean colorscheme script 4 | 5 | f=3 b=4 6 | for j in f b; do 7 | for i in {0..7}; do 8 | printf -v $j$i %b "\e[${!j}${i}m" 9 | done 10 | done 11 | d=$'\e[1m' 12 | t=$'\e[0m' 13 | v=$'\e[7m' 14 | 15 | cat << EOF 16 | 17 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 18 | $f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t 19 | $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t $ft███$d$f7██$t 20 | 21 | EOF 22 | -------------------------------------------------------------------------------- /sweet/.bin/getxres: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xrdb -query | grep $1 | head -n1 | cut -d':' -f2 | sed 's/ //g' 3 | -------------------------------------------------------------------------------- /sweet/.bin/launcher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # theme=~/.cache/colorer/rofi.rasi 3 | # theme=~/.config/rofi/san.rasi 4 | # rofi -show run -theme $theme 5 | prompt 'Launcher' --run 6 | -------------------------------------------------------------------------------- /sweet/.bin/playerctl_controls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | play_icon=$2 3 | pause_icon=$3 4 | prev_icon=$4 5 | next_icon=$5 6 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && color=$(polybar --dump=foreground base 2>/dev/null) || color=$(polybar --dump=line-color base 2>/dev/null) 7 | player=$1 8 | [[ $(playerctl status -p $1 2>/dev/null) = "Playing" ]] && status=$pause_icon || status=$play_icon 9 | string=$(echo %{A1:playerctl previous -p $1:}$prev_icon%{A}%{A1:playerctl play-pause -p $1:} $status%{A}%{A1:playerctl next -p $1:} $next_icon%{A}%{-o}) 10 | 11 | echo $string 12 | -------------------------------------------------------------------------------- /sweet/.bin/powermenu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | choices="Poweroff\nQuit\nReboot\nLock\nSuspend" 3 | # chosen=$(echo -e $choices | rofi -dmenu -i -p "Power Menu" -theme ~/.cache/colorer/rofi.rasi) 4 | fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 5 | bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 6 | chosen=$(echo -e $choices | prompt "Powermenu") 7 | echo "$chosen" 8 | 9 | case "$chosen" in 10 | Lock) lock ;; 11 | Suspend) systemctl suspend ;; 12 | Quit) bspc quit ;; 13 | Poweroff) poweroff ;; 14 | Reboot) reboot ;; 15 | esac 16 | -------------------------------------------------------------------------------- /sweet/.bin/prompt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Use as dmenu (by piping values separated by \n to it) 4 | # $1 is the text shown in the prompt (defaults as 'dmenu') 5 | # if $2 is '--run', runs dmenu_run instead 6 | 7 | fg=$(colorer -g fg) 8 | bg=$(colorer -g bg) 9 | [[ $1 == '' ]] && prompt='dmenu' || prompt=$1 10 | args="-fn mono-11 -h 40 -nb ${bg} -nf ${fg} -sb ${fg} -sf ${bg} -p ${prompt} -i " 11 | # [[ $2 == '--run' ]] && dmenu_run $args || dmenu $args 12 | [[ $2 == '--run' ]] && rofi -show run -theme ~/.config/colorer/out/rofi.rasi || rofi -dmenu -p "$1" -theme ~/.config/colorer/out/rofi.rasi -i 13 | -------------------------------------------------------------------------------- /sweet/.bin/screen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # file=/tmp/$(date +%s).png 4 | # default_dir=~/Pictures/Screenshots 5 | # 6 | # sleep 0.6 7 | # maim -u $1 $file 8 | # 9 | # # dir=$(find ~ -type d 2>/dev/null | rofi -dmenu -i -p "Choose a directory" -theme ~/.cache/colorer/rofi.rasi) 10 | # fg=$(xrdb -query | grep foreground | cut -d':' -f2 | sed 's/ //g') 11 | # bg=$(xrdb -query | grep background | cut -d':' -f2 | sed 's/ //g') 12 | # #dir=$(find ~ -type d 2>/dev/null | prompt "Where?") 13 | # dir=$default_dir 14 | # 15 | # if [[ -n $dir ]]; then 16 | # mv $file $dir 17 | # else 18 | # mv $file $default_dir 19 | # fi 20 | 21 | file=~/Pictures/Screenshots/$(date +%s).png 22 | maim -u $1 $file 23 | 24 | xclip -selection clipboard -target image/png -i $file 25 | 26 | notify-send "Took a screenshot" "saved to ${file} and copied to clipboard." -i $file 27 | -------------------------------------------------------------------------------- /sweet/.bin/toggle_bar: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xdo show -N Polybar; pkill -f polybar-autohide || polybar-autohide &>/dev/null 3 | -------------------------------------------------------------------------------- /sweet/.bin/volume_status: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | volume=$(pamixer --get-volume) 3 | volume=$(($volume + 0)) 4 | if [[ $volume -lt 33 ]] 5 | then 6 | icon= 7 | elif [[ $volume -lt 66 ]] 8 | then 9 | icon= 10 | else 11 | icon= 12 | fi 13 | if [[ $(pamixer --get-volume-human) = "muted" ]] 14 | then 15 | icon="%{F$(colorer -g color8)}%{F-}" 16 | fi 17 | echo $icon 18 | -------------------------------------------------------------------------------- /sweet/.cal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git=`which git` 4 | while read -ra Z; do 5 | if [[ "${Z[@]}" == \*\ * ]]; then 6 | gbranch="${Z[1]}" 7 | break 8 | fi 9 | done <<< "$($git branch 2> /dev/null)" 10 | 11 | ((cno=0)) 12 | while read -r Z; do 13 | [[ "$Z" == commit* ]] && ((cno+=1)) 14 | done <<< "$($git log 2> /dev/null)" 15 | 16 | $git rev-list --left-right --count origin/main..."$gbranch" >/dev/null 2>&1 17 | if [ "$?" == 0 ];then 18 | rev=`$git rev-list --left-right --count origin/main..."$gbranch"`; 19 | beh=$(cut -f1 <<< $rev ) 20 | ahe=$(cut -f2 <<< $rev ) 21 | 22 | echo -e "$($git diff --cached --name-only | wc -l)"\ 23 | "$($git diff --stat origin/main.. | wc -l)"\ 24 | "$($git diff --name-status | wc -l)"\ 25 | "$($git ls-files --others --exclude-standard | wc -l)"\ 26 | "$gbranch"\ 27 | "${cno}"\ 28 | "$beh"\ 29 | "$ahe" 30 | else 31 | beh="-1" 32 | ahe="-1" 33 | echo -e "$($git diff --cached --name-only | wc -l)"\ 34 | "0"\ 35 | "$($git diff --name-status | wc -l)"\ 36 | "$($git ls-files --others --exclude-standard | wc -l)"\ 37 | "$gbranch"\ 38 | "${cno}"\ 39 | "$beh"\ 40 | "$ahe" 41 | fi 42 | 43 | -------------------------------------------------------------------------------- /sweet/.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # wm config 4 | bspc config border_width 1 5 | bspc config window_gap 15 6 | out=0 7 | # bspc config top_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out + $(bspc config window_gap))) 8 | bspc config top_padding $(( $(polybar --dump=height base 2>/dev/null) + $(polybar --dump=offset-y base 2>/dev/null)+ $out)) 9 | bspc config split_ratio 0.50 10 | 11 | bspc config focus_follows_pointer true 12 | 13 | bspc monitor -d 1 2 3 4 5 6 14 | 15 | # rules 16 | bspc rule -a Zathura state=tiled 17 | 18 | inactive=$(colorer -g bg) 19 | active=$(colorer -g color8) 20 | bspc config normal_border_color "$inactive" 21 | bspc config focused_border_color "$active" 22 | # bspc config focused_border_color "$inactive" 23 | bspc config presel_feedback_color "$inactive" 24 | 25 | # startup 26 | sxhkd -m 1 & 27 | 28 | ~/.fehbg & 29 | # hsetroot -solid $(getxres background) 30 | # ~/.config/polybar/launch.sh & 31 | pkill polybar; polybar -r & 32 | picom & 33 | # mpDris2 & 34 | # pulseeffects --gapplication-service & 35 | dunst & 36 | pgrep xflux || xflux -l 43.36 -g 1.26 & 37 | udiskie & 38 | # pkill 2bspwm ; 2bspwm & 39 | pkill flashfocus ; flashfocus & 40 | pgrep xfce4-power-manager || xfce4-power-manager & 41 | pgrep xautolock || xautolock -locker "dm-tool lock" & 42 | -------------------------------------------------------------------------------- /sweet/.config/colorer/README.md: -------------------------------------------------------------------------------- 1 | # Example files for [colorer](https://github.com/kiddae/colorer) 2 | 3 | This includes colorschemes, templates for various config files and commands for colorer. 4 | 5 | The repo is organized as the `~/.config/colorer/` folder should be. 6 | -------------------------------------------------------------------------------- /sweet/.config/colorer/commands: -------------------------------------------------------------------------------- 1 | echo "Applying changes" 2 | sed -E "s/colorscheme .+/colorscheme {vim}/g" ~/.config/nvim/global.vim -i 3 | sed -E "s/'colorscheme': '.+',$/'colorscheme': '{lightline}',/g" ~/.config/nvim/plug-config/lightline.vim -i 4 | echo -ne $(cat ~/.config/colorer/out/sequences) | tee /dev/pts/[0-9]* 5 | #cp {wp} /usr/share/sddm/themes/sugar-candy/Backgrounds/Wall.png 6 | cp {wp} /etc/lightdm/Wall.png 7 | cp ~/.config/colorer/out/lightdm-mini-greeter.conf /etc/lightdm/lightdm-mini-greeter.conf 8 | cp ~/.config/colorer/out/dunstrc ~/.config/dunst/dunstrc 9 | cp ~/.config/colorer/out/kitty ~/.config/kitty/colors 10 | cp ~/.config/colorer/out/userChrome.css ~/.mozilla/firefox/c6xdm17d.default-release/chrome/userChrome.css 11 | cp ~/.config/colorer/out/zathurarc ~/.config/zathura/zathurarc 12 | echo "Reloading everything" 13 | xrdb -merge ~/.config/colorer/out/Xresources 14 | # pkill -USR1 polybar 15 | killall dunst && dunst & 16 | feh --bg-fill {wp} 17 | bspc wm -r 18 | # echo "Generating GTK theme..." 19 | # oomox-cli /opt/oomox/scripted_colors/xresources/xresources-reverse -t ~/.local/share/themes/ -m all -d true & 20 | -------------------------------------------------------------------------------- /sweet/.config/colorer/templates/Xresources: -------------------------------------------------------------------------------- 1 | *background: {bg} 2 | *foreground: {fg} 3 | ! Black + DarkGrey 4 | *color0: {color0} 5 | *color8: {color8} 6 | ! DarkRed + Red 7 | *color1: {color1} 8 | *color9: {color9} 9 | ! DarkGreen + Green 10 | *color2: {color2} 11 | *color10: {color10} 12 | ! DarkYellow + Yellow 13 | *color3: {color3} 14 | *color11: {color11} 15 | ! DarkBlue + Blue 16 | *color4: {color4} 17 | *color12: {color12} 18 | ! DarkMagenta + Magenta 19 | *color5: {color5} 20 | *color13: {color13} 21 | ! DarkCyan + Cyan 22 | *color6: {color6} 23 | *color14: {color14} 24 | ! LightGrey + White 25 | *color7: {color7} 26 | *color15: {color15} 27 | -------------------------------------------------------------------------------- /sweet/.config/colorer/templates/alacritty: -------------------------------------------------------------------------------- 1 | colors: 2 | # Default colors 3 | primary: 4 | background: '{bg}' 5 | foreground: '{fg}' 6 | 7 | # Normal colors 8 | normal: 9 | # NOTE: Use '#131613' for the `black` color if you'd like to see 10 | # black text on the background. 11 | black: '{color0}' 12 | red: '{color1}' 13 | green: '{color2}' 14 | yellow: '{color3}' 15 | blue: '{color4}' 16 | magenta: '{color5}' 17 | cyan: '{color6}' 18 | white: '{color7}' 19 | 20 | # Bright colors 21 | bright: 22 | black: '{color8}' 23 | red: '{color9}' 24 | green: '{color10}' 25 | yellow: '{color11}' 26 | blue: '{color12}' 27 | magenta: '{color13}' 28 | cyan: '{color14}' 29 | white: '{color15}' 30 | -------------------------------------------------------------------------------- /sweet/.config/colorer/templates/kitty: -------------------------------------------------------------------------------- 1 | foreground {fg} 2 | background {bg} 3 | color0 {color0} 4 | color1 {color1} 5 | color2 {color2} 6 | color3 {color3} 7 | color4 {color4} 8 | color5 {color5} 9 | color6 {color6} 10 | color7 {color7} 11 | color8 {color8} 12 | color9 {color9} 13 | color10 {color10} 14 | color11 {color11} 15 | color12 {color12} 16 | color13 {color13} 17 | color14 {color14} 18 | color15 {color15} 19 | -------------------------------------------------------------------------------- /sweet/.config/colorer/templates/polybar: -------------------------------------------------------------------------------- 1 | [colors] 2 | background = {bg} 3 | foreground = {fg} 4 | color0 = {color0} 5 | color1 = {color1} 6 | color2 = {color2} 7 | color3 = {color3} 8 | color4 = {color4} 9 | color5 = {color5} 10 | color6 = {color6} 11 | color7 = {color7} 12 | color8 = {color8} 13 | color9 = {color9} 14 | color10 = {color10} 15 | color11 = {color11} 16 | color12 = {color12} 17 | color13 = {color13} 18 | color14 = {color14} 19 | color15 = {color15} 20 | -------------------------------------------------------------------------------- /sweet/.config/colorer/templates/sequences: -------------------------------------------------------------------------------- 1 | \033]4;0;{color0}\033\\\033]4;1;{color1}\033\\\033]4;2;{color2}\033\\\033]4;3;{color3}\033\\\033]4;4;{color4}\033\\\033]4;5;{color5}\033\\\033]4;6;{color6}\033\\\033]4;7;{color7}\033\\\033]4;8;{color8}\033\\\033]4;9;{color9}\033\\\033]4;10;{color10}\033\\\033]4;11;{color11}\033\\\033]4;12;{color12}\033\\\033]4;13;{color13}\033\\\033]4;14;{color14}\033\\\033]4;15;{color15}\033\\\033]10;{fg}\033\\\033]11;{bg}\033\\ 2 | -------------------------------------------------------------------------------- /sweet/.config/colorer/templates/var.css: -------------------------------------------------------------------------------- 1 | /* CSS variables 2 | Generated by 'colorer' */ 3 | :root {{ 4 | --wallpaper: url("{wp}"); 5 | 6 | /* Special */ 7 | --background: {bg}; 8 | --foreground: {fg}; 9 | --cursor: {fg}; 10 | 11 | /* Colors */ 12 | --color0: {color0}; 13 | --color1: {color1}; 14 | --color2: {color2}; 15 | --color3: {color3}; 16 | --color4: {color4}; 17 | --color5: {color5}; 18 | --color6: {color6}; 19 | --color7: {color7}; 20 | --color8: {color8}; 21 | --color9: {color9}; 22 | --color10: {color10}; 23 | --color11: {color11}; 24 | --color12: {color12}; 25 | --color13: {color13}; 26 | --color14: {color14}; 27 | --color15: {color15}; 28 | }} 29 | -------------------------------------------------------------------------------- /sweet/.config/colorer/templates/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 9" 4 | 5 | set completion-bg "{bg}" 6 | set completion-fg "{fg}" 7 | set completion-group-bg "{bg}" 8 | set completion-group-fg "{color2}" 9 | set completion-highlight-bg "{fg}" 10 | set completion-highlight-fg "{bg}" 11 | 12 | set recolor-lightcolor "{bg}" 13 | set recolor-darkcolor "{fg}" 14 | set default-bg "{bg}" 15 | 16 | set inputbar-bg "{bg}" 17 | set inputbar-fg "{fg}" 18 | set notification-bg "{bg}" 19 | set notification-fg "{fg}" 20 | set notification-error-bg "{color1}" 21 | set notification-error-fg "{fg}" 22 | set notification-warning-bg "{color1}" 23 | set notification-warning-fg "{fg}" 24 | set statusbar-bg "{bg}" 25 | set statusbar-fg "{fg}" 26 | set index-bg "{bg}" 27 | set index-fg "{fg}" 28 | set index-active-bg "{fg}" 29 | set index-active-fg "{bg}" 30 | set render-loading-bg "{bg}" 31 | set render-loading-fg "{fg}" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /sweet/.config/kitty/colors: -------------------------------------------------------------------------------- 1 | foreground #dadada 2 | background #181f21 3 | color0 #22292b 4 | color1 #e06e6e 5 | color2 #8ccf7e 6 | color3 #e5c76b 7 | color4 #67b0e8 8 | color5 #c47fd5 9 | color6 #6da4cd 10 | color7 #b3b9b8 11 | color8 #3b4244 12 | color9 #ef7d7d 13 | color10 #9bdead 14 | color11 #f4d67a 15 | color12 #6cb5ed 16 | color13 #ce89df 17 | color14 #67cbe7 18 | color15 #bdc3c2 19 | -------------------------------------------------------------------------------- /sweet/.config/kitty/kitty.conf: -------------------------------------------------------------------------------- 1 | include colors 2 | font_family SFMono 3 | italic_font auto 4 | bold_font auto 5 | bold_italic_font auto 6 | font_size 10 7 | 8 | cursor_shape beam 9 | 10 | window_padding_width 35 11 | initial_window_width 400 12 | initial_window_height 320 13 | remember_window_size no 14 | -------------------------------------------------------------------------------- /sweet/.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | polybar -r base & 10 | echo "Polybar launched..." 11 | -------------------------------------------------------------------------------- /sweet/.config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration{ 2 | font: "SF Pro Text Light 11"; 3 | location: 2; 4 | yoffset: 65; 5 | show-icons: false; 6 | } 7 | -------------------------------------------------------------------------------- /sweet/.config/sxhkd/inner_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gaps=$(bspc config -d focused window_gap) 3 | [[ $(( $gaps$1 )) -ge 0 ]] && bspc config -d focused window_gap $(( $gaps$1 )) 4 | -------------------------------------------------------------------------------- /sweet/.config/sxhkd/move: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | state=$(bspc query -T -n | jq '.client.state' | sed 's/\"//g') 3 | interval=40 4 | 5 | if [[ "$state" == "tiled" ]]; then 6 | echo $state 7 | case $1 in 8 | west) bspc node -s west;; 9 | south) bspc node -s south;; 10 | north) bspc node -s north;; 11 | east) bspc node -s east 12 | esac 13 | fi 14 | 15 | if [[ "$state" == "floating" ]]; then 16 | case $1 in 17 | west) bspc node -v $(( 0 - $interval )) 0;; 18 | south) bspc node -v 0 $interval;; 19 | north) bspc node -v 0 $(( 0 - $interval ));; 20 | east) bspc node -v $interval 0 21 | esac 22 | fi 23 | -------------------------------------------------------------------------------- /sweet/.config/sxhkd/outer_gaps: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | left=$(bspc config ${@:2} left_padding) 3 | right=$(bspc config ${@:2} right_padding) 4 | top=$(bspc config ${@:2} top_padding) 5 | bottom=$(bspc config ${@:2} bottom_padding) 6 | 7 | if [[ ${1:0:1} = '=' ]] 8 | then 9 | n_left=${1:1} 10 | n_right=${1:1} 11 | n_top=${1:1} 12 | n_bottom=${1:1} 13 | else 14 | [[ $(($left$1)) -ge 0 ]] && n_left=$(($left$1)) 15 | [[ $(($right$1)) -ge 0 ]] && n_right=$(($right$1)) 16 | [[ $(($top$1)) -ge 0 ]] && n_top=$(($top$1)) 17 | [[ $(($bottom$1)) -ge 0 ]] && n_bottom=$(($bottom$1)) 18 | fi 19 | 20 | 21 | bspc config ${@:2} left_padding $n_left && echo $n_left 22 | bspc config ${@:2} right_padding $n_right && echo $n_right 23 | bspc config ${@:2} top_padding $n_top && echo $n_top 24 | bspc config ${@:2} bottom_padding $n_bottom && echo $n_bottom 25 | -------------------------------------------------------------------------------- /sweet/.config/sxhkd/resize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | size=${2:-'10'} 4 | dir=$1 5 | 6 | # Find current window mode 7 | is_tiled() { 8 | bspc query -T -n | grep -q '"state":"tiled"' 9 | } 10 | # If the window is floating, move it 11 | if ! is_tiled; then 12 | #only parse input if window is floating,tiled windows accept input as is 13 | case "$dir" in 14 | west) switch="-w" 15 | sign="-" 16 | ;; 17 | east) switch="-w" 18 | sign="+" 19 | ;; 20 | north) switch="-h" 21 | sign="-" 22 | ;; 23 | south) switch="-h" 24 | sign="+" 25 | ;; 26 | esac 27 | xdo resize ${switch} ${sign}${size} 28 | 29 | # Otherwise, window is tiled: switch with window in given direction 30 | else 31 | case "$dir" in 32 | west) bspc node @west -r -$size || bspc node @east -r -${size} 33 | ;; 34 | east) bspc node @west -r +$size || bspc node @east -r +${size} 35 | ;; 36 | north) bspc node @south -r -$size || bspc node @north -r -${size} 37 | ;; 38 | south) bspc node @south -r +$size || bspc node @north -r +${size} 39 | ;; 40 | esac 41 | fi 42 | -------------------------------------------------------------------------------- /sweet/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | # temporary zathura config 2 | set recolor "true" 3 | set font "monospace 9" 4 | 5 | set completion-bg "#181f21" 6 | set completion-fg "#dadada" 7 | set completion-group-bg "#181f21" 8 | set completion-group-fg "#8ccf7e" 9 | set completion-highlight-bg "#dadada" 10 | set completion-highlight-fg "#181f21" 11 | 12 | set recolor-lightcolor "#181f21" 13 | set recolor-darkcolor "#dadada" 14 | set default-bg "#181f21" 15 | 16 | set inputbar-bg "#181f21" 17 | set inputbar-fg "#dadada" 18 | set notification-bg "#181f21" 19 | set notification-fg "#dadada" 20 | set notification-error-bg "#e06e6e" 21 | set notification-error-fg "#dadada" 22 | set notification-warning-bg "#e06e6e" 23 | set notification-warning-fg "#dadada" 24 | set statusbar-bg "#181f21" 25 | set statusbar-fg "#dadada" 26 | set index-bg "#181f21" 27 | set index-fg "#dadada" 28 | set index-active-bg "#dadada" 29 | set index-active-fg "#181f21" 30 | set render-loading-bg "#181f21" 31 | set render-loading-fg "#dadada" 32 | 33 | set window-title-home-tilde true 34 | set statusbar-basename true 35 | set selection-clipboard clipboard 36 | 37 | map b toggle_statusbar 38 | -------------------------------------------------------------------------------- /sweet/.inputrc: -------------------------------------------------------------------------------- 1 | # When pressing up or down arrow, show only history that 2 | # matches what was already written 3 | "\e[A":history-search-backward 4 | "\e[B":history-search-forward 5 | 6 | "\C-?": backward-kill-word 7 | "\e[3;5~": kill-word 8 | 9 | # Disable bell 10 | set bell-style none 11 | 12 | # set show-mode-in-prompt on 13 | -------------------------------------------------------------------------------- /sweet/.profile: -------------------------------------------------------------------------------- 1 | if [ -n "$BASH_VERSION" ]; then 2 | # include .bashrc if it exists 3 | if [ -f "$HOME/.bashrc" ]; then 4 | . "$HOME/.bashrc" 5 | fi 6 | fi 7 | 8 | # set PATH so it includes user's private bin if it exists 9 | if [ -d "$HOME/.local/bin" ] ; then 10 | PATH="$HOME/.local/bin:$PATH" 11 | fi 12 | 13 | # constants 14 | export TERMINAL="kitty" 15 | export EDITOR="nvim" 16 | export BROWSER="firefox" 17 | export SCRIPT_FOLDER="$HOME/.bin" 18 | export WALLPAPER_FOLDER="$HOME/Pictures/Wallpapers/" 19 | 20 | # add scripts to path 21 | PATH="$SCRIPT_FOLDER:$PATH" 22 | PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH" 23 | 24 | export QT_QPA_PLATFORMTHEME=qt5ct 25 | -------------------------------------------------------------------------------- /sweet/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -f ~/.xprofile ] && . ~/.xprofile 3 | exec bspwm 4 | -------------------------------------------------------------------------------- /sweet/.xprofile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xrdb -merge ~/.cache/colorer/Xresources 3 | # lock-screen-timer & 4 | # timemanager & 5 | # setxkbmap fr 6 | xsetroot -cursor_name left_ptr 7 | xset +fp /usr/share/fonts/misc/ 8 | xset fp rehash 9 | xset b off 10 | -------------------------------------------------------------------------------- /sweet/README.md: -------------------------------------------------------------------------------- 1 | # `sweet` 2 | > Soft and sweet, just like candy. 3 | 4 | # Screenshots 5 | 6 | ![screenshot](screenshot.png) 7 | 8 | # Some info 9 | 10 | + Colorscheme: [`everblush`](https://github.com/kiddae/colorer-colorschemes/blob/main/everblush) 11 | + Wallpaper: [link](https://raw.githubusercontent.com/kiddae/wallpapers/main/music/colorized/4t2qli7sxom61_c_inv_everblush.png) 12 | + Font: `SF Pro Text`/`SF Pro Display` and `SF Mono` 13 | + Shown in the screenshots: `bspwm`, `polybar`, `kitty`, `neovim` 14 | 15 | -------------------------------------------------------------------------------- /sweet/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kiddae/dotfiles/be3fc6e370e86f60cdb9406ad3ea72170e9982d2/sweet/screenshot.png -------------------------------------------------------------------------------- /switch_theme: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cp -r $1/. ~/ 3 | -------------------------------------------------------------------------------- /update_theme: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | script_dir=$(dirname $0) 3 | theme=$1 4 | files=$(find $script_dir/$theme -type f -exec bash -c "echo {} | sed 's/.*\($theme\)\///g'" \;) 5 | files_to_treat=$(echo "$files" | xargs -I FILE bash -c "test -f ~/FILE && { cmp ~/FILE $script_dir/$theme/FILE >/dev/null || echo FILE; }") 6 | 7 | echo -e "\033[1mFiles to be copied:\033[0m" 8 | echo "$files_to_treat" | xargs -I FILE bash -c "echo ~/FILE -\> $script_dir/$theme/FILE" 9 | if [ "${2}" != "-n" ]; then 10 | echo -e "\033[1mCopying files...\033[0m" 11 | echo "$files_to_treat" | xargs -I FILE bash -c "cp ~/FILE $script_dir/$theme/FILE" 12 | else 13 | echo -e "\033[1mDry run, no changes made.\033[0m" 14 | fi 15 | 16 | echo -e "\033[1mChecking diff in directories.\033[0m" 17 | directories=$(find $script_dir/$theme -type d -exec bash -c "echo {} | sed 's/.*\($theme\)\///g'" \;) 18 | echo "$directories" | xargs -I FILE bash -c "diff -qr ~/FILE $script_dir/$theme/FILE | grep Only" 19 | --------------------------------------------------------------------------------