Browse Source

Complete script overhaul in organization and calling

ansible
Micah Halter 3 years ago
parent
commit
ec84398d3b
  1. 1
      CHANGELOG.md
  2. 2
      etc/systemd/system/wakelock.service
  3. 85
      i3/.config/i3/config
  4. 106
      i3/.config/i3/scripts/alternating_layouts.py
  5. 7
      i3/.config/i3/scripts/music
  6. 5
      neovim/.config/nvim/init.vim
  7. 4
      qutebrowser/.config/qutebrowser/autoconfig.yml
  8. 2
      qutebrowser/.config/qutebrowser/config.py
  9. 6
      qutebrowser/.config/qutebrowser/qsettings/QtProject.conf
  10. 1
      scripts/.config/Scripts/compiler
  11. 0
      scripts/.config/Scripts/configs.shortcuts
  12. 2
      scripts/.config/Scripts/displayctrl
  13. 0
      scripts/.config/Scripts/folders.shortcuts
  14. 4
      scripts/.config/Scripts/genshortcuts
  15. 0
      scripts/.config/Scripts/i3-camtoggle
  16. 2
      scripts/.config/Scripts/i3-cliprog
  17. 2
      scripts/.config/Scripts/i3-focus
  18. 0
      scripts/.config/Scripts/i3-maim
  19. 7
      scripts/.config/Scripts/i3-music
  20. 0
      scripts/.config/Scripts/i3-powersaver
  21. 0
      scripts/.config/Scripts/i3-resize
  22. 0
      scripts/.config/Scripts/i3-runner
  23. 2
      scripts/.config/Scripts/i3-workspaceswap
  24. 2
      scripts/.config/Scripts/lock
  25. 0
      scripts/.config/Scripts/lock.png
  26. 0
      scripts/.config/Scripts/pins
  27. 0
      scripts/.config/Scripts/polybarlaunch
  28. 0
      scripts/.config/Scripts/qutebrowser_reload
  29. 2
      scripts/.config/Scripts/setbackground
  30. 0
      scripts/.config/Scripts/tasks
  31. 0
      scripts/.config/Scripts/toggletrackpad
  32. 0
      scripts/.config/Scripts/vim-anywhere
  33. 14
      scripts/.config/Scripts/wal-set
  34. 9
      sxiv/.config/sxiv/exec/key-handler
  35. 2
      xinit/.xinitrc
  36. 4
      zsh/.zshrc

1
CHANGELOG.md

@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- script reorganization and complete overhaul
- made `qutebrowser` the `$TRUEBROWSER` and use `linkhandler` as the `$BROWSER`
- moved `i3` variables to environment variables
- moved LaTeX style files to where they are automatically detected

2
etc/systemd/system/wakelock.service

@ -6,7 +6,7 @@ Before=suspend.target
User=micah
Type=forking
Environment=DISPLAY=:0
ExecStart=/home/micah/.config/Scripts/lock/lock.sh
ExecStart=/home/micah/.config/Scripts/lock
[Install]
WantedBy=suspend.target

85
i3/.config/i3/config

