From bde9d8e1c9a6e2213fc7d40298d43a14f2e99359 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Sat, 22 May 2021 18:26:08 +0530 Subject: cleaned the repo --- alacritty/.config/alacritty/alacritty.yml | 87 ------------- bin/.bin/lay_both | 2 - bin/.bin/lay_hdmi | 2 - bin/.bin/lemonconf | 74 ----------- bin/.bin/pcolor | 3 - bin/.bin/statusbar | 45 ------- bin/.bin/update-resolv-conf.sh | 71 ----------- foot/.config/foot/foot.ini | 116 ----------------- kanshi/.config/kanshi/config | 14 -- lemonbar/launch | 5 - lemonbar/lime | 74 ----------- mako/.config/mako/config | 24 ---- rofi/.config/rofi/config | 11 -- rofi/.config/rofi/rofi-power.sh | 38 ------ rofi/.config/rofi/rofi-wifi.sh | 108 ---------------- rofi/.config/rofi/wifi | 19 --- sway/.config/sway/config | 204 ------------------------------ sway/.config/sway/statusbar | 67 ---------- wofi/.config/wofi/style.css | 39 ------ x/.Xresources | 2 +- zsh/.zshrc | 1 - 21 files changed, 1 insertion(+), 1005 deletions(-) delete mode 100755 alacritty/.config/alacritty/alacritty.yml delete mode 100755 bin/.bin/lay_both delete mode 100755 bin/.bin/lay_hdmi delete mode 100755 bin/.bin/lemonconf delete mode 100755 bin/.bin/pcolor delete mode 100755 bin/.bin/statusbar delete mode 100755 bin/.bin/update-resolv-conf.sh delete mode 100644 foot/.config/foot/foot.ini delete mode 100644 kanshi/.config/kanshi/config delete mode 100755 lemonbar/launch delete mode 100755 lemonbar/lime delete mode 100644 mako/.config/mako/config delete mode 100755 rofi/.config/rofi/config delete mode 100755 rofi/.config/rofi/rofi-power.sh delete mode 100755 rofi/.config/rofi/rofi-wifi.sh delete mode 100755 rofi/.config/rofi/wifi delete mode 100644 sway/.config/sway/config delete mode 100755 sway/.config/sway/statusbar delete mode 100644 wofi/.config/wofi/style.css diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml deleted file mode 100755 index 4f1f14f..0000000 --- a/alacritty/.config/alacritty/alacritty.yml +++ /dev/null @@ -1,87 +0,0 @@ -colors: - # Default colors - primary: - background: '0x171a1f' - foreground: '0xFFFFFF' - - # Normal colors - normal: - black: '0x171a1f' - red: '0xEE4F84' - green: '0x53E2AE' - yellow: '0xF1FF52' - blue: '0x6498EF' - magenta: '0x985EFF' - cyan: '0x24D1E7' - white: '0xE5E5E5' - - # Bright colors - bright: - black: '0x20242a' - red: '0xF48FB1' - green: '0xA1EFD3' - yellow: '0xF1FA8C' - blue: '0x92B6F4' - magenta: '0xBD99FF' - cyan: '0x87DFEB' - white: '0xF8F8F2' - -background_opacity: 1.0 - -font: - normal: - family: "SF Mono" - style: Medium - bold: - family: "SF Mono" - style: Bold - italic: - family: "SF Mono" - style: Italic - - # Point size - size: 11.5 - antialias: true - autohint: true - lcdfiler: lcddefault - rgba: rgb - - offset: - x: 1 - y: 1 - glyph_offset: - x: 0 - y: 0 - -window: - padding: - x: 8 - y: 8 - -cursor: - # - ▇ Block - # - _ Underline - # - | Beam - style: Block - -scrolling: - # Maximum number of lines in the scrollback buffer. - # Specifying '0' will disable scrolling. - history: 10000 - - # Number of lines the viewport will move for every line scrolled when - # scrollback is enabled (history > 0). - multiplier: 10 - -# If `true`, bold text is drawn using the bright color variants. -draw_bold_text_with_bright_colors: true - -selection: - semantic_escape_chars: ',│`|:"'' ()[]{}<>' - save_to_clipboard: true - -live_config_reload: true - -key_bindings: - - { key: V, mods: Control|Alt, action: Paste } - - { key: C, mods: Control|Alt, action: Copy } diff --git a/bin/.bin/lay_both b/bin/.bin/lay_both deleted file mode 100755 index 21eb5ec..0000000 --- a/bin/.bin/lay_both +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --mode 1366x768 --pos 0x0 --rotate normal diff --git a/bin/.bin/lay_hdmi b/bin/.bin/lay_hdmi deleted file mode 100755 index 6ddea55..0000000 --- a/bin/.bin/lay_hdmi +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr --output eDP-1 --off --output HDMI-1 --mode 1366x768 --scale 1.4x1.4 --pos 0x0 --rotate normal diff --git a/bin/.bin/lemonconf b/bin/.bin/lemonconf deleted file mode 100755 index cb5e505..0000000 --- a/bin/.bin/lemonconf +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -# Outputs a configuration for lemonbar - -vol(){ - vol=$(pulsemixer --get-volume | awk '{print $1}') - mute=$(pulsemixer --get-mute) - if [ "$mute" == 1 ]; then - echo -e "%{F#787878}vol%{F-} muted " - elif [ "$mute" == 0 ]; then - echo -e "%{F#787878}vol%{F-} $vol% " - fi -} - -bat() { - power=$(cat /sys/class/power_supply/BAT0/capacity) - status=$(cat /sys/class/power_supply/BAT0/status) - if [ "$status" == "Charging" ]; then - echo -e "%{F#787878}bat%{F-} +$power% " - elif [ "$status" == "Discharging" ]; then - echo -e "%{F#787878}bat%{F-} $power% " - fi -} - -dte() { - dte=$(date +"%a, %b %d") - echo -e "%{F#787878}date%{F-} $dte " -} - -tie() { - tme=$(date +"%I:%M %P") - echo -e "%{F#787878}time%{F-} $tme " -} - -groups() { - cur=`xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}'` - tot=`xprop -root _NET_NUMBER_OF_DESKTOPS | awk '{print $3}'` - - for w in `seq 0 $((cur - 1))`; do line="${line}  "; done - line="${line}  " - for w in `seq $((cur + 2)) $tot`; do line="${line}  "; done - echo $line -} - -workspaces() { - all=$(bspc query -D) - occupied=$(bspc query -D -d .occupied) - current=$(bspc query -D -d .focused) - result="" - padding=" " - while IFS= read -r line; do - # Get the name of the current desktop - name="" - if [[ "$occupied" == *"$line"* ]]; - then - name="" - fi - - if [[ "$current" == *"$line"* ]]; - then - name="" - fi - - result="$result$padding" - result="$result$name" - result="$result$padding" - done <<< "$all" - echo -e "$result" -} - -while true; do - echo " $(vol) $(bat) $(tie) $(dte) %{F#787878}%{r}$(workspaces)%{F-} " - xdo above -t $(xdo id -n root) $(xdo id -n lemonbar) - sleep 3 -done diff --git a/bin/.bin/pcolor b/bin/.bin/pcolor deleted file mode 100755 index 4cc28a0..0000000 --- a/bin/.bin/pcolor +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -pcs() { for i in {0..7}; do echo -en "\e[${1}$((30+$i))m \u2588\u2588 \e[0m"; done; } -printf "\n%s\n%s\n\n" "$(pcs)" "$(pcs '1;')" diff --git a/bin/.bin/statusbar b/bin/.bin/statusbar deleted file mode 100755 index c506244..0000000 --- a/bin/.bin/statusbar +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -# Color definitions. -export BLK="\e[30m" -export RED="\e[31m" -export GRN="\e[32m" -export YLW="\e[33m" -export BLU="\e[34m" -export PUR="\e[35m" -export CYN="\e[36m" -export RST="\e[0m" - -# Other formatting. -export BLD="\e[1m" -export DIM="\e[2m" -export ITA="\e[3m" -export UND="\e[4m" -export FLS="\e[5m" -export REV="\e[7m" -export INV="\e[8m" -export STR="\e[9m" - -vol(){ - vol=$(pulsemixer --get-volume | awk '{print $1}') - echo -e "vol $vol%" -} - -bat() { - power=$(cat /sys/class/power_supply/BAT0/capacity) - echo -e "bat $power%" -} - -dte() { - dte=$(date +"%A, %B %d") - echo -e "date $dte" -} - -tie() { - tme=$(date +"%I:%M %p") - echo -e "time $tme" -} -while :; do - echo "$(vol) $(bat) $(tie) $(dte)" - sleep 2 -done diff --git a/bin/.bin/update-resolv-conf.sh b/bin/.bin/update-resolv-conf.sh deleted file mode 100755 index 16622a1..0000000 --- a/bin/.bin/update-resolv-conf.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bash -# -# Parses DHCP options from openvpn to update resolv.conf -# To use set as 'up' and 'down' script in your openvpn *.conf: -# up /etc/openvpn/update-resolv-conf -# down /etc/openvpn/update-resolv-conf -# -# Used snippets of resolvconf script by Thomas Hood -# and Chris Hanson -# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL. -# 07/2013 colin@daedrum.net Fixed intet name -# 05/2006 chlauber@bnc.ch -# -# Example envs set from openvpn: -# foreign_option_1='dhcp-option DNS 193.43.27.132' -# foreign_option_2='dhcp-option DNS 193.43.27.133' -# foreign_option_3='dhcp-option DOMAIN be.bnc.ch' -# foreign_option_4='dhcp-option DOMAIN-SEARCH bnc.local' - -## The 'type' builtins will look for file in $PATH variable, so we set the -## PATH below. You might need to directly set the path to 'resolvconf' -## manually if it still doesn't work, i.e. -## RESOLVCONF=/usr/sbin/resolvconf -export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin -RESOLVCONF=$(type -p resolvconf) - -case $script_type in - -up) - for optionname in ${!foreign_option_*} ; do - option="${!optionname}" - echo $option - part1=$(echo "$option" | cut -d " " -f 1) - if [ "$part1" == "dhcp-option" ] ; then - part2=$(echo "$option" | cut -d " " -f 2) - part3=$(echo "$option" | cut -d " " -f 3) - if [ "$part2" == "DNS" ] ; then - IF_DNS_NAMESERVERS="$IF_DNS_NAMESERVERS $part3" - fi - if [[ "$part2" == "DOMAIN" || "$part2" == "DOMAIN-SEARCH" ]] ; then - IF_DNS_SEARCH="$IF_DNS_SEARCH $part3" - fi - fi - done - R="" - if [ "$IF_DNS_SEARCH" ]; then - R="search " - for DS in $IF_DNS_SEARCH ; do - R="${R} $DS" - done - R="${R} -" - fi - - for NS in $IF_DNS_NAMESERVERS ; do - R="${R}nameserver $NS -" - done - #echo -n "$R" | $RESOLVCONF -x -p -a "${dev}" - echo -n "$R" | $RESOLVCONF -x -a "${dev}.inet" - ;; -down) - $RESOLVCONF -d "${dev}.inet" - ;; -esac - -# Workaround / jm@epiclabs.io -# force exit with no errors. Due to an apparent conflict with the Network Manager -# $RESOLVCONF sometimes exits with error code 6 even though it has performed the -# action correctly and OpenVPN shuts down. -exit 0 diff --git a/foot/.config/foot/foot.ini b/foot/.config/foot/foot.ini deleted file mode 100644 index 5b748ba..0000000 --- a/foot/.config/foot/foot.ini +++ /dev/null @@ -1,116 +0,0 @@ -# -*- conf -*- - -# font=monospace -font=Input Mono:size=7.5 -# font-bold= -# font-italic= -# font-bold-italic= -# dpi-aware=yes -initial-window-size-pixels=850x500 # Or, -# initial-window-size-chars= -# initial-window-mode=windowed -pad=20x20 -# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) -# term=foot -# login-shell=no -# workers= -# bold-text-in-bright=no -# bell=none -# word-delimiters=,│`|:"'()[]{}<> -# notify=notify-send -a foot -i foot ${title} ${body} - -[scrollback] -lines=10000 -# multiplier=3.0 -# indicator-position=relative -# indicator-format= - -[cursor] -style=block -color=111111 dcdccc -blink=no - -[mouse] -# hide-when-typing=no -# alternate-scroll-mode=yes - -[colors] -alpha=1.0 -foreground=ffffff -background=171a1f -regular0=171a1f -regular1=ee4f84 -regular2=53e2ae -regular3=f1ff52 -regular4=6498ef -regular5=985eff -regular6=24d1e7 -regular7=e5e5e5 -bright0=20242a -bright1=f48fb1 -bright2=a1efd3 -bright3=f1fa8c -bright4=92b6f4 -bright5=bd99ff -bright6=87dfeb -bright7=f8f8f2 - -[csd] -# preferred=server -# size=26 -# color= -# button-width=26 -# button-minimize-color=ff0000ff -# button-maximize-color=ff00ff00 -# button-close-color=ffff0000 - -[key-bindings] -# scrollback-up-page=Shift+Page_Up -# scrollback-up-half-page=none -# scrollback-up-line=none -# scrollback-down-page=Shift+Page_Down -# scrollback-down-half-page=none -# scrollback-down-line=none -clipboard-copy=Control+Mod1+C -clipboard-paste=Control+Mod1+V -# primary-paste=Shift+Insert -# search-start=Control+Shift+R -# font-increase=Control+9 Control+equal Control+KP_Add -# font-decrease=Control+minus Control+KP_Subtract -# font-reset=Control+0 Control+KP_0 -# spawn-terminal=Control+Shift+N -# minimize=none -# maximize=none -# fullscreen=none -# pipe-visible=[sh -c "xurls | bemenu | xargs -r firefox"] none -# pipe-scrollback=[sh -c "xurls | bemenu | xargs -r firefox"] none -# pipe-selected=[xargs -r firefox] none - -[search-bindings] -# cancel=Control+g Escape -# commit=Return -# find-prev=Control+r -# find-next=Control+s -# cursor-left=Left Control+b -# cursor-left-word=Control+Left Mod1+b -# cursor-right=Right Control+f -# cursor-right-word=Control+Right Mod1+f -# cursor-home=Home Control+a -# cursor-end=End Control+e -# delete-prev=BackSpace -# delete-prev-word=Mod1+BackSpace Control+BackSpace -# delete-next=Delete -# delete-next-word=Mod1+d Control+Delete -# extend-to-word-boundary=Control+w -# extend-to-next-whitespace=Control+Shift+W -# clipboard-paste=Control+v Control+y -# primary-paste=Shift+Insert - -[mouse-bindings] -# primary-paste=BTN_MIDDLE -# select-begin=BTN_LEFT -# select-begin-block=Control+BTN_LEFT -# select-extend=BTN_RIGHT -# select-word=BTN_LEFT-2 -# select-word-whitespace=Control+BTN_LEFT-2 -# select-row=BTN_LEFT-3 diff --git a/kanshi/.config/kanshi/config b/kanshi/.config/kanshi/config deleted file mode 100644 index c5e6aea..0000000 --- a/kanshi/.config/kanshi/config +++ /dev/null @@ -1,14 +0,0 @@ -profile multimon { - output HDMI-A-1 enable position 0,0 scale 0.8 - output eDP-1 enable position 0,1080 scale 1 - exec swaymsg workspace 3, move workspace to HDMI-A-1 -} - -profile singlemon{ - output HDMI-A-1 enable mode 1366x768 scale 0.9 - output eDP-1 disable -} - -profile { - output eDP-1 enable scale 1 -} diff --git a/lemonbar/launch b/lemonbar/launch deleted file mode 100755 index 981c88f..0000000 --- a/lemonbar/launch +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -# Launches an instance of lemonbar -killall -q lime lemonbar - -~/.config/lemonbar/lime | lemonbar -p -F "#2f2f2f" -f "JetBrains Mono Nerd Font Mono:style=medium:pixelsize=12.5:antialias=true:autohint=true:lcdfilter=lcddefault:rgba=rgb" diff --git a/lemonbar/lime b/lemonbar/lime deleted file mode 100755 index e2ce156..0000000 --- a/lemonbar/lime +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -# Outputs a configuration for lemonbar - -vol(){ - vol=$(pulsemixer --get-volume | awk '{print $1}') - mute=$(pulsemixer --get-mute) - if [ "$mute" == 1 ]; then - echo -e "%{F#787878}vol%{F-} muted " - elif [ "$mute" == 0 ]; then - echo -e "%{F#787878}vol%{F-} $vol% " - fi -} - -bat() { - power=$(cat /sys/class/power_supply/BAT0/capacity) - status=$(cat /sys/class/power_supply/BAT0/status) - if [ "$status" == "Charging" ]; then - echo -e "%{F#787878}bat%{F-} +$power% " - elif [ "$status" == "Discharging" ]; then - echo -e "%{F#787878}bat%{F-} $power% " - fi -} - -dte() { - dte=$(date +"%a, %b %d") - echo -e "%{F#787878}date%{F-} $dte " -} - -tie() { - tme=$(date +"%I:%M %P") - echo -e "%{F#787878}time%{F-} $tme " -} - -groups() { - cur=`xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}'` - tot=`xprop -root _NET_NUMBER_OF_DESKTOPS | awk '{print $3}'` - - for w in `seq 0 $((cur - 1))`; do line="${line}  "; done - line="${line}  " - for w in `seq $((cur + 2)) $tot`; do line="${line}  "; done - echo $line -} - -workspaces() { - all=$(bspc query -D) - occupied=$(bspc query -D -d .occupied) - current=$(bspc query -D -d .focused) - result="" - padding=" " - while IFS= read -r line; do - # Get the name of the current desktop - name="" - if [[ "$occupied" == *"$line"* ]]; - then - name="" - fi - - if [[ "$current" == *"$line"* ]]; - then - name="" - fi - - result="$result$padding" - result="$result$name" - result="$result$padding" - done <<< "$all" - echo -e "$result" -} - -while true; do - echo " $(vol) $(bat) $(tie) $(dte) %{F#787878}$(workspaces)%{F-}" - xdo above -t $(xdo id -n root) $(xdo id -n lemonbar) - sleep 3 -done diff --git a/mako/.config/mako/config b/mako/.config/mako/config deleted file mode 100644 index 67d20d1..0000000 --- a/mako/.config/mako/config +++ /dev/null @@ -1,24 +0,0 @@ -font=SF Mono 10 - -background-color=#2c2c2c - -width=270 -height=500 - -margin=20 -padding=15 - -border-size=6 -border-color=#9f9f9f - -default-timeout=10000 - -[urgency=low] -text-color=#b8b48a - -[urgency=normal] -text-color=#e5dbd0 - -[urgency=high] -text-color=#dfa883 -default-timeout=0 diff --git a/rofi/.config/rofi/config b/rofi/.config/rofi/config deleted file mode 100755 index b096ad7..0000000 --- a/rofi/.config/rofi/config +++ /dev/null @@ -1,11 +0,0 @@ -rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi -rofi.lines: 6 -!rofi.separator-style: none -!rofi.columns: 1 -rofi.font: Hermit 12 -!rofi.bw: 0 -!rofi.eh: 2 -!rofi.hide-scrollbar: true -rofi.auto-select: false -!rofi.display-drun:? - diff --git a/rofi/.config/rofi/rofi-power.sh b/rofi/.config/rofi/rofi-power.sh deleted file mode 100755 index 6aecdbb..0000000 --- a/rofi/.config/rofi/rofi-power.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash - -OPTIONS="Reboot\nShut-down\nSuspend\nLock" - -# source configuration or use default values - LAUNCHER="rofi -location 5 -width 15 -lines 4 -dmenu -i -p power -show-icons " - USE_LOCKER="true" - LOCKER="/home/ssaini/.config/lock.sh" - - -# Show exit wm option if exit command is provided as an argument -if [ ${#1} -gt 0 ]; then - OPTIONS="Exit window manager\n$OPTIONS" -fi - -option=`echo -e $OPTIONS | $LAUNCHER | awk '{print $1}' | tr -d '\r\n'` -if [ ${#option} -gt 0 ] -then - case $option in - Exit) - eval $1 - ;; - Reboot) - reboot - ;; - Shut-down) - poweroff - ;; - Suspend) - suspend - ;; - Lock) - light-locker-command -l - ;; - *) - ;; - esac -fi diff --git a/rofi/.config/rofi/rofi-wifi.sh b/rofi/.config/rofi/rofi-wifi.sh deleted file mode 100755 index 4694e66..0000000 --- a/rofi/.config/rofi/rofi-wifi.sh +++ /dev/null @@ -1,108 +0,0 @@ -#!/usr/bin/env bash - -# Starts a scan of available broadcasting SSIDs -# nmcli dev wifi rescan - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -FIELDS=SSID,SECURITY -POSITION=5 -#YOFF=-40 -#XOFF=-120 -FONT="Hermit 12" - -if [ -r "$DIR/config" ]; then - source ./config -elif [ -r "~/.config/rofi/config" ]; then - source "~/.config/rofi/config" -else - echo "WARNING: config file not found! Using default values." -fi - -LIST=$(nmcli --fields "$FIELDS" device wifi list | sed '/^--/d') -# For some reason rofi always approximates character width 2 short... hmmm -RWIDTH=$(($(echo "$LIST" | head -n 1 | awk '{print length($0); }')+2)) -# Dynamically change the height of the rofi menu -LINENUM=$(echo "$LIST" | wc -l) -# Gives a list of known connections so we. can parse it later -KNOWNCON=$(nmcli connection show) -# Really janky way of telling if there is currently a connection -CONSTATE=$(nmcli -fields WIFI g) - -CURRSSID=$(iwgetid -r) - -if [[ ! -z $CURRSSID ]]; then - HIGHLINE=$(echo "$(echo "$LIST" | awk -F "[ ]{2,}" '{print $1}' | grep -Fxn -m 1 "$CURRSSID" | awk -F ":" '{print $1}') + 1" | bc ) -fi - -# HOPEFULLY you won't need this as often as I do -# If there are more than 8 SSIDs, the menu will still only have 8 lines -if [ "$LINENUM" -gt 8 ] && [[ "$CONSTATE" =~ "enabled" ]]; then - LINENUM=8 -elif [[ "$CONSTATE" =~ "disabled" ]]; then - LINENUM=1 -fi - - -if [[ "$CONSTATE" =~ "enabled" ]]; then - TOGGLE="toggle off" -elif [[ "$CONSTATE" =~ "disabled" ]]; then - TOGGLE="toggle on" -fi - -eval FIELDSARR=( $(cat ./config | awk 'BEGIN { FS=","; OFS="\n" } /^FIELDS/ { $1 = substr($1, 8); print $0; }') ) - -for i in "${!FIELDSARR[@]}"; do - if [[ "${FIELDSARR[$i]}" = "SSID" ]]; then - SSID_POS="${i}"; - fi -done - -let AWKSSIDPOS=$SSID_POS+1 - -CHENTRY=$(echo -e "$TOGGLE\nmanual\n$LIST" | uniq -u | rofi -dmenu -p "Wi-Fi SSID: " -lines "$LINENUM" -a "$HIGHLINE" -location "$POSITION" -yoffset "$YOFF" -xoffset "$XOFF" -font "$FONT" -width -"$RWIDTH") -#echo "$CHENTRY" -CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $'$AWKSSIDPOS'}') -#echo "$CHSSID" - -# If the user inputs "manual" as their SSID in the start window, it will bring them to this screen -if [ "$CHENTRY" = "manual" ] ; then - # Manual entry of the SSID and password (if appplicable) - MSSID=$(echo "enter the SSID of the network (SSID,password)" | rofi -dmenu -p "Manual Entry: " -font "$FONT" -lines 1) - # Separating the password from the entered string - MPASS=$(echo "$MSSID" | awk -F "," '{print $2}') - - #echo "$MSSID" - #echo "$MPASS" - - # If the user entered a manual password, then use the password nmcli command - if [ "$MPASS" = "" ]; then - nmcli dev wifi con "$MSSID" - else - nmcli dev wifi con "$MSSID" password "$MPASS" - fi - -elif [ "$CHENTRY" = "toggle on" ]; then - nmcli radio wifi on - -elif [ "$CHENTRY" = "toggle off" ]; then - nmcli radio wifi off - -else - - # If the connection is already in use, then this will still be able to get the SSID - if [ "$CHSSID" = "*" ]; then - CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $3}') - fi - - # Parses the list of preconfigured connections to see if it already contains the chosen SSID. This speeds up the connection process - if [[ $(echo "$KNOWNCON" | grep "$CHSSID") = "$CHSSID" ]]; then - nmcli con up "$CHSSID" - else - if [[ "$CHENTRY" =~ "WPA2" ]] || [[ "$CHENTRY" =~ "WEP" ]]; then - WIFIPASS=$(echo "if connection is stored, hit enter" | rofi -dmenu -p "password: " -lines 1 -font "$FONT" ) - fi - nmcli dev wifi con "$CHSSID" password "$WIFIPASS" - fi - -fi diff --git a/rofi/.config/rofi/wifi b/rofi/.config/rofi/wifi deleted file mode 100755 index 954e4ae..0000000 --- a/rofi/.config/rofi/wifi +++ /dev/null @@ -1,19 +0,0 @@ -# Config for rofi-wifi-menu - -# position values: -# 1 2 3 -# 8 0 4 -# 7 6 5 -POSITION=3 - -#y-offset -YOFF=17 - -#x-offset -XOFF=0 - -#fields to be displayed -FIELDS=SSID,SECURITY,BARS - -#font -FONT="Source Code Pro 12" diff --git a/sway/.config/sway/config b/sway/.config/sway/config deleted file mode 100644 index 508cb5f..0000000 --- a/sway/.config/sway/config +++ /dev/null @@ -1,204 +0,0 @@ -# pryr's sway config - -font pango: Input Mono 10 -smart_gaps on -gaps inner 8 -focus_follows_mouse yes - -set $mod Mod4 -set $left h -set $down j -set $up k -set $right l -set $term foot -set $menu dmenu_path | wofi --show drun -i | xargs swaymsg exec -- - -default_border pixel 2 -default_floating_border normal -hide_edge_borders smart - -output * bg /home/pryr/Downloads/walls/jpn.jpg fill - -input type:touchpad { - events disabled -} - -# hide cursor -seat * -{ - hide_cursor 2000 -} - -exec swayidle -w \ - timeout 200 'swaylock -f -c 000000' \ - timeout 210 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ - before-sleep 'swaylock -f -c 000000' - -# Exit -set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown -mode "$mode_system" { - bindsym l exec --no-startup-id swaylock -f -c 000000, mode "default" - bindsym e exec --no-startup-id swaymsg exit, mode "default" - bindsym s exec --no-startup-id systemctl suspend, mode "default" - bindsym r exec --no-startup-id systemctl reboot, mode "default" - bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default" - - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+shift+e mode "$mode_system" - -floating_modifier $mod normal -bindsym $mod+Return exec $term -bindsym $mod+Shift+Return exec --no-startup-id foot -T floating_term -bindsym $mod+w kill -bindsym $mod+d exec $menu -bindsym $mod+Shift+c reload -#moving -bindsym $mod+$left focus left -bindsym $mod+$down focus down -bindsym $mod+$up focus up -bindsym $mod+$right focus right -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right -bindsym $mod+Shift+$left move left -bindsym $mod+Shift+$down move down -bindsym $mod+Shift+$up move up -bindsym $mod+Shift+$right move right -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right -# Switch to workspace -bindsym $mod+1 workspace number 1 -bindsym $mod+2 workspace number 2 -bindsym $mod+3 workspace number 3 -bindsym $mod+4 workspace number 4 -bindsym $mod+5 workspace number 5 -bindsym $mod+6 workspace number 6 -bindsym $mod+7 workspace number 7 -bindsym $mod+8 workspace number 8 -bindsym $mod+9 workspace number 9 -bindsym $mod+0 workspace number 10 -# Move focused container to workspace -bindsym $mod+Shift+1 move container to workspace number 1 -bindsym $mod+Shift+2 move container to workspace number 2 -bindsym $mod+Shift+3 move container to workspace number 3 -bindsym $mod+Shift+4 move container to workspace number 4 -bindsym $mod+Shift+5 move container to workspace number 5 -bindsym $mod+Shift+6 move container to workspace number 6 -bindsym $mod+Shift+7 move container to workspace number 7 -bindsym $mod+Shift+8 move container to workspace number 8 -bindsym $mod+Shift+9 move container to workspace number 9 -bindsym $mod+Shift+0 move container to workspace number 10 -# Layout stuff -bindsym $mod+b splith -bindsym $mod+v splitv -# Switch the current container between different layout styles -bindsym $mod+s layout stacking -bindsym $mod+t layout tabbed -bindsym $mod+e layout toggle split -bindsym $mod+f fullscreen -bindsym $mod+Shift+space floating toggle -bindsym $mod+space focus mode_toggle -bindsym $mod+a focus parent -# Move the currently focused window to the scratchpad -bindsym $mod+Shift+minus move scratchpad -bindsym $mod+minus scratchpad show -# Resizing containers -mode "resize" { - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+r mode "resize" - -bindsym $mod+Shift+w exec brave --enable-features=UseOzonePlatform --ozone-platform=wayland -bindsym $mod+Shift+f exec foot ranger -bindsym $mod+n exec foot nvim ~/.cache/bujo/todo.md -bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 -bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 -bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute -bindsym XF86AudioMicMute exec --no-startup-id pulsemixer --toggle-mute --id source-47 -bindsym XF86MonBrightnessDown exec --no-startup-id sudo ~/.bin/light d -bindsym XF86MonBrightnessUp exec --no-startup-id sudo ~/.bin/light u -bindsym ctrl+space exec makoctl dismiss -bindsym ctrl+Mod1+l exec --no-startup-id swaylock -f -c 000000 -bindsym ctrl+Print exec --no-startup-id slurp | grim -t png -g - ~/screens/$(date '+%d-%m-%Y_%s_grim.png') -bindsym Print exec --no-startup-id grim -t png ~/screens/$(date '+%d-%m-%Y_%s_grim.png') - -# color defines for zenburn styled i3 -set $bg #171a1f -set $fg #e5e5e5 -set $hi #efef8f -set $ac #909090 -set $tx #040404 -set $ia #8f8f8f -set $be #76bfa4 -set $yw #ccdc90 -set $gn #88b090 -set $rd #e89393 - -# set some nice colors border background text -client.focused $ac $ac $tx -client.unfocused $bg $bg $ia -client.focused_inactive $bg $bg $ac -client.urgent $rd $rd $tx - -# Read `man 5 sway-bar` for more information about this section. -bar -{ - height 20 - position top - wrap_scroll no - tray_output none - strip_workspace_name no - strip_workspace_numbers yes - status_padding 0 - status_edge_padding 0 - status_command exec ~/.config/sway/statusbar - pango_markup on - colors - { - separator $hi - statusline $fg - background $bg - active_workspace $hi $hi $bg - inactive_workspace $ac $ac $bg - focused_workspace $fg $fg $bg - urgent_workspace $yw $yw $bg - } -} - -assign [app_id="Brave"] 2 -for_window [app_id="Brave"] inhibit_idle fullscreen -for_window [title=floating_term] floating enable -for_window [app_id="zathura"] floating enable -for_window [class="^.*"] border pixel 5 -for_window [shell="xwayland"] title_format "[X] %title" -for_window [title=".+[Ss]haring (Indicator|your screen)"] floating enable, move to scratchpad, nofocus -for_window [class="Slack"] move window to workspace $ws4 - -# gtk -set $gnome-schema org.gnome.desktop.interface -exec_always { - gsettings set $gnome-schema font-name 'Input Mono 10' -} - -#autostart -exec --no-startup-id ~/.bin/bat_check -exec --no-startup-id sudo rtcwake -m mem -s 1 -exec --no-startup-id autotiling -exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 -exec_always pkill kanshi; exec kanshi - -include /etc/sway/config.d/* diff --git a/sway/.config/sway/statusbar b/sway/.config/sway/statusbar deleted file mode 100755 index ba6dfa9..0000000 --- a/sway/.config/sway/statusbar +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash -# Color definitions. -export BLK="\e[30m" -export RED="\e[31m" -export GRN="\e[32m" -export YLW="\e[33m" -export BLU="\e[34m" -export PUR="\e[35m" -export CYN="\e[36m" -export RST="\e[0m" - -vol(){ - vol=$(pulsemixer --get-volume | awk '{print $1}') - mute=$(pulsemixer --get-mute) - if [ "$mute" == 1 ]; then - echo -e "muted" - else - echo -e "vol $vol%" - fi -} - -bat() { - power=$(cat /sys/class/power_supply/BAT0/capacity) - status=$(cat /sys/class/power_supply/BAT0/status) - if [ "$status" == "Charging" ]; then - echo -e "+bat $power%" - else - echo -e "bat $power%" - fi -} - -dte() { - dte=$(date +"%a, %b %d") - echo -e "date $dte" -} - -tie() { - tme=$(date +"%I:%M %p") - echo -e "time $tme" -} - -prepend_zero () { - seq -f "%02g" $1 $1 -} - -cmus () { - artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-)) - if [[ $artist = *[!\ ]* ]]; then - song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-)) - position=$(cmus-remote -C status | grep position | cut -c 10-) - minutes1=$(prepend_zero $(($position / 60))) - seconds1=$(prepend_zero $(($position % 60))) - duration=$(cmus-remote -C status | grep duration | cut -c 10-) - minutes2=$(prepend_zero $(($duration / 60))) - seconds2=$(prepend_zero $(($duration % 60))) - # echo -n "$artist - $song [$minutes1:$seconds1/$minutes2:$seconds2]" - echo -e "$song [$minutes1:$seconds1/$minutes2:$seconds2]" - else - echo - fi -} - -while :; do - echo " $(cmus) $(vol) $(bat) $(tie) $(dte) " - sleep 2 -done - diff --git a/wofi/.config/wofi/style.css b/wofi/.config/wofi/style.css deleted file mode 100644 index d5da0bf..0000000 --- a/wofi/.config/wofi/style.css +++ /dev/null @@ -1,39 +0,0 @@ -window { -margin: 0px; -border: 1px solid #171a1f; -background-color: #171a1f; -} - -#input { -margin: 5px; -border: none; -color: #f8f8f2; -background-color: #44475a; -} - -#inner-box { -margin: 5px; -border: none; -background-color: #171a1f; -} - -#outer-box { -margin: 5px; -border: none; -background-color: #171a1f; -} - -#scroll { -margin: 0px; -border: none; -} - -#text { -margin: 5px; -border: none; -color: #f8f8f2; -} - -#entry:selected { -background-color: #44475a; -} diff --git a/x/.Xresources b/x/.Xresources index 28ae5e3..041af28 100755 --- a/x/.Xresources +++ b/x/.Xresources @@ -58,7 +58,7 @@ URxvt.keysym.M-Escape : perl:keyboard-select:activate URxvt.keysym.M-s : perl:keyboard-select:search URxvt.keyboard-select.clipboard: true URxvt.font-size.step : 1 -URxvt.url-launcher : firefox +URxvt.url-launcher : /usr/bin/brave URxvt.matcher.button : 1 Xft.antialias: 1 diff --git a/zsh/.zshrc b/zsh/.zshrc index 20e0dda..71ddf0d 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -7,7 +7,6 @@ setopt appendhistory hist_ignore_all_dups hist_ignore_space #exports export VISUAL=nvim export EDITOR="$VISUAL" -export BROWSER=/usr/bin/brave export PATH=$PATH:$HOME/.bin export TERM=rxvt-unicode-256color export XDG_CURRENT_DESKTOP=bspwm -- cgit v1.2.3