From 198cf8bdcce0d114904f16e1e91de0548b26fd03 Mon Sep 17 00:00:00 2001 From: Egor Kovetskiy Date: Tue, 27 Jun 2017 21:07:41 +0300 Subject: [PATCH] cleanup: fix weird +x at dircolors --- .Xresources | 0 .config/autorandr/native/config | 2 - .config/autorandr/vga/config | 5 -- .config/istart | 34 --------- .config/surfingkeys.js | 64 ---------------- .dircolors.dark | 0 .dircolors.light | 0 .xinitrc | 0 packager.sh => bin/packager.sh | 0 rootstrap => bin/rootstrap | 0 packages | 130 -------------------------------- usb-automount-new | 118 ----------------------------- 12 files changed, 353 deletions(-) mode change 100755 => 100644 .Xresources delete mode 100644 .config/autorandr/native/config delete mode 100644 .config/autorandr/vga/config delete mode 100644 .config/istart delete mode 100644 .config/surfingkeys.js mode change 100755 => 100644 .dircolors.dark mode change 100755 => 100644 .dircolors.light mode change 100755 => 100644 .xinitrc rename packager.sh => bin/packager.sh (100%) rename rootstrap => bin/rootstrap (100%) delete mode 100644 packages delete mode 100755 usb-automount-new diff --git a/.Xresources b/.Xresources old mode 100755 new mode 100644 diff --git a/.config/autorandr/native/config b/.config/autorandr/native/config deleted file mode 100644 index d16a59f2..00000000 --- a/.config/autorandr/native/config +++ /dev/null @@ -1,2 +0,0 @@ -output DP1 -mode preferred diff --git a/.config/autorandr/vga/config b/.config/autorandr/vga/config deleted file mode 100644 index e3266b45..00000000 --- a/.config/autorandr/vga/config +++ /dev/null @@ -1,5 +0,0 @@ -output eDP1 -mode preferred -pos 0x0 -output DP1 -off diff --git a/.config/istart b/.config/istart deleted file mode 100644 index de950340..00000000 --- a/.config/istart +++ /dev/null @@ -1,34 +0,0 @@ -# vim: ft=ruby - -i3: 1 -$ marvex -wait_window: 1-1 -sleep: 1 - -i3: 2 -$ marvex -wait_window: 2-1 -sleep: 1 - -i3: q -$ firefox -wait_window: firefox -sleep: 1 - -i3: s -$ google-chrome-stable -wait_window: Google Chrome -sleep: 1 - -i3: e -$ marvex -e mutt -wait_window: e-1 -sleep: 1 - -i3: z -$ marvex -e mcb n -$ marvex -e mcb p -wait_window: z-1 -wait_window: z-2 - -$ notify-send "end" diff --git a/.config/surfingkeys.js b/.config/surfingkeys.js deleted file mode 100644 index 05166f82..00000000 --- a/.config/surfingkeys.js +++ /dev/null @@ -1,64 +0,0 @@ -var path = 'file:///home/operator/.config/surfingkeys.js' -// Do not forget to enable 'Allow access to the URLs' for access to file:// -// Yandex: browser://extensions -// Chrome: chrome://extensions -// http://i.imgur.com/rOO37rm.png - -var openLink = function(url) { - return function(){ - runtime.command({ - action: 'openLink', - tab: { - tabbed: true - }, - position: runtime.settings.newTabPosition, - url: url - }) - } -} - -var favorites = function(prefix, urls) { - for (var key in urls) { - mapkey( - prefix + key, - 'favorite:' + urls[key], - openLink('http://' + urls[key]) - ) - } -} - -var sourceSettings = function() { - runtime.command({ - action: 'loadSettingsFromUrl', - url: path, - }); - console.log('source ' + path) -} - -var pasteLink = function() { - Normal.getContentFromClipboard(function(buffer) { - window.location.href = buffer.data - }) -} - -settings.tabsThreshold = 0 // omnibar instead of table -settings.smoothScroll = false - -mapkey(';', 'tabswitcher', Normal.chooseTab) -mapkey('=', 'source settings', sourceSettings) -mapkey('p', 'paste link', pasteLink) - -map('F', 'af') -map('o', 'go') -map('j', '') -map('k', '') - -favorites('g', { - g: 'gmail.com', - v: 'vk.com', - t: 'twitter.com', - h: 'github.com', - y: 'news.ycombinator.com', - p: 'postdevops.slack.com', - n: 'ngs-team.slack.com', -}) diff --git a/.dircolors.dark b/.dircolors.dark old mode 100755 new mode 100644 diff --git a/.dircolors.light b/.dircolors.light old mode 100755 new mode 100644 diff --git a/.xinitrc b/.xinitrc old mode 100755 new mode 100644 diff --git a/packager.sh b/bin/packager.sh similarity index 100% rename from packager.sh rename to bin/packager.sh diff --git a/rootstrap b/bin/rootstrap similarity index 100% rename from rootstrap rename to bin/rootstrap diff --git a/packages b/packages deleted file mode 100644 index 9522129d..00000000 --- a/packages +++ /dev/null @@ -1,130 +0,0 @@ -alsaequal -alsaequal-mgr -apulse -args-git -ash -ash-mailcap -ash-mailcap-autoview -atom-editor-bin -bashmount -bash-statemgr -bc -bitbucket-cli -byzanz-git -cake -clidoc -cli-visualizer -cmake -dmenu -downgrade -dpkg -dunst -feh -ffmpeg -firefox -flashplugin -freetype2-infinality -fzf -git -go -go-fast -google-chrome -google-chrome-beta -highlight-git -hub -i3-wm -icmake -imagemagick -impl -inotify-tools -intltool-debian -ix -jdk7 -jq -jre -keynav-improved-grid-git -libnotify -libqxt -libtinfo -libtinfo-5 -llpp -lm_sensors -log4c -logcat-color -loudmouth-ossl -lshw -lynx -marvex -mcabber-crew-hg-extended -mcabber-module-autojoin -mcabber-module-external-editor -mcabber-module-focus -mcabber-module-highlight-git -mcabber-module-slack-completion -mercurial -mplayer -msmtp -ncurses5-compat-libs -neomutt-git -net-tools -notify-send.sh -openssh -orgalorg-git -pacbuilder-svn -package-query -pdns-utils -perl4-corelibs -pkgbuild-introspection -pkgfile -po-debconf -python-todo-t -rar -redshift -repo -rtorrent -ruby-erubis -ruby-thor -ruby-tmuxinator-git -runki -rxvt -rxvt-unicode-nobuiltins -sconstools-hg -shift-shift -sift-bin -sloc-git -sox -stacket -sxhkd-git -systemd-cat-bash -the_silver_searcher -tmux -tor-browser-ru -tree -ttf-ms-fonts -ttf-tahoma -ttf-vista-fonts -udr -unzip -upower -urxvt-autocomplete-all-the-things-git -urxvt-perls-git -usermount-git -vimperator-git -virtualbox-bin -wget -wrap-git -xclip -xdotool-git -xidel -xlogin-git -xorg-startx-systemd -xorg-xclipboard -xorg-xinit -xsel -xtrlock -yaffs2utils-svn -yandex-browser-beta -yandex-disk -yaourt -zabbixctl -zip diff --git a/usb-automount-new b/usb-automount-new deleted file mode 100755 index 9ef8e3b9..00000000 --- a/usb-automount-new +++ /dev/null @@ -1,118 +0,0 @@ -#!/bin/bash - -:monitor() { - inotifywait \ - --monitor \ - --event create,delete \ - --format '%e %w%f' \ - /dev -} - -:get_device_name() { - local device="$1" - - echo "$device" | md5sum | awk '{print $1}' -} - -:get_device_directory() { - local device_name=$1 - - echo "/var/run/user/$UID/$device_name" -} - -:get_device_symlink() { - local device_directory=$1 - - if [[ -f "$device_directory/.link" ]]; then - cat "$device_directory/.link" - fi -} - -:symlink_device_directory() { - local device_directory=$1 - local device_symlink=$2 - - :sudo ln -s -f "$device_directory" "$device_symlink" -} - -:umount() { - local device_name=$1 - :sudo umount "/dev/mapper/$device_name" -} - -:close() { - local device_name=$1 - :sudo cryptsetup close "$device_name" -} - -:open() { - local device=$1 - local device_name=$2 - - :sudo cryptsetup open "$device" "$device_name" < /dev/tty -} - -:mount() { - local device_name=$1 - local device_directory=$2 - - mkdir -p "$device_directory" - :sudo mount "/dev/mapper/$device_name" "$device_directory" -} - -:shell() { - local device_directory="$1" - local device_symlink="$(:get_device_symlink "$device_directory")" - - if [[ "$device_symlink" ]]; then - device_directory="$device_symlink" - fi - - cd "$device_directory" - $SHELL -i -} - -:sudo() { - echo "$(highlight bold)sudo: $@$(highlight reset)" - sudo "$@" -} - -:info() { - echo "$(highlight fg green)$@$(highlight reset)" -} - -:main() { - ls /dev/sd* | while read device; do - if ! sudo cryptsetup isLuks "$device" &>/dev/null; then - continue - fi - - local device_name="$(:get_device_name "$device")" - local device_directory="$(:get_device_directory "$device_name")" - - :info "device: $device" - :info "device directory: $device_directory" - - if findmnt "$device_directory" >/dev/null; then - :shell "$device_directory" - else - :open "$device" "$device_name" - :mount "$device_name" "$device_directory" - - local device_symlink="$(:get_device_symlink "$device_directory")" - - :info "device target: $device_symlink" - - if [[ "$device_symlink" ]]; then - :symlink_device_directory "$device_directory" "$device_symlink" - fi - - :shell "$device_directory" - - :umount "$device_name" - :close "$device_name" - fi - done -} - -:main "$@"