@ -3,8 +3,6 @@ set $mod Mod1
floating_modifier $mod
# set variables
set $cliprog zsh $HOME/.config/i3/scripts/cliprog
set $runner $TERMINAL -e $HOME/.config/i3/scripts/runner
set $i3exit "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
set $layoutupdate exec --no-startup-id polybar-msg hook i3layout 1
set $smallwidth 900
@ -137,9 +135,6 @@ for_window [title="video1 - mpv"] border none
# start compositor
exec --no-startup-id compton
# alternating layout script
#exec --no-startup-id $HOME/.config/i3/scripts/alternating_layouts.py
# set up caps lock - press = escape, hold = ctrl
exec_always --no-startup-id remaps
@ -160,10 +155,10 @@ assign [class="Telegram"] $workspace3
for_window [title="^pdfpc - present"] border none floating enable
# status bar
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec_always --no-startup-id polybarlaunch
# start dual monitor
exec --no-startup-id screen.sh -r HDMI-2 HDMI-3
exec --no-startup-id displayctrl -r HDMI-2 HDMI-3
# browser
exec --no-startup-id $BROWSER
@ -181,7 +176,7 @@ bindsym $mod+Shift+q kill
#bindsym $mod+Shift+Control+q
bindsym $mod+w exec --no-startup-id $BROWSER
bindsym $mod+Shift+w exec --no-startup-id $cliprog weather "wttr && read -k1 -s"
bindsym $mod+Shift+w exec --no-startup-id i3-cliprog weather "wttr && read -k1 -s"
#bindsym $mod+Control+w
#bindsym $mod+Shift+Control+w
@ -190,22 +185,22 @@ bindsym $mod+e exec --no-startup-id dmenuunicode
#bindsym $mod+Control+e
#bindsym $mod+Shift+Control+e
bindsym $mod+r exec --no-startup-id $cliprog files "$FILE"
bindsym $mod+Shift+r exec --no-startup-id $cliprog math "R -q --no-save"
bindsym $mod+r exec --no-startup-id i3-cliprog files "$FILE"
bindsym $mod+Shift+r exec --no-startup-id i3-cliprog math "R -q --no-save"
#bindsym $mod+Control+r
#bindsym $mod+Shift+Control+r
#bindsym $mod+t
bindsym $mod+Shift+t exec --no-startup-id $cliprog tasks "gotop"
bindsym $mod+Shift+t exec --no-startup-id i3-cliprog tasks "gotop"
#bindsym $mod+Control+t
#bindsym $mod+Shift+Control+t
#bindsym $mod+y
bindsym $mod+Shift+y exec --no-startup-id $TERMINAL -name mpsyt -e $HOME/.config/i3/scripts/runner "mpsyt"
bindsym $mod+Shift+y exec --no-startup-id $TERMINAL -name mpsyt -e i3-runner "mpsyt"
#bindsym $mod+Control+y
#bindsym $mod+Shift+Control+y
bindsym $mod+u exec --no-startup-id $cliprog dropdown "tmuxinator scratchpad"
bindsym $mod+u exec --no-startup-id i3-cliprog dropdown "tmuxinator scratchpad"
#bindsym $mod+Shift+u
#bindsym $mod+Control+u
#bindsym $mod+Shift+Control+u
@ -216,27 +211,27 @@ bindsym $mod+u exec --no-startup-id $cliprog dropdown "tmuxinator
#bindsym $mod+Shift+Control+i
#bindsym $mod+o
bindsym $mod+Shift+o exec --no-startup-id vim-anywhere.sh
bindsym $mod+Shift+o exec --no-startup-id vim-anywhere
#bindsym $mod+Control+o
#bindsym $mod+Shift+Control+o
#bindsym $mod+p
bindsym $mod+Shift+p exec --no-startup-id $cliprog upass "upass"
bindsym $mod+Shift+p exec --no-startup-id i3-cliprog upass "upass"
#bindsym $mod+Control+p
#bindsym $mod+Shift+Control+p
bindsym $mod+a focus parent
bindsym $mod+Shift+a exec --no-startup-id $cliprog ncpamixer "ncpamixer"
bindsym $mod+Shift+a exec --no-startup-id i3-cliprog ncpamixer "ncpamixer"
#bindsym $mod+Control+a
#bindsym $mod+Shift+Control+a
bindsym $mod+s split toggle; $layoutupdate
bindsym $mod+Shift+s exec --no-startup-id python2 $HOME/.config/i3/scripts/workspaceswap.py; $layoutupdate
bindsym $mod+Shift+s exec --no-startup-id i3-workspaceswap; $layoutupdate
#bindsym $mod+Control+s
#bindsym $mod+Shift+Control+s
bindsym $mod+d focus child
bindsym $mod+Shift+d exec --no-startup-id zsh displayselect
bindsym $mod+Shift+d exec --no-startup-id displayselect
#bindsym $mod+Control+d
#bindsym $mod+Shift+Control+d
@ -246,28 +241,28 @@ bindsym $mod+Shift+f exec --no-startup-id firefox
#bindsym $mod+Shift+Control+f
#bindsym $mod+g
bindsym $mod+Shift+g exec --no-startup-id zsh $HOME/.config/i3/scripts/music
bindsym $mod+Shift+g exec --no-startup-id i3-music
#bindsym $mod+Control+g
bindsym $mod+Shift+Control+g exec --no-startup-id killall gpymusic & killall mpsyt & killall cava & echo '' > $HOME/.nowplaying
bindsym $mod+h focus left; $layoutupdate
bindsym $mod+Shift+h move left; $layoutupdate
bindsym $mod+Control+h exec --no-startup-id $HOME/.config/i3/scripts/resize left
bindsym $mod+Control+h exec --no-startup-id i3-resize left
bindsym $mod+Shift+Control+h move workspace to output left; $layoutupdate
bindsym $mod+j focus down; $layoutupdate
bindsym $mod+Shift+j move down; $layoutupdate
bindsym $mod+Control+j exec --no-startup-id $HOME/.config/i3/scripts/resize down
bindsym $mod+Control+j exec --no-startup-id i3-resize down
bindsym $mod+Shift+Control+j exec --no-startup-id amixer -D pulse sset Master 5%-
bindsym $mod+k focus up; $layoutupdate
bindsym $mod+Shift+k move up; $layoutupdate
bindsym $mod+Control+k exec --no-startup-id $HOME/.config/i3/scripts/resize up
bindsym $mod+Control+k exec --no-startup-id i3-resize up
bindsym $mod+Shift+Control+k exec --no-startup-id amixer -D pulse sset Master 5%+
bindsym $mod+l focus right; $layoutupdate
bindsym $mod+Shift+l move right; $layoutupdate
bindsym $mod+Control+l exec --no-startup-id $HOME/.config/i3/scripts/resize right
bindsym $mod+Control+l exec --no-startup-id i3-resize right
bindsym $mod+Shift+Control+l move workspace to output right; $layoutupdate
bindsym $mod+z exec --no-startup-id dmenumount
@ -280,13 +275,13 @@ bindsym $mod+Shift+z exec --no-startup-id dmenuumount
#bindsym $mod+Control+x
#bindsym $mod+Shift+Control+x
bindsym $mod+c exec --no-startup-id $runner "weechat"
bindsym $mod+Shift+c exec --no-startup-id $cliprog cal "ikhal"
bindsym $mod+c exec --no-startup-id $TERMINAL -e i3-runner "weechat"
bindsym $mod+Shift+c exec --no-startup-id i3-cliprog cal "ikhal"
#bindsym $mod+Control+c
#bindsym $mod+Shift+Control+c
#bindsym $mod+v
bindsym $mod+Shift+v exec --no-startup-id $runner "rtv --no-flash"
bindsym $mod+Shift+v exec --no-startup-id $TERMINAL -e i3-runner "rtv --no-flash"
#bindsym $mod+Control+v
#bindsym $mod+Shift+Control+v
@ -296,12 +291,12 @@ bindsym $mod+b exec --no-startup-id dmenuexpand $HOME/.bookmarks $
#bindsym $mod+Shift+Control+b
#bindsym $mod+n
bindsym $mod+Shift+n exec --no-startup-id $runner "newsboat"
bindsym $mod+Shift+n exec --no-startup-id $TERMINAL -e i3-runner "newsboat"
#bindsym $mod+Control+n
#bindsym $mod+Shift+Control+n
bindsym $mod+m exec --no-startup-id $cliprog email "neomutt"
bindsym $mod+Shift+m exec --no-startup-id $TERMINAL -name gpymusic -e $HOME/.config/i3/scripts/runner "gpymusic"
bindsym $mod+m exec --no-startup-id i3-cliprog email "neomutt"
bindsym $mod+Shift+m exec --no-startup-id $TERMINAL -name gpymusic -e i3-runner "gpymusic"
#bindsym $mod+Control+m
bindsym $mod+Shift+Control+m exec --no-startup-id amixer -D pulse sset Master toggle
@ -387,7 +382,7 @@ bindsym $mod+Shift+backslash exec --no-startup-id networkmanager_dmen
#bindsym $mod+Shift+Control+backslash
#bindsym $mod+semicolon
bindsym $mod+Shift+semicolon exec --no-startup-id $TERMINAL -name cava -e $HOME/.config/i3/scripts/runner "cava"
bindsym $mod+Shift+semicolon exec --no-startup-id $TERMINAL -name cava -e i3-runner "cava"
#bindsym $mod+Shift+Control+semicolon
#bindsym $mod+apostrophe
@ -419,19 +414,19 @@ bindsym $mod+Shift+Control+space exec --no-startup-id echo "cycle pause"
# FUNCTION KEYBINDINGS #
########################
bindsym $mod+F1 exec --no-startup-id screen.sh HDMI-3
bindsym $mod+F1 exec --no-startup-id displayctrl HDMI-3
#bindsym $mod+Shift+F1
bindsym $mod+F2 exec --no-startup-id screen.sh HDMI-2
bindsym $mod+F2 exec --no-startup-id displayctrl HDMI-2
#bindsym $mod+Shift+F2
bindsym $mod+F3 exec --no-startup-id screen.sh -r HDMI-2 HDMI-3
bindsym $mod+Shift+F3 exec --no-startup-id screen.sh -r HDMI-2 -p HDMI-3
bindsym $mod+F3 exec --no-startup-id displayctrl -r HDMI-2 HDMI-3
bindsym $mod+Shift+F3 exec --no-startup-id displayctrl -r HDMI-2 -p HDMI-3
bindsym $mod+F4 exec --no-startup-id screen.sh LVDS-1
bindsym $mod+F4 exec --no-startup-id displayctrl LVDS-1
#bindsym $mod+Shift+F4
bindsym $mod+F5 exec --no-startup-id $HOME/.config/i3/scripts/powersaver
bindsym $mod+F5 exec --no-startup-id i3-powersaver
#bindsym $mod+Shift+F5
#bindsym $mod+F6
@ -452,18 +447,18 @@ bindsym $mod+F5 exec --no-startup-id $HOME/.config/i3/scripts/powersaver
#bindsym $mod+F11
#bindsym $mod+Shift+F11
bindsym $mod+F12 exec --no-startup-id $HOME/.config/i3/scripts/toggletrackpad
bindsym $mod+F12 exec --no-startup-id toggletrackpad
#bindsym $mod+Shift+F12
bindsym Print exec --no-startup-id $HOME/.config/i3/scripts/i3-maim -d
bindsym Shift+Print exec --no-startup-id $HOME/.config/i3/scripts/i3-maim -w
bindsym --release Control+Print exec --no-startup-id $HOME/.config/i3/scripts/i3-maim -s
bindsym Shift+Control+Print exec --no-startup-id $HOME/.config/i3/scripts/camtoggle
bindsym Print exec --no-startup-id i3-maim -d
bindsym Shift+Print exec --no-startup-id i3-maim -w
bindsym --release Control+Print exec --no-startup-id i3-maim -s
bindsym Shift+Control+Print exec --no-startup-id i3-camtoggle
bindsym $mod+Scroll_Lock exec --no-startup-id lock.sh
bindsym $mod+Scroll_Lock exec --no-startup-id lock
#bindsym $mod+Shift+Scroll_Lock
bindsym $mod+Pause exec --no-startup-id $HOME/.config/polybar/launch.sh
bindsym $mod+Pause exec --no-startup-id polybarlaunch
#bindsym $mod+Shift+Pause
bindsym $mod+Insert exec --no-startup-id bash screencast
@ -496,6 +491,6 @@ bindsym XF86AudioPrev exec --no-startup-id echo "playlist-prev
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 10
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 10
bindsym XF86ScreenSaver exec --no-startup-id lock.sh
bindsym XF86ScreenSaver exec --no-startup-id lock
bindsym XF86Launch1 exec --no-startup-id $HOME/.config/polybar/launch.sh
bindsym XF86Launch1 exec --no-startup-id polybarlaunch

