diff options
Diffstat (limited to '')
| -rw-r--r-- | README.org | 87 | ||||
| -rw-r--r-- | des/i3/config | 27 | ||||
| -rw-r--r-- | des/i3/i3blocks/config | 17 | ||||
| l---------[-rwxr-xr-x] | des/i3/i3blocks/scripts/archupdates | 11 | ||||
| -rwxr-xr-x | des/i3/i3lock-color-custom.sh | 2 | ||||
| -rwxr-xr-x | scripts/format_displays.sh | 2 | ||||
| -rwxr-xr-x | scripts/toggle-xray.sh | 6 |
7 files changed, 31 insertions, 121 deletions
@@ -1,13 +1,9 @@ * Setup -Run setup.sh for a bare minimal setup. - ** Local Enviornment =.bash_profile= loads =.bash_profile.local= to keep a private local environment =.bashrc= loads =.bashrc.local= to keep a private local environment -** Things to do - *** $PROJ_DIR/scripts General scripts should be installed/symlinked into =/usr/local/bin= @@ -15,89 +11,8 @@ General scripts should be installed/symlinked into =/usr/local/bin= i3blocks scripts should be installed/symlinked into =/usr/local/i3blocks/= #+begin_src bash - $ for i in $(ls ~/.setup/configs/i3/i3blocks/scripts); do sudo ln -s ~/.setup/configs/i3/i3blocks/scripts/$i $i; done + $ for i in $(ls ~/.mycfg/configs/i3/i3blocks/scripts); do sudo ln -s ~/.mycfg/configs/i3/i3blocks/scripts/$i $i; done #+end_src -*** Udev Rules -https://wiki.archlinux.org/index.php/Udev - -When using i3wm, it's nice to have external displays automatically detected. Since /sys isn't a real filesystem, inotifywait has no guarantees. Thus, we write a udev rule which points to our =$PROJ_DIR/i3/format_displays.sh= script. - -_TODO_ - -**** Suggested Applications - -These application packages are based on the packages from [archlinux.org]([[https://www.archlinux.org/packages/]]). Each distro will vary. - -#+begin_quote -Note for ArchLinux users: Not all these packages are available from the standard repos. =cower= is recommended as a great lookup, discovery, and download tool, so you don't need to remember the entire snapshot URL ;) -#+end_quote - -**From the package manager**: -autoconf -automake -binutils -bash -clojure -cmake -docker -docker-compose -dropbox -emacs-git -firefox -gcc -gcc-libs -gdb -ghc -gimp -git -glibc -go -grep -gzip -htop -jdk8-openjdk -jq -keychain -less -libreoffice-fresh -libtool -nasm -npm -openssh -pass -patchelf -python -python-pip -rsync -sbcl -sbt -scala -screen -texlive-core -vim -xsel - -**Self managed /usr/local**: -arcanist -libphutil - -**ArchLinux specific**: -alsa-utils -bluez-utils -broadcom-wl -chromium -chromium-widevine -cower -intel-ucode (for macbookpro) -mbpfan-git -networkmanager -pepper-flash -tzupdate -wpa_supplicant - -**Gnome Specific** -boabab - **** Monospaced fonts I like [Adobe Source Code Pro](https://github.com/adobe-fonts/source-code-pro) diff --git a/des/i3/config b/des/i3/config index 961e1e2..56d9bab 100644 --- a/des/i3/config +++ b/des/i3/config @@ -27,21 +27,24 @@ exec --no-startup-id dunst bindsym $mod+F12 exec --no-startup-id /usr/bin/dunstctl close bindsym $mod+Shift+F12 exec --no-startup-id /usr/bin/dunstctl history-pop -# Order monitors -exec --no-startup-id xrandr --output DVI-D-0 --auto --output HDMI-0 --auto --left-of DVI-D-0 +# Detect Monitors +exec --no-startup-id autorandr --change # Background -exec --no-startup-id feh --bg-fill ~/.setup/des/i3/assets/wallpaper/yosemite_color_block.png +exec --no-startup-id feh --bg-fill ~/.mycfg/des/i3/assets/wallpaper/yosemite_color_block.png # Change background randomly -bindsym $mod+F8 exec --no-startup-id feh --bg-fill --randomize ~/.setup/des/i3/assets/wallpaper +bindsym $mod+F8 exec --no-startup-id feh --bg-fill --randomize ~/.mycfg/des/i3/assets/wallpaper + +# Toggle VPN or Proxy +bindsym $mod+F4 exec --no-startup-id ~/.mycfg/scripts/toggle-xray.sh # Compositor exec --no-startup-id compton --config ~/.config/compton.conf -b # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. -exec --no-startup-id xss-lock --transfer-sleep-lock "~/.setup/des/i3/i3lock-color-custom.sh" +exec --no-startup-id xss-lock --transfer-sleep-lock "~/.mycfg/des/i3/i3lock-color-custom.sh" ## Allow yad to float for i3bar calendar for_window [class="Yad"] floating enable @@ -63,10 +66,10 @@ bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 1%- && pkil # Take a screenshot bindsym --release $mod+F3 exec --no-startup-id "/usr/bin/import ~/workspace/scratch/screenshots/latest.png && cp ~/workspace/scratch/screenshots/latest.png ~/workspace/scratch/screenshots/$(date +%F_%T.%N).png" -# Use change_fan (int .setup dir) to adjust fan speeds +# Use change_fan (int .mycfg dir) to adjust fan speeds # TBD -# Use format_displays (in .setup dir) to configure external displays +# Use format_displays (in .mycfg dir) to configure external displays bindsym XF86LaunchA exec --no-startup-id format_displays # Use Mouse+$mod to drag floating windows to their wanted position @@ -84,11 +87,11 @@ bindsym $mod+q kill # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+space exec --no-startup-id i3-dmenu-desktop -bindsym $mod+space exec --no-startup-id rofi -show drun -theme ~/.setup/theme.rasi -bindsym $mod+Tab exec --no-startup-id rofi -show window -theme ~/.setup/theme.rasi +bindsym $mod+space exec --no-startup-id rofi -show drun -theme ~/.mycfg/theme.rasi +bindsym $mod+Tab exec --no-startup-id rofi -show window -theme ~/.mycfg/theme.rasi # Lock screen -bindsym $mod+F9 exec --no-startup-id "~/.setup/des/i3/i3lock-color-custom.sh" +bindsym $mod+F9 exec --no-startup-id "~/.mycfg/des/i3/i3lock-color-custom.sh" # change focus bindsym $mod+h focus left @@ -154,8 +157,8 @@ set $ws9 "9" set $ws10 "10" ## AD2 Specific -workspace $ws1 output HDMI-0 -workspace $ws2 output DVI-D-0 +workspace $ws1 output eDP-1 +workspace $ws2 output DP-3 # # switch to monitor # bindsym $mod+Mod1+1 focus output eDP-1 diff --git a/des/i3/i3blocks/config b/des/i3/i3blocks/config index 8858ae9..ec921cc 100644 --- a/des/i3/i3blocks/config +++ b/des/i3/i3blocks/config @@ -3,15 +3,6 @@ separator=false separator_block_width=15 markup=pango -[test] -command=date +%s -interval=once -signal=11 - -[xray] -interval=once -signal=11 - [battery] interval=1 color=#a8afb0 @@ -39,8 +30,12 @@ color=#cb4b16 [archupdates] interval=60 -color=#49E20E +color=#49e20e [calendar] interval=60 -color=#ffffff
\ No newline at end of file +color=#ffffff + +[xray] +interval=once +signal=11 diff --git a/des/i3/i3blocks/scripts/archupdates b/des/i3/i3blocks/scripts/archupdates index b74f872..aba6472 100755..120000 --- a/des/i3/i3blocks/scripts/archupdates +++ b/des/i3/i3blocks/scripts/archupdates @@ -1,10 +1 @@ -#!/usr/bin/bash - -PAC_UPDATES=$(checkupdates | wc -l) -AUR_UPDATES=$(auracle sync -q | wc -l) - -if [[ $PAC_UPDATES -gt 0 || $AUR_UPDATES -gt 0 ]]; then - echo " [$PAC_UPDATES .. $AUR_UPDATES]" -else - echo "<span color=\"#586e75\"> 0</span>" -fi +archupdates
\ No newline at end of file diff --git a/des/i3/i3lock-color-custom.sh b/des/i3/i3lock-color-custom.sh index a0e1e95..7c0649c 100755 --- a/des/i3/i3lock-color-custom.sh +++ b/des/i3/i3lock-color-custom.sh @@ -28,7 +28,7 @@ i3lock \ --bshl-color=$W \ \ --screen 1 \ --i "$HOME/.setup/des/i3/assets/lockscreen/dark_forest.png" \ +-i "$HOME/.mycfg/des/i3/assets/lockscreen/dark_forest.png" \ --clock \ --indicator \ --time-str="%H:%M:%S" \ diff --git a/scripts/format_displays.sh b/scripts/format_displays.sh index ce998b7..d67544a 100755 --- a/scripts/format_displays.sh +++ b/scripts/format_displays.sh @@ -4,7 +4,7 @@ DISPLAYS=( $(xrandr | grep " connected" | awk '{print $1}') ) declare -A DISP_RES -BG_IMG="~/.setup/des/i3/assets/wallpaper/yosemite_color_block.png" +BG_IMG="~/.mycfg/des/i3/assets/wallpaper/yosemite_color_block.png" VERBOSE="" if_echo () { diff --git a/scripts/toggle-xray.sh b/scripts/toggle-xray.sh new file mode 100755 index 0000000..a95ffd3 --- /dev/null +++ b/scripts/toggle-xray.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if systemctl is-active --quiet xray; then + systemctl stop xray +else + systemctl start xray +fi |
