diff --git a/.config/directories b/.config/directories index ab756235..f4cb1212 100644 --- a/.config/directories +++ b/.config/directories @@ -3,7 +3,7 @@ cf ~/.config d ~/downloads gh ~/github h ~/ -l ~/.local/bin +lb ~/.local/bin mn /mnt psc ~/.local/bin/polybar_scripts pp ~/pictures diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index abf55860..56cb908b 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -1,7 +1,7 @@ [global] monitor = 0 follow = keyboard - geometry = "350x5-0+24" + geometry = "400x5-0+24" indicate_hidden = yes shrink = yes transparency = 20 diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 8bfaaa2a..dd614184 100755 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -5,32 +5,24 @@ serif Source Code Pro - Joy Pixels - Noto Color Emoji sans-serif Source Code Pro - Joy Pixels - Noto Color Emoji sans Source Code Pro - Joy Pixels - Noto Color Emoji monospace Source Code Pro - Joy Pixels - Noto Color Emoji diff --git a/.config/i3/config b/.config/i3/config index ffb73d72..407a4985 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -5,19 +5,14 @@ # #---Variables---# # set $inner_gap 10 -set $outer_gap 5 - -# #---Polybar---# # -exec_always --no-startup-id launch_polybar - -# #---Basic Definitions---# # -for_window [class="^.*"] border pixel 2 -gaps inner $inner_gap -gaps outer $outer_gap +set $outer_gap 2 set $term --no-startup-id $TERMINAL set $mod Mod4 set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager -set $stoprec --no-startup-id dmenurecord kill +set $stoprec --no-startup-id dmenu_record kill + +# #---Polybar---# # +exec_always --no-startup-id launch_polybar # #---Gaps---# # for_window [class="^.*"] border pixel 2 @@ -35,9 +30,6 @@ for_window [instance="dropdown_dropdowncalc"] resize set 800 300 for_window [instance="dropdown_tmuxdd"] border pixel 3 for_window [instance="dropdown_dropdowncalc"] border pixel 2 for_window [instance="dropdown_*"] move position center -for_window [class="Spotify"] move to workspace $ws10 -for_window [class="discord"] move to workspace $ws10 -for_window [class="Slack"] move to workspace $ws10 for_window [class="Pulse"] move to workspace $ws9 # #---Basic Bindings---# # @@ -46,20 +38,18 @@ bindsym $mod+Shift+Return exec --no-startup-id samedir bindsym $mod+space focus mode_toggle bindsym $mod+Shift+space floating toggle bindsym $mod+Escape workspace prev -bindsym $mod+grave exec --no-startup-id dmenuunicode +bindsym $mod+grave exec --no-startup-id dmenu_unicode bindsym $mod+Insert exec --no-startup-id showclip -# #---Power Bindings---# # -bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit Xorg Session?" "i3 exit" -bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot" -bindsym $mod+Ctrl+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown" +# #---User Session Bindings---# # +bindsym $mod+Shift+Escape exec --no-startup-id dmenu_systempoweroptions # #---Letter Key Bindings---# # # A bindsym $mod+a exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 -bindsym $mod+shift +a exec $term -e alsamixer +bindsym $mod+shift+a exec $term -e alsamixer # B -bindsym $mod+b exec --no-startup-id polybar_msg cmd toggle +bindsym $mod+b exec --no-startup-id polybar-msg cmd toggle bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left # C bindsym $mod+c exec code @@ -92,7 +82,7 @@ bindsym $mod+l focus right bindsym $mod+Shift+l move right 30 bindsym $mod+Ctrl+l move workspace to output right # M -bindsym $mod+m exec spotify +bindsym $mod+m exec dmenu_openmusic bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle # N bindsym $mod+n exec nautilus @@ -126,7 +116,7 @@ bindsym $mod+Shift+w exec $BROWSER bindsym $mod+y exec $term -e calcurse -D ~/.config/calcurse bindsym $mod+Shift+y exec --no-startup-id i3resize left # X -bindsym $mod+x ifinstalled i3lock && i3lock --color 000000 --show-failed-attempts --radius 120 --ring-width 10.0 +bindsym $mod+x exec ifinstalled i3lock && i3lock --color 000000 --show-failed-attempts --radius 120 --ring-width 10.0 # Z bindsym $mod+z gaps outer current plus 5 bindsym $mod+Shift+z gaps outer current minus 5 @@ -152,10 +142,10 @@ bindsym $mod+Shift+slash exec --no-startup-id xkill bindsym $mod+backslash workspace back_and_forth # #---Volume Bindings---# # -bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+ && pkill -RTMIN+10 i3blocks -bindsym $mod+minus exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%- && pkill -RTMIN+10 i3blocks +bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+ +bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+ +bindsym $mod+minus exec --no-startup-id amixer sset Master 5%- +bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%- set $ws1 "1" set $ws2 "2" @@ -200,10 +190,10 @@ for_window [title="Default - Wine desktop"] floating enable # #---Function Buttons---# # bindsym $mod+F2 restart -bindsym $mod+F3 exec --no-startup-id displayselect +bindsym $mod+F3 exec --no-startup-id dmenu_displayselect bindsym $mod+F5 exec --no-startup-id $netrefresh -bindsym $mod+F9 exec --no-startup-id dmenumount -bindsym $mod+F10 exec --no-startup-id dmenuumount +bindsym $mod+F9 exec --no-startup-id dmenu_mount +bindsym $mod+F10 exec --no-startup-id dmenu_umount # #---Arrow Keys---# # bindsym $mod+Left focus left @@ -222,7 +212,7 @@ bindsym $mod+Ctrl+Right move workspace to output right # #---Screenshots/Recording---# # bindsym Print exec --no-startup-id maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" bindsym Shift+Print exec --no-startup-id maimpick -bindsym $mod+Print exec --no-startup-id dmenurecord +bindsym $mod+Print exec --no-startup-id dmenu_record bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey" bindsym $mod+Delete exec $stoprec diff --git a/.config/lf/lfrc b/.config/lf/lfrc deleted file mode 100644 index 8f892363..00000000 --- a/.config/lf/lfrc +++ /dev/null @@ -1,74 +0,0 @@ -# lf settings - -# Basic vars -set shell sh -set previewer ~/.config/lf/scope -set shellopts '-eu' -set ifs "\n" -set scrolloff 10 -set color256 -set icons # Enable icons. Requires nerd fonts and LF_ICONS variable. - -# cmds/functions -cmd open ${{ - case $(file --mime-type $f -b) in - text/troff) man ./ $f;; - text/*) $EDITOR $fx;; - image/x-xcf|image/svg+xml) setsid gimp $f >/dev/null 2>&1 & ;; - image/*) rotdir $f | setsid sxiv -aio 2>/dev/null | lf-select & ;; - audio/*) mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f ;; - video/*) setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f -quiet >/dev/null 2>&1 & ;; - application/pdf) setsid zathura $fx >/dev/null 2>&1 & ;; - *) for f in $fx; do setsid $OPENER $f >/dev/null 2>&1 & done;; - esac -}} - -cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 - -cmd delete ${{ - set -f - printf "%s\n\t" "$fx" - printf "delete?[y/N]" - read ans - [ $ans = "y" ] && rm -rf $fx -}} - -cmd moveto ${{ - set -f - clear; echo "Move to where?" - dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" && - eval mv -iv $fx $dest && - notify-send "🚚 File(s) moved." "File(s) moved to $dest." -}} - -cmd copyto ${{ - set -f - clear; echo "Copy to where?" - dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" && - eval cp -ivr $fx $dest && - notify-send "📋 File(s) copied." "File(s) copies to $dest." -}} - -cmd bulkrename ${{ - vidir -}} - -# Bindings -map c $lf -remote "send $id cd $(cut -d' ' -f2 ~/.config/directories | fzf)" -map $lf -remote "send $id select '$(fzf)'" -map J $lf -remote "send $id cd $(cut -d' ' -f2 ~/.config/directories | fzf)" -map gh -map g top -map D delete -map C copyto -map M moveto -map a push %mkdir -map r push :rename -map R $lf -remote "send $id push :rename$f" -map b bulkrename -map reload -map shell -map x $$f -map X !$f -map o &mimeopen "$f" -map O $mimeopen --ask "$f" diff --git a/.config/lf/scope b/.config/lf/scope deleted file mode 100644 index 45f9f338..00000000 --- a/.config/lf/scope +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -set -C -f -u -#IFS=$'\n' -IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}" - -# ANSI color codes are supported. -# STDIN is disabled, so interactive scripts won't work properly - -# This script is considered a configuration file and must be updated manually. - -# Meanings of exit codes: -# code | meaning | action of ranger -# -----+------------+------------------------------------------- -# 0 | success | Display stdout as preview -# 1 | no preview | Display no preview at all -# 2 | plain text | Display the plain content of the file - -# Script arguments -FILE_PATH="${1}" # Full path of the highlighted file -HEIGHT="${2}" - -#FILE_EXTENSION="${FILE_PATH##*.}" -#FILE_EXTENSION_LOWER=$(echo ${FILE_EXTENSION} | tr '[:upper:]' '[:lower:]') - -# Settings -HIGHLIGHT_SIZE_MAX=262143 # 256KiB -HIGHLIGHT_TABWIDTH=8 -HIGHLIGHT_STYLE='pablo' - - -handle_mime() { - local mimetype="${1}" - case "${mimetype}" in - text/html) w3m -dump "${FILE_PATH}" ;; - text/troff) man ./ "${FILE_PATH}" | col -b ;; - text/* | */xml) - if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then - exit 2 - fi - if [ "$( tput colors )" -ge 256 ]; then - local highlight_format='xterm256' - else - local highlight_format='ansi' - fi - highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \ - --style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" ;; - application/zip) atool --list -- "${FILE_PATH}" ;; - image/*) chafa --fill=block --symbols=block -c 256 -s 80x"${HEIGHT}" "${FILE_PATH}" || exit 1;; - video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" || exit 1;; - */pdf) pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - ;; - *opendocument*) odt2txt "${FILE_PATH}" ;; - esac -} - -MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )" -handle_mime "${MIMETYPE}" -exit 1 diff --git a/.config/polybar/config b/.config/polybar/config index cccabfe3..b80cbc8e 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -2,10 +2,10 @@ [colors] background = #1d2021 +foreground = #ebdbb2 black = #1d2021 blue = #83a598 darkyellow = #d79921 -foreground = #ebdbb2 gray = #928374 green = #20c723 orange = #ffa500 @@ -14,60 +14,35 @@ white = #ebdbb2 yellow = #fabd2f [bar/main] +; polybar settings enable-ipc = true -fixed-center = false height = 20 monitor = ${env:MONITOR:} width = 100% - -; allow scrolling workspaces -scroll-up = i3wm-wsnext -scroll-down = i3wm-wsprev - background = ${colors.background} foreground = ${colors.foreground} - -line-size = 2 +line-size = 3 line-color = ${colors.red} - +; Module formatting border-size = 0 border-color = ${colors.white} - padding-left = 0 -padding-right = 0 - +padding-right = 1 module-margin-left = 1 module-margin-right = 1 - -font-0 = "fixed:pixelsize=9;1" -font-1 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1" -font-2 = "Font Awesome 5 Free:style=Solid:pixelsize=8;2" -font-3 = "Font Awesome 5 Brands:pixelsize=8;1" - +; Fonts +font-0 = "Source Code Pro:pixelsize=8;1" +font-1 = "Source Code Pro:style=Regular:pixelsize=8;1" +; enable emojis +font-2 = NotoColorEmoji:pixelsize=5;0:fontformat=truetype:scale=12:antialias=true; +; wm related wm-restack = i3 - +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev modules-left = i3 -modules-center = xwindow modules-right = sys_updates bluetooth sys_temp cpu memory volume wifi ethernet battery date - +; Where to display programs that put something system tray tray-position = right -tray-padding = 0 - -[module/sys_updates] -exec = ~/.local/bin/polybar_scripts/aur_updates -format =