106
i3/.config/i3/scripts/alternating_layouts.py

@ -1,106 +0,0 @@
#!/usr/bin/env python
import i3
import re
import subprocess
import getopt
import sys
import os
def find_parent(window_id):
"""
Find the parent of a given window id
"""
root_window = i3.get_tree()
result = [None]
def finder(n, p=None):
if result[0] is not None:
return
for node in n:
if node['id'] == window_id:
result[0] = p
return
if len(node['nodes']):
finder(node['nodes'], node)
finder(root_window['nodes'])
return result[0]
def set_layout():
"""
Set the layout/split for the currently
focused window to either vertical or
horizontal, depending on its width/height
"""
current_win = i3.filter(nodes=[], focused=True)
for win in current_win:
parent = find_parent(win['id'])
if (parent and "rect" in parent
and parent['layout'] != 'tabbed'
and parent['layout'] != 'stacked'):
height = parent['rect']['height']
width = parent['rect']['width']
if height > width:
new_layout = 'vertical'
else:
new_layout = 'horizontal'
i3.split(new_layout)
def print_help():
print("Usage: " + sys.argv[0] + " [-p path/to/pid.file]")
print("")
print("Options:")
print(" -p path/to/pid.file Saves the PID for this program in the filename specified")
print("")
def main():
"""
Main function - listen for window focus
changes and call set_layout when focus
changes
"""
opt_list, args = getopt.getopt(sys.argv[1:], 'hp:')
pid_file = None
for opt in opt_list:
if opt[0] == "-h":
print_help()
sys.exit()
if opt[0] == "-p":
pid_file = opt[1]
if pid_file:
with open(pid_file, 'w') as f:
f.write(str(os.getpid()))
process = subprocess.Popen(
['xprop', '-root', '-spy'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
regex = re.compile(b'^_NET_CLIENT_LIST_STACKING|^_NET_ACTIVE_WINDOW')
last_line = ""
while True:
line = process.stdout.readline()
if line == b'': #X is dead
break
if line == last_line:
continue
if regex.match(line):
set_layout()
last_line = line
process.kill()
sys.exit()
if __name__ == "__main__":
main()

7
i3/.config/i3/scripts/music

@ -1,7 +0,0 @@
#!/bin/bash
i3-msg "workspace 4"
i3-msg "append_layout $HOME/.config/i3/layouts/music.json"
i3-msg 'exec --no-startup-id urxvt -name mpsyt -e $HOME/.config/i3/scripts/runner "mpsyt"'
i3-msg 'exec --no-startup-id urxvt -name cava -e $HOME/.config/i3/scripts/runner "cava"'
i3-msg 'exec --no-startup-id urxvt -name gpymusic -e $HOME/.config/i3/scripts/runner "gpymusic"'

5
neovim/.config/nvim/init.vim

@ -433,11 +433,6 @@ augroup groff
autocmd BufRead,BufNewFile *.ms,*.me,*.mom set filetype=groff
augroup END
" Auto build configs on edit of certain files
augroup shortcuts
autocmd BufWritePost $HOME/.config/Scripts/configs,$HOME/.config/Scripts/folders !bash $HOME/.config/Scripts/shortcuts.sh
augroup END
" Markdown Settings
augroup markup
" set tab to 4

4
qutebrowser/.config/qutebrowser/autoconfig.yml

@ -29,6 +29,10 @@ settings:
I: :open -p
W: :tab-give
t: :open -t
content.headers.user_agent:
global: null
downloads.location.directory:
global: ~/Documents
editor.command:
global:
- urxvt

2
qutebrowser/.config/qutebrowser/config.py

@ -131,7 +131,7 @@ c.tabs.show = 'multiple'
c.content.geolocation = False
c.editor.command = ['urxvt', '-e', '/home/micah/.config/i3/scripts/runner', 'nvim {}']
c.editor.command = ['urxvt', '-e', 'runner', 'nvim {}']
c.qt.args = ['ppapi-widevine-path=/usr/lib/qt/plugins/ppapi/libwidevinecdmadapter.so', 'disable-seccomp-filter-sandbox']

6
qutebrowser/.config/qutebrowser/qsettings/QtProject.conf

@ -1,7 +1,7 @@
[FileDialog]
history=file:///usr/share/fonts/misc, file:///home/micah/Downloads/terminus-ttf-4.46.0, file:///home/micah/Documents/School-Work/CS4290/Lab/Lab01/src, file:///home/micah/Documents/School-Work/CS4290/Lab/Lab01/scripts, file:///home/micah/Pictures, file:///home/micah/Documents/School-Work/PHIL3127/Essays/Essay01
lastVisited=file:///home/micah/Documents/School-Work/PHIL3127/Essays/Essay01
qtVersion=5.11.1
history=file:///home/micah, file:///home/micah/Documents/School-Work/CS4510/Notes/unit01, file:///home/micah/Downloads, file:///home/micah/Documents/School-Work/CS3220/Homework/HW01, file:///home/micah/Documents/School-Work/CS4510/Homework/HW01
lastVisited=file:///home/micah
qtVersion=5.12.0
shortcuts=file:, file:///home/micah
sidebarWidth=90
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xec\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0?\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\0n\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)

1
scripts/.config/Scripts/compiler

@ -31,4 +31,5 @@ case "$file" in
*\.c) gcc "$file" -o "$base" && "$base" ;;
*\.py) python "$file" ;;
*\.go) go run "$file" ;;
*\.shortcuts) genshortcuts ;;
esac

