diff --git a/.bash_profile b/.bash_profile index a410cf32..bf3f11a4 100644 --- a/.bash_profile +++ b/.bash_profile @@ -10,5 +10,3 @@ #[ -z "$DISPLAY" -a "$(fgconsole)" -eq 1 ] && exec startx - -export BROWSER=firefox diff --git a/.config/calcurse/conf b/.calcurse/conf similarity index 100% rename from .config/calcurse/conf rename to .calcurse/conf diff --git a/.config/calcurse/keys b/.calcurse/keys similarity index 100% rename from .config/calcurse/keys rename to .calcurse/keys diff --git a/.config/Scripts/bashrc b/.config/Scripts/bashrc index f92e4f4e..981dd078 100644 --- a/.config/Scripts/bashrc +++ b/.config/Scripts/bashrc @@ -2,152 +2,105 @@ stty -ixon export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" -if [[ -f /usr/bin/iceweasel ]]; then +if [[ -f /usr/bin/waterfox ]]; then + export BROWSER="waterfox" +elif [[ -f /usr/bin/palemoon ]]; then + export BROWSER="palemoon" +elif [[ -f /usr/bin/iceweasel ]]; then export BROWSER="iceweasel" else export BROWSER="firefox" fi +export EDITOR="vim" +export PATH=$PATH:$HOME/.config/Scripts + shopt -s autocd #if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then #exec startx #fi - #Basic Aliases alias v="vim" alias r="ranger" -#alias ls='ls -hN --color=auto --group-directories-first' -alias ls='ls++' +alias ls='ls -hN --color=auto --group-directories-first' +#alias ls='ls++' alias lsa='ls -A' g() { cd $1 && ls -a ;} -alias mkd="mkdir -pv" -mkcd() { mkdir -vp $1 && cd $1 ;} +alias mkdir="mkdir -pv" alias e="exit" alias crep="grep --color=always" -alias Xi="sudo xbps-install" -alias Xu="sudo xbps-remove -R" -alias Xup="sudo xbps-install -Suv" -alias Xc="xbps-remove -Oo" -alias Xq="xbps-query -Rs" -alias XI="xbps-query -s" -alias Xl="xbps-query -l" +alias sv="sudo vim" + +alias p="sudo pacman" alias sdn="sudo shutdown now" -alias screenfetch="screenfetch -t" alias yt="youtube-dl -ic" alias yta="youtube-dl -xic" +aurinstall() { curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz && tar -xvf $1.tar.gz && cd $1 && makepkg --noconfirm -si && cd .. && rm -rf $1 $1.tar.gz ;} + alias ein="ssh -l einchan -p 22 104.238.215.7" alias starwars="telnet towel.blinkenlights.nl" -alias newnet="sudo sv restart NetworkManager" +alias temp="cp ~/Repos/website/template.php" + +alias nf="clear && neofetch" +alias clock="ncmpcpp -s clock" +alias rss="vim ~/Repos/website/rss.xml" + +alias newnet="sudo systemctl restart NetworkManager" alias atltime="sudo timedatectl set-timezone America/New_York && i3 restart" alias tuctime="sudo timedatectl set-timezone America/Phoenix && i3 restart" bl() { convert $@ -resize 1440x1080\> bl_$@ ;} +alias pingme="ping lukesmith.xyz" + alias youtube="youtube-viewer" alias YT="youtube-viewer" alias syt="youtube-viewer" -alias etym="sdcv -u \"English Etymology\"" -alias spword="sdcv -u quick_spanish-english" -alias tosp="sdcv -u quick_english-spanish" -alias frword="sdcv -u quick_french-english" -alias tofr="sdcv -u quick_english-french" -alias lword="sdcv -u quick_latin-english" -alias tol="sdcv -u quick_english-latin" -alias rusword="sdcv -u quick_russian-english" -alias torus="sdcv -u quick_english-russian" -alias portword="sdcv -u quick_portuguese-english" -alias toport="sdcv -u quick_english-portuguese" -alias itword="sdcv -u quick_italian-english" -alias toit="sdcv -u quick_english-italian" -alias gword="sdcv -u quick_german-english" -alias tog="sdcv -u quick_english-german" - alias Txa="cp ~/Documents/LaTeX/article.tex" alias Txs="cp ~/Documents/LaTeX/beamer.tex" alias Txh="cp ~/Documents/LaTeX/handout.tex" -alias TC='find . -maxdepth 1 -regextype gnu-awk -regex "^.*\.(pyc|pyo|bak|swp|aux|log|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)" -delete' +alias TC='texclear' getgit() { git clone http://github.com/$1.git ;} -folder() { echo -e "$1\t$2" >> ~/.config/Scripts/folders && i3 restart ;} weath() { curl wttr.in/$1 ;} alias work="mkdir ~/Work && cd ~/Work" - CF() { cd ~/.config/$1 && ls ;} alias ethspeed="speedometer -r enp0s25" -note() { echo "$@" >> ~/notes ;} alias notes="vim ~/notes" -alias extract="~/.config/Scripts/extract.sh" +alias mailsync="bash ~/.config/Scripts/mailsyncloop" -alias refresh="python ~/.config/Scripts/shortcuts.py" - -backup() { cp $1 $1.bu ;} - -alias mailsync="bash ~/.config/Scripts/mailsyncloop.sh" - -alias wifispeed="speedometer -r wlp3s0" - -alias trigger="bash ~/Creations/Scripts/trigger.sh" - -alias bbs="python ~/.config/i3/bar/bumblebee-status" +alias wifispeed="speedometer -r wlp2s0" alias tr="transmission-remote" -alias servs="ls /etc/sv" - -alias debase="sudo umount /home/Shared/Videos && xrandr --output LVDS1 --auto --output VGA1 --off && bash ~/.config/polybar/launch.sh &> /dev/null" - -serven() { sudo ln -s /etc/sv/$1 /var/service/ ;} -servdis() { sudo rm /var/service/$1 ;} - -aurinstall() { curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz && tar -xvzf $1.tar.gz && cd $1 && makepkg --noconfirm -si && cd .. && rm -rf $1 $1.tar.gz ;} - -alias menuk="xmodmap -e 'keycode 135 = Super_R'" -alias imgt="bash ~/.config/Scripts/imgt.sh" - alias ref="python ~/.config/Scripts/shortcuts.py && source ~/.bashrc" + alias ka="killall" + alias bars="bash ~/.config/polybar/launch.sh" - -alias lsc="xrandr --output LVDS1 --auto --output VGA1 --off && bash ~/.config/polybar/launch.sh &> /dev/null" -alias vsc="xrandr --output VGA1 --auto --output LVDS1 --off && bash ~/.config/polybar/launch.sh &> /dev/null" -alias dsc="xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1 && bash ~/.config/polybar/launch.sh &> /dev/null" +alias lsc="screen.sh l" +alias vsc="screen.sh v" +alias dsc="screen.sh d" alias speedvid="bash ~/.config/Scripts/speedvid.sh" -tag() { -if [[ -f $1 ]] - then - echo "Enter a title." - read title - echo "Enter an artist name." - read artist - echo "Enter an album." - read album - echo "Enter an track number." - read numb - eyeD3 --remove-all "$1" - eyeD3 -a "$artist" -t "$title" -n "$numb" -A "$album" "$1" -else - echo "No file found." -fi -} - - - +alias g="git" +alias gitup="git push origin master" +alias gitall="git add . && git commit -m "whatever" && git push origin master" #Directory Shortcuts: diff --git a/.config/Scripts/configs b/.config/Scripts/configs index ab70dcf3..6a5a696c 100644 --- a/.config/Scripts/configs +++ b/.config/Scripts/configs @@ -1,5 +1,4 @@ cfb ~/.config/Scripts/bashrc -cfs ~/.config/Scripts/status.sh cfz ~/.zshrc cfv ~/.config/Scripts/vimrc cfr ~/.config/ranger/rc.conf.base diff --git a/.config/Scripts/folders b/.config/Scripts/folders old mode 100755 new mode 100644 index 3826f6dd..5ed5d6af --- a/.config/Scripts/folders +++ b/.config/Scripts/folders @@ -6,5 +6,5 @@ v ~/Videos m ~/Music b ~/Books s ~/.config/Scripts -/ / r / +cf ~/.config diff --git a/.config/Scripts/i3_guide.md b/.config/Scripts/i3_guide.md index a144b41a..ac156ad5 100644 --- a/.config/Scripts/i3_guide.md +++ b/.config/Scripts/i3_guide.md @@ -55,16 +55,16 @@ Be sure you play around with these. Be flexible with the basic commands and the + Mod+r -- ranger (file browser/manager) + Mod+e -- mutt (email) + Mod+m -- ncmpcpp (music player) -+ Mod+A -- alsamixer (volume control) + Mod+a -- R calculator (close with Mod+a for reusability) + Mod+i -- htop (system info) + Mod+N -- newsbeuter (RSS feed reader) + Mod+y -- calcurse (calendar and schedule) + Mod+u -- "Dropdown" terminal (close with Mod+u for reusability) -+ Mod+Shift+Enter -- tmux ++ Mod+Shift+Enter -- new tmux window ## Larger programs ++ Mod+A -- Pavucontrol (audio system control) + Mod+W -- Firefox + Mod+B -- Blender + Mod+G -- GIMP @@ -88,16 +88,14 @@ Be sure you play around with these. Be flexible with the basic commands and the + Mod+F11 -- Switch to VGA display (if available) + Mod+F12 -- Switch to dual VGA/laptop display (if available) -*Note: I am on Void Linux now, which uses runit instead of systemd. As a result, users of most Linux distros may have to adjust the bindings for these commands. - ## Audio I use ncmpcpp as a music player, which is a front end for mpd. If you prefer cmus or mocp, I have commented out shortcuts you can activate for it instead in the i3 config. + Mod+m -- ncmpcpp music player -+ Mod+n -- Next track -+ Mod+b -- Previous track -+ Mod+o -- Restart track ++ Mod+. -- Next track ++ Mod+, -- Previous track ++ Mod+< -- Restart track + Mod+p -- Pause + Mod+M -- Mute all audio + Mod+v -- visualizer @@ -105,7 +103,7 @@ I use ncmpcpp as a music player, which is a front end for mpd. If you prefer cmu + Mod++ -- Increase volume (holding shift increases amount) + Mod+[ -- Back 10 seconds (holding shift increases amount) + Mod+] -- Forward 10 seconds (holding shift increases amount) -+ Mod+A -- alsamixer (volume control) ++ Mod+A -- Pavucontrol (volume control) ## Workspaces diff --git a/.config/Scripts/i3_guide.md.pdf b/.config/Scripts/i3_guide.md.pdf index b8a95675..30f534a2 100644 Binary files a/.config/Scripts/i3_guide.md.pdf and b/.config/Scripts/i3_guide.md.pdf differ diff --git a/.config/Scripts/music.sh b/.config/Scripts/music.sh deleted file mode 100755 index 7c47f0d6..00000000 --- a/.config/Scripts/music.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -if [ -f $(pgrep mpd) ]; - then - echo "mpd not yet active. Activating." - mpd && urxvt -e ncmpcpp - else - echo "mpd already active." - urxvt -e ncmpcpp -fi diff --git a/.config/Scripts/shortcuts.py b/.config/Scripts/shortcuts.py index 154d208d..4af9496e 100644 --- a/.config/Scripts/shortcuts.py +++ b/.config/Scripts/shortcuts.py @@ -3,6 +3,7 @@ import csv qute = "" rang = "" bash = "" +#fish = "" with open(".config/qutebrowser/keys.conf.base") as qb: qute+=qb.read() @@ -10,6 +11,8 @@ with open(".config/ranger/rc.conf.base") as rg: rang+=rg.read() with open(".config/Scripts/bashrc") as bsh: bash+=bsh.read() +#with open(".config/fish/config_base.fish") as fsh: + #fish+=fsh.read() #First we open the list of folder shortcuts and go down each line adding each in the required syntax to each of the three configs: @@ -24,12 +27,16 @@ with open(".config/Scripts/folders") as fold: rang+=("map Y"+line[0]+" shell cp -r %s "+line[1]+"\n") #Adds the bash shortcuts: bash+=("alias "+line[0]+"=\"cd "+line[1]+" && ls -a\"\n") + #fish+=("alias "+line[0]+"=\"cd "+line[1]+" ; ls -a\"\n") + #fish+=("abbr --add "+line[0]+" \"cd "+line[1]+" ; ls -a\"\n") #Goes thru the config file file and adds the shortcuts to both bash and ranger. with open(".config/Scripts/configs") as conf: for line in csv.reader(conf, dialect="excel-tab"): bash+=("alias "+line[0]+"=\"vim "+line[1]+"\"\n") + #fish+=("alias "+line[0]+"=\"vim "+line[1]+"\"\n") + #fish+=("abbr --add "+line[0]+" \"vim "+line[1]+"\"\n") rang+=("map "+line[0]+" shell vim "+line[1]+"\n") @@ -39,3 +46,5 @@ with open(".config/qutebrowser/keys.conf","w") as outqb: outqb.write(qute) with open(".bashrc","w") as outbash: outbash.write(bash) +#with open(".config/fish/config.fish","w") as outfish: + #outfish.write(fish) diff --git a/.config/Scripts/wall_looper.sh b/.config/Scripts/wall_looper.sh deleted file mode 100644 index a1a300b5..00000000 --- a/.config/Scripts/wall_looper.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -#Feed this script two arguments, $1 for a folder directory and $2 for a time interval in seconds. - -#Will loop thru the files in the directory, using feh to change the background every $2 seconds. - -while [ 1==1 ] - -do -for file in $1*; -do -sleep $2 -feh --bg-scale "$file" -cp "$file" ~/.config/wall.png -done -done diff --git a/.config/i3/config b/.config/i3/config index cd7930ff..b13b5f9d 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -6,10 +6,13 @@ #YouTube: https://youtube.com/c/LukeSmithxyz #Github: https://github.com/LukeSmithxyz +#Be sure that you have your $BROWSER environmental variable set to your favorite browser. +#E.g., put `export BROWSER="firefox"` into your bashrc + ###---Basic Definitions---### #Needed for i3-gaps hide_edge_borders both -for_window [class="^.*"] border pixel 0 +for_window [class="^.*"] border pixel 0 gaps inner 15 gaps outer 15 font pango:hack 9 @@ -18,7 +21,6 @@ set $term urxvt set $video --no-startup-id bash ~/.config/Scripts/video.sh set $stoprec --no-startup-id killall ffmpeg & killall screenkey set $flash --no-startup-id bash ~/.config/Scripts/flash_win.sh -set $browser firefox ###---Starting External Scripts---### @@ -31,7 +33,7 @@ exec --no-startup-id nm-applet #Mount other drives: exec --no-startup-id sudo mount -a #Composite manager: -exec --no-startup-id compton +#exec --no-startup-id compton #Refresh bash/ranger shortcuts: exec --no-startup-id python ~/.config/Scripts/shortcuts.py #Try to load VGA screen if available: @@ -39,16 +41,17 @@ exec --no-startup-id ~/.config/Scripts/screen.sh v #Launch Polybar where appropriate: exec_always --no-startup-id ~/.config/polybar/launch.sh #Add wallpaper: -exec --no-startup-id feh --bg-scale ~/.config/wall.png +#exec --no-startup-id feh --bg-scale ~/.config/wall.png +exec_always --no-startup-id wal -c -i ~/.config/wall.png #Remaps the caps lock button to escape and uses the US international keyboard with dead keys exec_always --no-startup-id setxkbmap -layout us -variant altgr-intl -option caps:escape #Remap Menu button to Super: -exec_always --no-startup-id xmodmap -e 'keycode 135 = Super_R' -bindsym Menu exec --no-startup-id xmodmap -e 'keycode 135 = Super_R' +#exec_always --no-startup-id xmodmap -e 'keycode 135 = Super_R' +bindsym Menu exec --no-startup-id xmodmap -e 'keycode 135 = Super_R' #Unclutter makes the mouse invisible after a brief period exec --no-startup-id unclutter #Disables touchpad; you might like like this one! (I only use the ThinkPad trackpoint). -exec --no-startup-id exec synclient TouchpadOff=1 +#exec --no-startup-id exec synclient TouchpadOff=1 ###---Audio and Music Definitions---### @@ -66,7 +69,7 @@ set $beg --no-startup-id mpc seek 0% ##For moc: #set $music urxvt -e mocp -#set $pause --no-startup-id mocp -G +#set $pause --no-startup-id mocp -G #set $truepause --no-startup-id mocp -P #set $next --no-startup-id mocp -f #set $prev --no-startup-id mocp -r @@ -88,25 +91,25 @@ set $beg --no-startup-id mpc seek 0% #set $beg --no-startup-id cmus-remote -k 00:00:00 #FOR ALSA/AMIXER -set $inc --no-startup-id amixer sset Master 2%+ -set $biginc --no-startup-id amixer sset Master 5%+ -set $dec --no-startup-id amixer sset Master 2%- -set $bigdec --no-startup-id amixer sset Master 5%- -set $mute --no-startup-id amixer sset Master toggle -set $truemute --no-startup-id amixer sset Master mute -set $screencast --no-startup-id bash ~/.config/Scripts/screencast_alsa.sh -set $audio --no-startup-id bash ~/.config/Scripts/audio_alsa.sh +#set $inc --no-startup-id amixer sset Master 2%+ +#set $biginc --no-startup-id amixer sset Master 5%+ +#set $dec --no-startup-id amixer sset Master 2%- +#set $bigdec --no-startup-id amixer sset Master 5%- +#set $mute --no-startup-id amixer sset Master toggle +#set $truemute --no-startup-id amixer sset Master mute +#set $screencast --no-startup-id bash ~/.config/Scripts/screencast_alsa.sh +#set $audio --no-startup-id bash ~/.config/Scripts/audio_alsa.sh #For PULSEAUDIO/PAMIXER -#set $inc --no-startup-id pamixer --allow-boost -i 5 -#set $biginc --no-startup-id pamixer --allow-boost -i 15 -#set $dec --no-startup-id pamixer --allow-boost -d 5 -#set $bigdec --no-startup-id pamixer --allow-boost -d 15 -#set $mute --no-startup-id pamixer --allow-boost -t -#set $micmute --no-startup-id pamixer --allow-boost -t -#set $truemute --no-startup-id pamixer -m -#set $screencast --no-startup-id bash ~/.config/Scripts/screencast_pulse.sh -#set $audio --no-startup-id bash ~/.config/Scripts/audio_pulse.sh +set $inc --no-startup-id pamixer --allow-boost -i 5 +set $biginc --no-startup-id pamixer --allow-boost -i 15 +set $dec --no-startup-id pamixer --allow-boost -d 5 +set $bigdec --no-startup-id pamixer --allow-boost -d 15 +set $mute --no-startup-id pamixer --allow-boost -t +set $micmute --no-startup-id pamixer --allow-boost -t +set $truemute --no-startup-id pamixer -m +set $screencast --no-startup-id bash ~/.config/Scripts/screencast_pulse.sh +set $audio --no-startup-id bash ~/.config/Scripts/audio_pulse.sh ###---Dropdown/Scratchpad Windows---### @@ -151,9 +154,9 @@ bindsym $mod+q kill bindsym $mod+Shift+q kill bindsym $mod+w exec --no-startup-id $term -e w3m http://lukesmith.xyz -bindsym $mod+Shift+w exec --no-startup-id $browser +bindsym $mod+Shift+w exec --no-startup-id $BROWSER -bindsym $mod+e exec $term -e mutt +bindsym $mod+e exec $term -e mutt #bindsym $mod+Shift+e bindsym $mod+r exec $term -e ranger @@ -162,7 +165,7 @@ bindsym $mod+Shift+r restart bindsym $mod+t split toggle bindsym $mod+Shift+t gaps inner current set 15; gaps outer current set 15 -bindsym $mod+y exec $term -e calcurse +bindsym $mod+y exec $term -e calcurse bindsym $mod+Shift+y resize shrink width 10 px or 10ppt bindsym $mod+u [instance="dropdown"] scratchpad show; move position center @@ -171,14 +174,15 @@ bindsym $mod+Shift+u resize shrink height 10 px or 10 ppt bindsym $mod+i exec $term -e htop bindsym $mod+Shift+i resize grow height 10 px or 10 ppt -bindsym $mod+o exec --no-startup-id $beg +#bindsym $mod+o exec --no-startup-id $beg bindsym $mod+Shift+o resize grow width 10 px or 10 ppt bindsym $mod+p exec $pause bindsym $mod+Shift+p exec mypaint bindsym $mod+a [instance="math"] scratchpad show; move position center -bindsym $mod+Shift+a exec $term -e alsamixer +bindsym $mod+Shift+a exec pavucontrol +#bindsym $mod+Shift+a exec $term -e ncpamixer bindsym $mod+s gaps inner current plus 5 bindsym $mod+Shift+s gaps inner current minus 5 @@ -213,14 +217,14 @@ bindsym $mod+Shift+x exec sudo shutdown -h now bindsym $mod+c exec $term -e weechat #bindsym $mod+Shift+c -bindsym $mod+v exec urxvt -e ncmpcpp -s visualizer -#bindsym $mod+Shift+v +bindsym $mod+v exec urxvt -e vis +bindsym $mod+Shift+v exec projectM-pulseaudio -bindsym $mod+b exec $prev +#bindsym $mod+b exec $prev bindsym $mod+Shift+b exec --no-startup-id blender; workspace $ws6 -bindsym $mod+n exec $next -bindsym $mod+Shift+n exec $term -e newsbeuter +bindsym $mod+n exec $term -e newsbeuter +#bindsym $mod+Shift+n exec $term -e newsbeuter bindsym $mod+m exec $music bindsym $mod+Shift+m exec $mute @@ -237,9 +241,9 @@ bindsym $mod+Next workspace next bindsym $mod+Shift+Next move container to workspace next bindsym $mod+Tab workspace back_and_forth bindsym $mod+XF86Back workspace prev -#bindsym $mod+Shift+XF86Back +#bindsym $mod+Shift+XF86Back bindsym $mod+XF86Forward workspace next -#bindsym $mod+Shift+XF86Forward +#bindsym $mod+Shift+XF86Forward bindsym $mod+semicolon workspace next bindsym $mod+apostrophe split horizontal ;; exec $term bindsym $mod+slash split vertical ;; exec $term @@ -331,7 +335,7 @@ bindsym $mod+F1 exec --no-startup-id mupdf ~/.config/Scripts/i3_guide.md.pdf bindsym $mod+F2 exec --no-startup-id python ~/.config/Scripts/shortcuts.py bindsym $mod+F3 exec --no-startup-id arandr bindsym $mod+F4 exec --no-startup-id sudo zzz -bindsym $mod+F5 exec --no-startup-id sudo sv restart NetworkManager +bindsym $mod+F5 exec --no-startup-id sudo systemctl restart NetworkManager bindsym $mod+F6 exec --no-startup-id urxvt -e transmission-remote-cli bindsym $mod+F7 exec transset -a --dec .15 bindsym $mod+F8 exec transset -a --inc .15 @@ -359,10 +363,10 @@ bindsym $mod+plus exec $inc bindsym $mod+Shift+plus exec $biginc bindsym $mod+minus exec $dec bindsym $mod+Shift+minus exec $bigdec -bindsym $mod+greater exec $inc -bindsym $mod+Shift+greater exec $biginc -bindsym $mod+less exec $dec -bindsym $mod+Shift+less exec $bigdec +bindsym $mod+less exec $prev +bindsym $mod+Shift+less exec $beg +bindsym $mod+greater exec $next +bindsym $mod+Shift+greater exec $next #For advancing forward/backward in an mpd song bindsym $mod+bracketleft exec $lilbak @@ -391,26 +395,26 @@ bindsym XF86AudioMute exec $mute bindsym XF86AudioLowerVolume exec $dec bindsym XF86AudioRaiseVolume exec $inc bindsym XF86PowerOff exec sudo shutdown -h now -#bindsym XF86Copy exec -#bindsym XF86Open exec -#bindsym XF86Paste exec -#bindsym XF86Cut exec -#bindsym XF86MenuKB exec +#bindsym XF86Copy exec +#bindsym XF86Open exec +#bindsym XF86Paste exec +#bindsym XF86Cut exec +#bindsym XF86MenuKB exec bindsym XF86Calculator exec $term -e R -q bindsym XF86Sleep exec sudo zzz -#bindsym XF86WakeUp exec +#bindsym XF86WakeUp exec bindsym XF86Explorer exec $term -e ranger -#bindsym XF86Send exec -#bindsym XF86Xfer exec -bindsym XF86WWW exec --no-startup-id $browser -#bindsym XF86DOS exec +#bindsym XF86Send exec +#bindsym XF86Xfer exec +bindsym XF86WWW exec --no-startup-id $BROWSER +#bindsym XF86DOS exec bindsym XF86ScreenSaver exec exec --no-startup-id ~/.config/i3/lock.sh -#bindsym XF86RotateWindows exec -#bindsym XF86TaskPane exec -#bindsym XF86Favorites exec +#bindsym XF86RotateWindows exec +#bindsym XF86TaskPane exec +#bindsym XF86Favorites exec bindsym XF86MyComputer exec $term -e ranger -#bindsym XF86Back exec -#bindsym XF86Forward exec +#bindsym XF86Back exec +#bindsym XF86Forward exec bindsym XF86Eject exec sudo umount -R /mnt bindsym XF86AudioNext exec $next bindsym XF86AudioPlay exec $pause @@ -419,25 +423,25 @@ bindsym XF86AudioStop exec $pause bindsym XF86AudioRecord exec $audio bindsym XF86AudioRewind exec $lilbak bindsym XF86AudioForward exec $lilfor -#bindsym XF86Phone exec -#bindsym XF86Tools exec -bindsym XF86HomePage exec $browser https://lukesmith.xyz +#bindsym XF86Phone exec +#bindsym XF86Tools exec +bindsym XF86HomePage exec $BROWSER https://lukesmith.xyz bindsym XF86Reload restart -#bindsym XF86ScrollUp exec -#bindsym XF86ScrollDown exec -#bindsym XF86New exec +#bindsym XF86ScrollUp exec +#bindsym XF86ScrollDown exec +#bindsym XF86New exec #bindsym XF86LaunchA exec -#bindsym XF86LaunchB exec -#bindsym XF86Launch2 exec -#bindsym XF86Launch3 exec -#bindsym XF86Launch4 exec -#bindsym XF86Launch5 exec -#bindsym XF86Launch6 exec -#bindsym XF86Launch7 exec -#bindsym XF86Launch8 exec -#bindsym XF86Launch9 exec +#bindsym XF86LaunchB exec +#bindsym XF86Launch2 exec +#bindsym XF86Launch3 exec +#bindsym XF86Launch4 exec +#bindsym XF86Launch5 exec +#bindsym XF86Launch6 exec +#bindsym XF86Launch7 exec +#bindsym XF86Launch8 exec +#bindsym XF86Launch9 exec bindsym XF86AudioMicMute exec $micmute -#bindsym XF86TouchpadToggle exec +#bindsym XF86TouchpadToggle exec bindsym XF86TouchpadOn exec --no-startup-id exec synclient TouchpadOff=0 bindsym XF86TouchpadOff exec --no-startup-id exec synclient TouchpadOff=1 bindsym XF86Suspend exec --no-startup-id ~/.config/i3/lock.sh @@ -445,24 +449,23 @@ bindsym XF86Close kill bindsym XF86WebCam exec mpv /dev/video0 bindsym XF86Mail exec $term -e mutt bindsym XF86Messenger exec $term -e weechat -bindsym XF86Search exec $browser https://duckduckgo.com -#bindsym XF86Go exec -#bindsym XF86Finance exec -#bindsym XF86Game exec -bindsym XF86Shop exec $browser https://ebay.com +bindsym XF86Search exec $BROWSER https://duckduckgo.com +#bindsym XF86Go exec +#bindsym XF86Finance exec +#bindsym XF86Game exec +bindsym XF86Shop exec $BROWSER https://ebay.com bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15 bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15 bindsym XF86AudioMedia exec $music bindsym XF86Display exec --no-startup-id arandr -#bindsym XF86KbdLightOnOff exec +#bindsym XF86KbdLightOnOff exec bindsym XF86KbdBrightnessDown exec --no-startup-id xbacklight -dec 15 bindsym XF86KbdBrightnessUp exec --no-startup-id xbacklight -inc 15 -#bindsym XF86Reply exec -#bindsym XF86MailForward exec -#bindsym XF86Save exec +#bindsym XF86Reply exec +#bindsym XF86MailForward exec +#bindsym XF86Save exec bindsym XF86Documents exec $term -e ranger ~/Documents -#bindsym XF86Battery exec -#bindsym XF86Bluetooth exec -bindsym XF86WLAN exec --no-startup-id sudo sv restart NetworkManager - +#bindsym XF86Battery exec +#bindsym XF86Bluetooth exec +bindsym XF86WLAN exec --no-startup-id sudo systemctl restart NetworkManager diff --git a/.config/polybar/config b/.config/polybar/config index 93b1f109..8c048306 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -9,16 +9,20 @@ ;===================================================== [colors] -;background = ${xrdb:color0:#222} -background = #000 +background = ${xrdb:color0} +;background = #000 background-alt = #444 -;foreground = ${xrdb:color7:#222} -foreground = #dfdfdf +foreground = ${xrdb:color7} +;foreground = #dfdfdf foreground-alt = #555 -primary = #ffb52a -secondary = #e60053 +primary = ${xrdb:color3} +;primary = ${xrdb:color3} +secondary = ${xrdb:color5} +;secondary = #e60053 alert = #bd2c40 col = #00f +;fg = ${xrdb:color7} +;bg = ${xrdb:color2} [bar/example] ;monitor = ${env:MONITOR:HDMI-1} @@ -35,7 +39,7 @@ background = ${colors.background} foreground = ${colors.foreground} line-size = 3 -line-color = #f00 +line-color = {$xrdb:color1} border-size = 0 border-color = #00000000 @@ -48,7 +52,7 @@ module-margin-right = 2 font-0 = mono:pixelsize=11;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = siji:pixelsize=11;1 +font-2 = Wuncon Siji:pixelsize=11;1 modules-left = i3 mpd #modules-center = mpd @@ -164,25 +168,28 @@ label-urgent-padding = ${module/bspwm.label-urgent-padding} [module/mpd] type = internal/mpd -format-online = +format-online = +# +# -;icon-prev =  -;icon-stop =  -;icon-play =  -;icon-pause =  -;icon-next =  -icon-prev = <- -icon-stop = X -icon-play-prefix = #f00 -icon-play = (Paused) -icon-pause = -icon-next = -> +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  +#icon-prev = <- +#icon-stop = X +#icon-play-prefix = #f00 +#icon-play = (Paused) +#icon-pause = +#icon-next = -> ;bar-progress-width = 45 ;bar-progress-indicator = | ;bar-progress-fill = - ;bar-progress-empty = - +label-song = %artist% - %title% label-song-maxlen = 70 label-song-ellipsis = true @@ -213,7 +220,7 @@ type = internal/cpu interval = 2 format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} -format-underline = #f90000 +format-underline = ${xrdb:color1} label = %percentage%% [module/memory] @@ -221,16 +228,16 @@ type = internal/memory interval = 2 format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} -format-underline = #4bffdc +format-underline = ${xrdb:color6} label = %percentage_used%% [module/wlan] type = internal/network -interface = wlp3s0 +interface = wlp2s0 interval = 3.0 format-connected = -format-connected-underline = #9f78e1 +format-connected-underline = ${xrdb:color5} ;format-connected-underline = #9f78e1 label-connected = %essid% @@ -252,8 +259,8 @@ type = internal/network interface = enp0s25 interval = 3.0 -format-connected-underline = #5ab738 -;format-connected-underline = #55aa55 +format-connected-underline = ${xrdb:color2} +;format-connected-underline = ${xrdb:color10} format-connected-prefix = " " format-connected-prefix-foreground = ${colors.foreground-alt} label-connected = %local_ip% @@ -278,7 +285,7 @@ time = " at %I:%M%p" format-prefix =  format-prefix-foreground = ${colors.foreground-alt} -format-underline = #407ee7 +format-underline = ${xrdb:color12} ;format-underline = #0a6cf5 label = %date% %time% @@ -295,13 +302,13 @@ format-muted-foreground = ${colors.foreground-alt} label-muted = sound muted bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 +bar-volume-foreground-0 = ${xrdb:color10} +bar-volume-foreground-1 = ${xrdb:color10} +bar-volume-foreground-2 = ${xrdb:color10} +bar-volume-foreground-3 = ${xrdb:color10} +bar-volume-foreground-4 = ${xrdb:color10} +bar-volume-foreground-5 = ${xrdb:color11} +bar-volume-foreground-6 = ${xrdb:color1} bar-volume-gradient = false bar-volume-indicator = | bar-volume-indicator-font = 2 @@ -319,7 +326,7 @@ full-at = 98 format-charging = Charging... #format-charging = -format-charging-underline = #ffb52a +format-charging-underline = ${xrdb:color3} format-discharging = #format-discharging = @@ -346,7 +353,7 @@ thermal-zone = 0 warn-temperature = 60 format =