0
scripts/.config/Scripts/configs → scripts/.config/Scripts/configs.shortcuts

2
scripts/.config/Scripts/screen.sh → scripts/.config/Scripts/displayctrl

@ -86,6 +86,6 @@ fi
echo $cmd
eval $cmd
$HOME/.config/polybar/launch.sh
$HOME/.config/Scripts/polybarlaunch
$HOME/.config/Scripts/setbackground
$HOME/.config/Scripts/remaps

0
scripts/.config/Scripts/folders → scripts/.config/Scripts/folders.shortcuts

4
scripts/.config/Scripts/shortcuts.sh → scripts/.config/Scripts/genshortcuts

@ -1,8 +1,8 @@
#!/bin/bash
# Config locations
folders="$HOME/.config/Scripts/folders"
configs="$HOME/.config/Scripts/configs"
folders="$HOME/.config/Scripts/folders.shortcuts"
configs="$HOME/.config/Scripts/configs.shortcuts"
# Output locations
zsh_shortcuts="$HOME/.zsh_shortcuts"

0
i3/.config/i3/scripts/camtoggle → scripts/.config/Scripts/i3-camtoggle

2
i3/.config/i3/scripts/cliprog → scripts/.config/Scripts/i3-cliprog

@ -4,7 +4,7 @@ INSTANCE=$1
COMMAND=$2
if ! xdotool search --classname "$INSTANCE" > /dev/null; then
i3-msg "exec urxvt -name $INSTANCE -e /home/micah/.config/i3/scripts/runner \"$COMMAND\""
i3-msg "exec $TERMINAL -name $INSTANCE -e i3-runner \"$COMMAND\""
sleep .8
fi

2
i3/.config/i3/scripts/focus.py → scripts/.config/Scripts/i3-focus

@ -1,4 +1,4 @@
#!/usr/bin/python2.7
#!/usr/bin/env python2
import i3
from subprocess import check_output

0
i3/.config/i3/scripts/i3-maim → scripts/.config/Scripts/i3-maim

7
scripts/.config/Scripts/i3-music

@ -0,0 +1,7 @@
#!/bin/bash
i3-msg "workspace 4"
i3-msg "append_layout $HOME/.config/i3/layouts/music.json"
i3-msg 'exec --no-startup-id urxvt -name mpsyt -e runner "mpsyt"'
i3-msg 'exec --no-startup-id urxvt -name cava -e runner "cava"'
i3-msg 'exec --no-startup-id urxvt -name gpymusic -e runner "gpymusic"'

0
i3/.config/i3/scripts/powersaver → scripts/.config/Scripts/i3-powersaver

0
i3/.config/i3/scripts/resize → scripts/.config/Scripts/i3-resize

0
i3/.config/i3/scripts/runner → scripts/.config/Scripts/i3-runner

2
i3/.config/i3/scripts/workspaceswap.py → scripts/.config/Scripts/i3-workspaceswap

@ -1,4 +1,4 @@
#!/usr/bin/python2.7
#!/usr/bin/env python2
import i3
# retrieve only active outputs

2
scripts/.config/Scripts/lock/lock.sh → scripts/.config/Scripts/lock

@ -10,7 +10,7 @@ lock() {
lockwidth=256
lockheight=256
. $HOME/.cache/wal/colors.sh
convert $HOME/.config/Scripts/lock/lock.png -fuzz 50% -fill "$color4" -opaque "#30AF91" /tmp/lock.png
convert $HOME/.config/Scripts/lock.png -fuzz 50% -fill "$color4" -opaque "#30AF91" /tmp/lock.png
convert /tmp/lock.png -fuzz 10% -fill "$color0" -opaque "#FFFFFF" /tmp/lock.png
convert /tmp/lock.png -resize "$lockwidth"x"$lockheight" /tmp/lock.png

0
scripts/.config/Scripts/lock/lock.png → scripts/.config/Scripts/lock.png

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
scripts/.config/Scripts/pins.sh → scripts/.config/Scripts/pins

0
polybar/.config/polybar/launch.sh → scripts/.config/Scripts/polybarlaunch

0
scripts/.config/Scripts/qutebrowser_reload.py → scripts/.config/Scripts/qutebrowser_reload

2
scripts/.config/Scripts/setbackground

@ -4,4 +4,4 @@
xwallpaper --zoom "$HOME/.config/wall"
[ ! -z "$2" ] && wal -g -n -i $HOME/.config/wall -o $HOME/.config/Scripts/wal-set
[ ! -z "$2" ] && wal -n -i $HOME/.config/wall -o wal-set

0
scripts/.config/Scripts/tasks.sh → scripts/.config/Scripts/tasks

0
i3/.config/i3/scripts/toggletrackpad → scripts/.config/Scripts/toggletrackpad

0
scripts/.config/Scripts/vim-anywhere.sh → scripts/.config/Scripts/vim-anywhere

14
scripts/.config/Scripts/wal-set

@ -1,12 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/bash
reload_qute() {
python3 /home/micah/.config/Scripts/qutebrowser_reload.py
}
main() {
systemctl --user restart dunst.service
reload_qute
}
main
systemctl --user restart dunst.service
qutebrowser_reload

9
sxiv/.config/sxiv/exec/key-handler

@ -5,16 +5,11 @@ do
fullpath="$(pwd)/$file"
case "$1" in
"w")
cp -f "$file" ~/.config/wall &&
cp -f "$file" /usr/share/wallpaper/wall &&
setbackground &&
wal -g -n -i "$HOME/.config/wall" -o "$HOME/.config/Scripts/wal-set"
setbackground "$file" wal &&
notify-send "Wallpaper changed."
;;
"W")
cp -f "$file" ~/.config/wall &&
cp -f "$file" /usr/share/wallpaper/wall &&
setbackground
setbackground "$file"
notify-send "Wallpaper changed."
;;
"c")

2
xinit/.xinitrc

@ -7,6 +7,6 @@ export VISUAL=$EDITOR
export BROWSER="$HOME/.config/Scripts/linkhandler"
export TRUEBROWSER="qutebrowser"
PATH="$PATH:$HOME/.config/i3/scripts/:$HOME/.config/polybar/:$HOME/.config/Scripts/:$HOME/.config/Scripts/lock/:$HOME/.gem/ruby/2.5.0/bin:$HOME/go/bin:$HOME/.local/bin"
PATH="$PATH:$HOME/.config/Scripts/:$HOME/.gem/ruby/2.5.0/bin:$HOME/go/bin:$HOME/.local/bin"
exec i3

4
zsh/.zshrc

@ -86,9 +86,9 @@ export FZF_DEFAULT_OPS="--extended"
export FZF_DEFAULT_COMMAND="fd --type f"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
[ -f $HOME/.config/Scripts/pins.sh ] && source $HOME/.config/Scripts/pins.sh
[ -f $HOME/.config/Scripts/pins.sh ] && source $HOME/.config/Scripts/pins
[ -f $HOME/.config/Scripts/tasks.sh ] && source $HOME/.config/Scripts/tasks.sh
[ -f $HOME/.config/Scripts/tasks.sh ] && source $HOME/.config/Scripts/tasks
(cat $HOME/.cache/wal/sequences &)

Loading…
Cancel
Save