From 5ef2714a79603c0e5d941744e5b1c7f29cf66512 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 28 Feb 2015 16:36:51 -0500 Subject: [PATCH 01/16] proper fonts for panel uushi for icons, and termsyn (13) for text --- x/.profile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x/.profile b/x/.profile index 73c7528..1dbea27 100644 --- a/x/.profile +++ b/x/.profile @@ -1,5 +1,6 @@ export PATH="$HOME/.local/bin:$HOME/.cabal/bin:$PATH" PANEL_FIFO=/tmp/panel-fifo PANEL_HEIGHT=24 -PANEL_FONT_FAMILY="-*-termsyn-medium-r-normal-*-12-*-*-*-c-*-*-1" -export PANEL_FIFO PANEL_HEIGHT PANEL_FONT_FAMILY +PANEL_FONT_FAMILY1="-*-termsyn-medium-r-normal-*-13-*-*-*-c-*-*-1" +PANEL_FONT_FAMILY2="-*-uushi-medium-*-*-*-11-*-*-*-*-*-*-*" +export PANEL_FIFO PANEL_HEIGHT PANEL_FONT_FAMILY1 PANEL_FONT_FAMILY2 -- 2.20.1 From e65630e02ebd6d255f86951e3b768a2c323712e2 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 28 Feb 2015 16:39:46 -0500 Subject: [PATCH 02/16] [spacemacs] disable haskell conf layer & set font --- spacemacs/.spacemacs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spacemacs/.spacemacs b/spacemacs/.spacemacs index e9f2a61..8fed059 100644 --- a/spacemacs/.spacemacs +++ b/spacemacs/.spacemacs @@ -10,7 +10,7 @@ ;; Paths must have a trailing slash (ie. `~/.mycontribs/') dotspacemacs-configuration-layer-path '() ;; List of configuration layers to load. - dotspacemacs-configuration-layers '(mu4e evil git haskell c-c++ auctex html) + dotspacemacs-configuration-layers '(mu4e evil git c-c++ auctex html) ;; A list of packages and/or extensions that will not be install and loaded. dotspacemacs-excluded-packages '() ) @@ -73,6 +73,12 @@ dotspacemacs-default-package-repository nil ;; Disable setting the cursor color according to states dotspacemacs-colorize-cursor-according-to-state nil + ;; font + dotspacemacs-default-font '("Source Code Pro for Powerline" + :size 14 + :weight normal + :width normal + :powerline-scale 1.1) ) ;; Initialization Hooks -- 2.20.1 From 6cfa03bc98ebd197c4c451056234fda564daa87e Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 28 Feb 2015 22:00:23 -0500 Subject: [PATCH 03/16] update color theme (Base16 Tomorrow) update panel colors, conky, dmenu and gtk themes --- bspwm/.local/bin/panel_colors | 45 ++++++++++++++++---------------- conky/.conkyrc | 2 +- gtk/.config/gtk-3.0/settings.ini | 4 +-- gtk/.gtkrc-2.0 | 2 +- sxhkd/.config/sxhkd/sxhkdrc | 2 +- 5 files changed, 28 insertions(+), 27 deletions(-) diff --git a/bspwm/.local/bin/panel_colors b/bspwm/.local/bin/panel_colors index a6a9fa1..6327864 100644 --- a/bspwm/.local/bin/panel_colors +++ b/bspwm/.local/bin/panel_colors @@ -1,28 +1,29 @@ -COLOR_FOREGROUND='#FFfefdfb' -COLOR_BACKGROUND='#FF2f2b30' -COLOR_ACTIVE_MONITOR_FG='#FF2f2b30' -COLOR_ACTIVE_MONITOR_BG='#FFcf0f38' -COLOR_INACTIVE_MONITOR_FG='#FFfefdfb' -COLOR_INACTIVE_MONITOR_BG='#FF2f2b30' -COLOR_FOCUSED_OCCUPIED_FG='#FFfefdfb' -COLOR_FOCUSED_OCCUPIED_BG='#FF7e7d82' +COLOR_FOREGROUND='#FFffffff' +COLOR_BACKGROUND='#FF1d1f21' +COLOR_ACTIVE_MONITOR_FG='#FF1d1f21' +COLOR_ACTIVE_MONITOR_BG='#FFcc6666' +COLOR_INACTIVE_MONITOR_FG='#FFffffff' +COLOR_INACTIVE_MONITOR_BG='#FF1d1f21' +COLOR_FOCUSED_OCCUPIED_FG='#FFffffff' +COLOR_FOCUSED_OCCUPIED_BG='#FF373b41' COLOR_FOCUSED_OCCUPIED_UL='#FFbcbac2' -COLOR_FOCUSED_FREE_FG='#FFfefdfb' -COLOR_FOCUSED_FREE_BG='#FF65625e' +COLOR_FOCUSED_FREE_FG='#FFffffff' +COLOR_FOCUSED_FREE_BG='#FF1d1f21' COLOR_FOCUSED_FREE_UL='#FFa39e98' COLOR_FOCUSED_URGENT_FG='white' COLOR_FOCUSED_URGENT_BG='#FFF9A299' COLOR_FOCUSED_URGENT_UL='white' -COLOR_OCCUPIED_FG='#FFfefdfb' -COLOR_OCCUPIED_BG='#FF2f2b30' -COLOR_FREE_FG='#FF6F7277' -COLOR_FREE_BG='#FF2f2b30' +COLOR_OCCUPIED_FG='#FFffffff' +COLOR_OCCUPIED_BG='#FF1d1f21' +#COLOR_FREE_FG='#FF6F7277' +COLOR_FREE_FG='#FF969896' +COLOR_FREE_BG='#FF1d1f21' COLOR_URGENT_FG='#FFF9A299' -COLOR_URGENT_BG='#FF2f2b30' -COLOR_LAYOUT_FG='#FFfefdfb' -COLOR_LAYOUT_BG='#FF2f2b30' -COLOR_TITLE_FG='#FFfefdfb' -COLOR_TITLE_BG='#FF2f2b30' -COLOR_STATUS_FG='#FFfefdfb' -COLOR_STATUS_BG='#FF2f2b30' -COLOR_STATUS_IC='#FFcf0f38' +COLOR_URGENT_BG='#FF1d1f21' +COLOR_LAYOUT_FG='#FFffffff' +COLOR_LAYOUT_BG='#FF1d1f21' +COLOR_TITLE_FG='#FFffffff' +COLOR_TITLE_BG='#FF1d1f21' +COLOR_STATUS_FG='#FFffffff' +COLOR_STATUS_BG='#FF1d1f21' +COLOR_STATUS_IC='#FFcc6666' diff --git a/conky/.conkyrc b/conky/.conkyrc index d4f47ee..d369ff0 100644 --- a/conky/.conkyrc +++ b/conky/.conkyrc @@ -6,4 +6,4 @@ total_run_times 0 use_spacer none TEXT -S %{F\#ffcf0f38}⮠ %{F\#fffefdfb}${wireless_essid wlp3s0} %{F\#ffcf0f38}${exec ~/.local/bin/spk-icon} %{F\#fffefdfb}${exec pamixer --get-volume}%% %{F\#ffcf0f38}⮏ %{F\#fffefdfb}${execi 30 cat /sys/class/power_supply/BAT0/capacity}%% (${execi 30 acpi | grep '[0-9]\{2\}:[0-9]\{2\}' -o}) %{F\#ffcf0f38}⮖ %{F\#fffefdfb}${time %H:%M} +S %{F\#ffcc6666}⮠ %{F\#ffffffff}${wireless_essid wlp3s0} %{F\#ffcc6666}${exec ~/.local/bin/spk-icon} %{F\#ffffffff}${exec pamixer --get-volume}%% %{F\#ffcc6666}⮏ %{F\#ffffffff}${execi 30 cat /sys/class/power_supply/BAT0/capacity}%% (${execi 30 acpi | grep '[0-9]\{2\}:[0-9]\{2\}' -o}) %{F\#ffcc6666}⮖ %{F\#ffffffff}${time %H:%M} diff --git a/gtk/.config/gtk-3.0/settings.ini b/gtk/.config/gtk-3.0/settings.ini index 11e2427..2e86d4a 100644 --- a/gtk/.config/gtk-3.0/settings.ini +++ b/gtk/.config/gtk-3.0/settings.ini @@ -1,4 +1,4 @@ [Settings] -gtk-theme-name = Numix -gtk-icon-theme-name = Numix-Circle +gtk-theme-name = Numix-Tomorrow +gtk-icon-theme-name = Moka gtk-font-name = "Open Sans 10" diff --git a/gtk/.gtkrc-2.0 b/gtk/.gtkrc-2.0 index fccc836..a45668f 100644 --- a/gtk/.gtkrc-2.0 +++ b/gtk/.gtkrc-2.0 @@ -1,4 +1,4 @@ -gtk-theme-name="Numix" +gtk-theme-name="Numix-Tomorrow" gtk-icon-theme-name="Moka" gtk-font-name="Open Sans 10" gtk-menu-images=0 diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index e9e38f7..b0b93db 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -84,7 +84,7 @@ super + Return urxvt super + space - dmenu_run -fn "-*-termsyn-medium-r-normal-*-13-*-*-*-c-*-*-1" -h 24 -nb \#2f2b30 -nf \#fefdfb -sb \#cf0f38 -sf \#fefdfb + dmenu_run -fn "-*-termsyn-medium-r-normal-*-13-*-*-*-c-*-*-1" -h 24 -nb \#1d1f21 -nf \#ffffff -sb \#cc6666 -sf \#ffffff super + x slimlock -- 2.20.1 From 9b146aed58285e781a9a3d63756be3fcac215f08 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 28 Feb 2015 22:03:47 -0500 Subject: [PATCH 04/16] [bspwm] disable displaying the layout --- bspwm/.local/bin/panel_bar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bspwm/.local/bin/panel_bar b/bspwm/.local/bin/panel_bar index 026ba78..2ad2f15 100755 --- a/bspwm/.local/bin/panel_bar +++ b/bspwm/.local/bin/panel_bar @@ -63,7 +63,7 @@ while read -r line ; do ;; L*) # layout - wm_infos="$wm_infos %{F$COLOR_LAYOUT_FG}%{B$COLOR_LAYOUT_BG} ${name} %{B-}%{F-}" + # wm_infos="$wm_infos %{F$COLOR_LAYOUT_FG}%{B$COLOR_LAYOUT_BG} ${name} %{B-}%{F-}" ;; esac shift -- 2.20.1 From 979cd8d923e56e3c69aadd70699df04c4479f8c5 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 28 Feb 2015 22:07:33 -0500 Subject: [PATCH 05/16] [panel] migrate to bar-aint-recursive-git --- bspwm/.local/bin/panel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bspwm/.local/bin/panel b/bspwm/.local/bin/panel index 2f78550..e8e1b43 100755 --- a/bspwm/.local/bin/panel +++ b/bspwm/.local/bin/panel @@ -25,6 +25,6 @@ conky > "$PANEL_FIFO" & . panel_colors -cat "$PANEL_FIFO" | panel_bar | bar -g x$PANEL_HEIGHT -f "$PANEL_FONT_FAMILY1","$PANEL_FONT_FAMILY2" -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" & +cat "$PANEL_FIFO" | panel_bar | bar-aint-recursive -g x$PANEL_HEIGHT -f "$PANEL_FONT_FAMILY1","$PANEL_FONT_FAMILY2" -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" & wait -- 2.20.1 From b65e956047a9fe33039fcc31261f5410d707ecaa Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 28 Feb 2015 22:19:09 -0500 Subject: [PATCH 06/16] add link to Numix-Tomorrow --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 03809aa..a42bd91 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ dotfiles ======== -Use [GNU Stow](http://www.gnu.org/software/stow/) to symlink the config for each package to their corresponding folder. For instance, `stow vim`. +Use [GNU Stow](http://www.gnu.org/software/stow/) to symlink the config for each package to their corresponding folder. For instance, `stow vim`. + +GTK Theme: [Numix-Tomorrow](https://aur.archlinux.org/packages/numix-themes-tomorrow/) *P.S.* do NOT stow `other`, as it's not meant to be copied/symlinked in the home folder. -- 2.20.1 From 1e76c1dafb5b48dced6a13bab1ea423eef9b23c4 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 1 Mar 2015 15:19:59 -0500 Subject: [PATCH 07/16] add ranger (need w3m for preview images) --- ranger/.config/ranger/rc.conf | 530 +++++++++++++++++++++++++++++++++ ranger/.config/ranger/scope.sh | 84 ++++++ 2 files changed, 614 insertions(+) create mode 100644 ranger/.config/ranger/rc.conf create mode 100755 ranger/.config/ranger/scope.sh diff --git a/ranger/.config/ranger/rc.conf b/ranger/.config/ranger/rc.conf new file mode 100644 index 0000000..36cb768 --- /dev/null +++ b/ranger/.config/ranger/rc.conf @@ -0,0 +1,530 @@ +# =================================================================== +# This file contains the default startup commands for ranger. +# To change them, it is recommended to create the file +# ~/.config/ranger/rc.conf and add your custom commands there. +# +# If you copy this whole file there, you may want to set the environment +# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice. +# +# The purpose of this file is mainly to define keybindings and settings. +# For running more complex python code, please create a plugin in "plugins/" or +# a command in "commands.py". +# +# Each line is a command that will be run before the user interface +# is initialized. As a result, you can not use commands which rely +# on the UI such as :delete or :mark. +# =================================================================== + +# =================================================================== +# == Options +# =================================================================== + +# How many columns are there, and what are their relative widths? +set column_ratios 1,3,4 + +# Which files should be hidden? (regular expression) +set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$ + +# Show hidden files? You can toggle this by typing 'zh' +set show_hidden false + +# Ask for a confirmation when running the "delete" command? +# Valid values are "always" (default), "never", "multiple" +# With "multiple", ranger will ask only if you delete multiple files at once. +set confirm_on_delete multiple + +# Which script is used to generate file previews? +# ranger ships with scope.sh, a script that calls external programs (see +# README for dependencies) to preview images, archives, etc. +set preview_script ~/.config/ranger/scope.sh + +# Use the external preview script or display simple plain text previews? +set use_preview_script true + +# Open all images in this directory when running certain image viewers +# like feh or sxiv? You can still open selected files by marking them. +set open_all_images true + +# Be aware of version control systems and display information. +set vcs_aware false + +# State of the three backends git, hg, bzr. The possible states are +# disabled, local (only show local info), enabled (show local and remote +# information). +set vcs_backend_git enabled +set vcs_backend_hg disabled +set vcs_backend_bzr disabled + +# Preview images in full color with the external command "w3mimgpreview"? +# This requires the console web browser "w3m" and a supported terminal. +# It has been successfully tested with "xterm" and "urxvt" without tmux. +set preview_images true + +# Use a unicode "..." character to mark cut-off filenames? +set unicode_ellipsis false + +# Show dotfiles in the bookmark preview box? +set show_hidden_bookmarks true + +# Which colorscheme to use? These colorschemes are available by default: +# default, jungle, snow +set colorscheme default + +# Preview files on the rightmost column? +# And collapse (shrink) the last column if there is nothing to preview? +set preview_files true +set preview_directories true +set collapse_preview true + +# Save the console history on exit? +set save_console_history true + +# Draw the status bar on top of the browser window (default: bottom) +set status_bar_on_top false + +# Draw a progress bar in the status bar which displays the average state of all +# currently running tasks which support progress bars? +set draw_progress_bar_in_status_bar true + +# Draw borders around columns? +set draw_borders true + +# Display the directory name in tabs? +set dirname_in_tabs false + +# Enable the mouse support? +set mouse_enabled true + +# Display the file size in the main column or status bar? +set display_size_in_main_column true +set display_size_in_status_bar true + +# Display files tags in all columns or only in main column? +set display_tags_in_all_columns true + +# Set a title for the window? +set update_title false + +# Set the title to "ranger" in the tmux program? +set update_tmux_title false + +# Shorten the title if it gets long? The number defines how many +# directories are displayed at once, 0 turns off this feature. +set shorten_title 3 + +# Abbreviate $HOME with ~ in the titlebar (first line) of ranger? +set tilde_in_titlebar false + +# How many directory-changes or console-commands should be kept in history? +set max_history_size 20 +set max_console_history_size 50 + +# Try to keep so much space between the top/bottom border when scrolling: +set scroll_offset 8 + +# Flush the input after each key hit? (Noticable when ranger lags) +set flushinput true + +# Padding on the right when there's no preview? +# This allows you to click into the space to run the file. +set padding_right true + +# Save bookmarks (used with mX and `X) instantly? +# This helps to synchronize bookmarks between multiple ranger +# instances but leads to *slight* performance loss. +# When false, bookmarks are saved when ranger is exited. +set autosave_bookmarks true + +# You can display the "real" cumulative size of directories by using the +# command :get_cumulative_size or typing "dc". The size is expensive to +# calculate and will not be updated automatically. You can choose +# to update it automatically though by turning on this option: +set autoupdate_cumulative_size false + +# Turning this on makes sense for screen readers: +set show_cursor false + +# One of: size, basename, mtime, type +set sort natural + +# Additional sorting options +set sort_reverse false +set sort_case_insensitive true +set sort_directories_first true + +# Enable this if key combinations with the Alt Key don't work for you. +# (Especially on xterm) +set xterm_alt_key false + +# =================================================================== +# == Local Options +# =================================================================== +# You can set local options that only affect a single directory. + +# Examples: +# setlocal path=~/downloads sort mtime + +# =================================================================== +# == Command Aliases in the Console +# =================================================================== + +alias e edit +alias q quit +alias q! quitall +alias qall quitall +alias setl setlocal + +alias filter scout -prt +alias find scout -aet +alias mark scout -mr +alias unmark scout -Mr +alias search scout -rs +alias search_inc scout -rts +alias travel scout -aefiklst + +# =================================================================== +# == Define keys for the browser +# =================================================================== + +# Basic +map Q quit! +map q quit +copymap q ZZ ZQ + +map R reload_cwd +map reset +map redraw_window +map abort +map change_mode normal + +map i display_file +map ? help +map W display_log +map w taskview_open +map S shell $SHELL + +map : console +map ; console +map ! console shell +map @ console -p6 shell %%s +map # console shell -p +map s console shell +map r chain draw_possible_programs; console open_with +map f console find +map cd console cd + +# Tagging / Marking +map t tag_toggle +map ut tag_remove +map " tag_toggle tag=%any +map mark_files toggle=True +map v mark_files all=True toggle=True +map uv mark_files all=True val=False +map V toggle_visual_mode +map uV toggle_visual_mode reverse=True + +# For the nostalgics: Midnight Commander bindings +map help +map display_file +map edit +map copy +map cut +map console mkdir +map console delete +map exit + +# In case you work on a keyboard with dvorak layout +map move up=1 +map move down=1 +map move left=1 +map move right=1 +map move to=0 +map move to=-1 +map move down=1 pages=True +map move up=1 pages=True +map move right=1 +map console delete +map console touch + +# VIM-like +copymap k +copymap j +copymap h +copymap l +copymap gg +copymap G +copymap +copymap + +map J move down=0.5 pages=True +map K move up=0.5 pages=True +copymap J +copymap K + +# Jumping around +map H history_go -1 +map L history_go 1 +map ] move_parent 1 +map [ move_parent -1 +map } traverse + +map gh cd ~ +map ge cd /etc +map gu cd /usr +map gd cd /dev +map gl cd -r . +map gL cd -r %f +map go cd /opt +map gv cd /var +map gm cd /media +map gM cd /mnt +map gs cd /srv +map gr cd / +map gR eval fm.cd(ranger.RANGERDIR) +map g/ cd / +map g? cd /usr/share/doc/ranger + +# External Programs +map E edit +map du shell -p du --max-depth=1 -h --apparent-size +map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh +map yp shell -d echo -n %d/%f | xsel -i +map yd shell -d echo -n %d | xsel -i +map yn shell -d echo -n %f | xsel -i + +# Filesystem Operations +map = chmod + +map cw console rename +map A eval fm.open_console('rename ' + fm.thisfile.basename) +map I eval fm.open_console('rename ' + fm.thisfile.basename, position=7) + +map pp paste +map po paste overwrite=True +map pl paste_symlink relative=False +map pL paste_symlink relative=True +map phl paste_hardlink +map pht paste_hardlinked_subtree + +map dd cut +map ud uncut +map da cut mode=add +map dr cut mode=remove + +map yy copy +map uy uncut +map ya copy mode=add +map yr copy mode=remove + +# Temporary workarounds +map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier) +map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier) +map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier) +map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier) +map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier) +map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier) +map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier) +map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier) + +# Searching +map / console search +map n search_next +map N search_next forward=False +map ct search_next order=tag +map cs search_next order=size +map ci search_next order=mimetype +map cc search_next order=ctime +map cm search_next order=mtime +map ca search_next order=atime + +# Tabs +map tab_new ~ +map tab_close +map tab_move 1 +map tab_move -1 +map tab_move 1 +map tab_move -1 +map gt tab_move 1 +map gT tab_move -1 +map gn tab_new ~ +map gc tab_close +map uq tab_restore +map tab_open 1 +map tab_open 2 +map tab_open 3 +map tab_open 4 +map tab_open 5 +map tab_open 6 +map tab_open 7 +map tab_open 8 +map tab_open 9 + +# Sorting +map or toggle_option sort_reverse +map os chain set sort=size; set sort_reverse=False +map ob chain set sort=basename; set sort_reverse=False +map on chain set sort=natural; set sort_reverse=False +map om chain set sort=mtime; set sort_reverse=False +map oc chain set sort=ctime; set sort_reverse=False +map oa chain set sort=atime; set sort_reverse=False +map ot chain set sort=type; set sort_reverse=False + +map oS chain set sort=size; set sort_reverse=True +map oB chain set sort=basename; set sort_reverse=True +map oN chain set sort=natural; set sort_reverse=True +map oM chain set sort=mtime; set sort_reverse=True +map oC chain set sort=ctime; set sort_reverse=True +map oA chain set sort=atime; set sort_reverse=True +map oT chain set sort=type; set sort_reverse=True + +map dc get_cumulative_size + +# Settings +map zc toggle_option collapse_preview +map zd toggle_option sort_directories_first +map zh toggle_option show_hidden +map toggle_option show_hidden +map zi toggle_option flushinput +map zm toggle_option mouse_enabled +map zp toggle_option preview_files +map zP toggle_option preview_directories +map zs toggle_option sort_case_insensitive +map zu toggle_option autoupdate_cumulative_size +map zv toggle_option use_preview_script +map zf console filter + +# Bookmarks +map ` enter_bookmark %any +map ' enter_bookmark %any +map m set_bookmark %any +map um unset_bookmark %any + +map m draw_bookmarks +copymap m um ` ' + +# Generate all the chmod bindings with some python help: +eval for arg in "rwxXst": cmd("map +u{0} shell -d chmod u+{0} %s".format(arg)) +eval for arg in "rwxXst": cmd("map +g{0} shell -d chmod g+{0} %s".format(arg)) +eval for arg in "rwxXst": cmd("map +o{0} shell -d chmod o+{0} %s".format(arg)) +eval for arg in "rwxXst": cmd("map +a{0} shell -d chmod a+{0} %s".format(arg)) +eval for arg in "rwxXst": cmd("map +{0} shell -d chmod u+{0} %s".format(arg)) + +eval for arg in "rwxXst": cmd("map -u{0} shell -d chmod u-{0} %s".format(arg)) +eval for arg in "rwxXst": cmd("map -g{0} shell -d chmod g-{0} %s".format(arg)) +eval for arg in "rwxXst": cmd("map -o{0} shell -d chmod o-{0} %s".format(arg)) +eval for arg in "rwxXst": cmd("map -a{0} shell -d chmod a-{0} %s".format(arg)) +eval for arg in "rwxXst": cmd("map -{0} shell -d chmod u-{0} %s".format(arg)) + +# =================================================================== +# == Define keys for the console +# =================================================================== +# Note: Unmapped keys are passed directly to the console. + +# Basic +cmap eval fm.ui.console.tab() +cmap eval fm.ui.console.tab(-1) +cmap eval fm.ui.console.close() +cmap eval fm.ui.console.execute() +cmap redraw_window + +copycmap +copycmap + +# Move around +cmap eval fm.ui.console.history_move(-1) +cmap eval fm.ui.console.history_move(1) +cmap eval fm.ui.console.move(left=1) +cmap eval fm.ui.console.move(right=1) +cmap eval fm.ui.console.move(right=0, absolute=True) +cmap eval fm.ui.console.move(right=-1, absolute=True) + +# Line Editing +cmap eval fm.ui.console.delete(-1) +cmap eval fm.ui.console.delete(0) +cmap eval fm.ui.console.delete_word() +cmap eval fm.ui.console.delete_rest(1) +cmap eval fm.ui.console.delete_rest(-1) +cmap eval fm.ui.console.paste() + +# And of course the emacs way +copycmap +copycmap +copycmap +copycmap +copycmap +copycmap +copycmap +copycmap + +# Note: There are multiple ways to express backspaces. (code 263) +# and (code 127). To be sure, use both. +copycmap + +# This special expression allows typing in numerals: +cmap false + +# =================================================================== +# == Pager Keybindings +# =================================================================== + +# Movement +pmap pager_move down=1 +pmap pager_move up=1 +pmap pager_move left=4 +pmap pager_move right=4 +pmap pager_move to=0 +pmap pager_move to=-1 +pmap pager_move down=1.0 pages=True +pmap pager_move up=1.0 pages=True +pmap pager_move down=0.5 pages=True +pmap pager_move up=0.5 pages=True + +copypmap k +copypmap j +copypmap h +copypmap l +copypmap g +copypmap G +copypmap d +copypmap u +copypmap n f +copypmap p b + +# Basic +pmap pager_close +copypmap q Q i +pmap E edit_file + +# =================================================================== +# == Taskview Keybindings +# =================================================================== + +# Movement +tmap taskview_move up=1 +tmap taskview_move down=1 +tmap taskview_move to=0 +tmap taskview_move to=-1 +tmap taskview_move down=1.0 pages=True +tmap taskview_move up=1.0 pages=True +tmap taskview_move down=0.5 pages=True +tmap taskview_move up=0.5 pages=True + +copytmap k +copytmap j +copytmap g +copytmap G +copytmap u +copytmap n f +copytmap p b + +# Changing priority and deleting tasks +tmap J eval -q fm.ui.taskview.task_move(-1) +tmap K eval -q fm.ui.taskview.task_move(0) +tmap dd eval -q fm.ui.taskview.task_remove() +tmap eval -q fm.ui.taskview.task_move(-1) +tmap eval -q fm.ui.taskview.task_move(0) +tmap eval -q fm.ui.taskview.task_remove() + +# Basic +tmap taskview_close +copytmap q Q w diff --git a/ranger/.config/ranger/scope.sh b/ranger/.config/ranger/scope.sh new file mode 100755 index 0000000..64bab71 --- /dev/null +++ b/ranger/.config/ranger/scope.sh @@ -0,0 +1,84 @@ +#!/usr/bin/env sh +# ranger supports enhanced previews. If the option "use_preview_script" +# is set to True and this file exists, this script will be called and its +# output is displayed in ranger. ANSI color codes are supported. + +# NOTES: This script is considered a configuration file. If you upgrade +# ranger, it will be left untouched. (You must update it yourself.) +# Also, ranger disables STDIN here, so interactive scripts won't work properly + +# Meanings of exit codes: +# code | meaning | action of ranger +# -----+------------+------------------------------------------- +# 0 | success | success. display stdout as preview +# 1 | no preview | failure. display no preview at all +# 2 | plain text | display the plain content of the file +# 3 | fix width | success. Don't reload when width changes +# 4 | fix height | success. Don't reload when height changes +# 5 | fix both | success. Don't ever reload + +# Meaningful aliases for arguments: +path="$1" # Full path of the selected file +width="$2" # Width of the preview pane (number of fitting characters) +height="$3" # Height of the preview pane (number of fitting characters) + +maxln=200 # Stop after $maxln lines. Can be used like ls | head -n $maxln + +# Find out something about the file: +mimetype=$(file --mime-type -Lb "$path") +extension=${path##*.} + +# Functions: +# runs a command and saves its output into $output. Useful if you need +# the return value AND want to use the output in a pipe +try() { output=$(eval '"$@"'); } + +# writes the output of the previouosly used "try" command +dump() { echo "$output"; } + +# a common post-processing function used after most commands +trim() { head -n "$maxln"; } + +# wraps highlight to treat exit code 141 (killed by SIGPIPE) as success +highlight() { command highlight "$@"; test $? = 0 -o $? = 141; } + +case "$extension" in + # Archive extensions: + 7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\ + rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip) + try als "$path" && { dump | trim; exit 0; } + try acat "$path" && { dump | trim; exit 3; } + try bsdtar -lf "$path" && { dump | trim; exit 0; } + exit 1;; + rar) + try unrar -p- lt "$path" && { dump | trim; exit 0; } || exit 1;; + # PDF documents: + pdf) + try pdftotext -l 10 -nopgbrk -q "$path" - && \ + { dump | trim | fmt -s -w $width; exit 0; } || exit 1;; + # BitTorrent Files + torrent) + try transmission-show "$path" && { dump | trim; exit 5; } || exit 1;; + # HTML Pages: + htm|html|xhtml) + try w3m -dump "$path" && { dump | trim | fmt -s -w $width; exit 4; } + try lynx -dump "$path" && { dump | trim | fmt -s -w $width; exit 4; } + try elinks -dump "$path" && { dump | trim | fmt -s -w $width; exit 4; } + ;; # fall back to highlight/cat if the text browsers fail +esac + +case "$mimetype" in + # Syntax highlight for text files: + text/* | */xml) + try highlight --out-format=ansi "$path" && { dump | trim; exit 5; } || exit 2;; + # Ascii-previews of images: + image/*) + img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;; + # Display information about media files: + video/* | audio/*) + exiftool "$path" && exit 5 + # Use sed to remove spaces so the output fits into the narrow window + try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1;; +esac + +exit 1 -- 2.20.1 From 10b7a011e0ba6be5bc2383ed947b014b845efa44 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 2 Mar 2015 17:15:40 -0500 Subject: [PATCH 08/16] add powertop systemd unit file --- other/systemd/powertop.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 other/systemd/powertop.service diff --git a/other/systemd/powertop.service b/other/systemd/powertop.service new file mode 100644 index 0000000..d1d41cb --- /dev/null +++ b/other/systemd/powertop.service @@ -0,0 +1,11 @@ +# /etc/systemd/system/powertop.service + +[Unit] +Description=Powertop tunings + +[Service] +Type=oneshot +ExecStart=/usr/bin/powertop --auto-tune + +[Install] +WantedBy=multi-user.target \ No newline at end of file -- 2.20.1 From 8068706c537a66d04dc43deca3077402edc3ae81 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 3 Mar 2015 17:42:31 -0500 Subject: [PATCH 09/16] copy the original .spacemacs template due to changes in the file structure --- spacemacs/.spacemacs | 212 ++++++++++++++++++++----------------------- 1 file changed, 98 insertions(+), 114 deletions(-) diff --git a/spacemacs/.spacemacs b/spacemacs/.spacemacs index 8fed059..e43efad 100644 --- a/spacemacs/.spacemacs +++ b/spacemacs/.spacemacs @@ -1,125 +1,109 @@ -;; -*- mode: emacs-lisp -*- +;; -*- mode: dotspacemacs -*- ;; This file is loaded by Spacemacs at startup. ;; It must be stored in your home directory. -;; Configuration Layers -;; -------------------- - -(setq-default - ;; List of additional paths where to look for configuration layers. - ;; Paths must have a trailing slash (ie. `~/.mycontribs/') - dotspacemacs-configuration-layer-path '() - ;; List of configuration layers to load. - dotspacemacs-configuration-layers '(mu4e evil git c-c++ auctex html) - ;; A list of packages and/or extensions that will not be install and loaded. - dotspacemacs-excluded-packages '() -) - -;; Settings -;; -------- - -(setq-default - ;; Specify the startup banner. If the value is an integer then the - ;; banner with the corresponding index is used, if the value is `random' - ;; then the banner is chosen randomly among the available banners, if - ;; the value is nil then no banner is displayed. - dotspacemacs-startup-banner 001 - ;; List of themes, the first of the list is loaded when spacemacs starts. - ;; Press T n to cycle to the next theme in the list (works great - ;; with 2 themes variants, one dark and one light) - dotspacemacs-themes '(zenburn) - ;; The leader key - dotspacemacs-leader-key "SPC" - ;; Major mode leader key is a shortcut key which is the equivalent of - ;; pressing ` m` - dotspacemacs-major-mode-leader-key "," - ;; The command key used for Evil commands (ex-commands) and - ;; Emacs commands (M-x). - ;; By default the command key is `:' so ex-commands are executed like in Vim - ;; with `:' and Emacs commands are executed with ` :'. - dotspacemacs-command-key ":" - ;; Guide-key delay in seconds. The Guide-key is the popup buffer listing - ;; the commands bound to the current keystrokes. - dotspacemacs-guide-key-delay 0.4 - ;; If non nil the frame is fullscreen when Emacs starts up (Emacs 24.4+ only). - dotspacemacs-fullscreen-at-startup nil - ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. - ;; Use to disable fullscreen animations in OSX." - dotspacemacs-fullscreen-use-non-native nil - ;; If non nil the frame is maximized when Emacs starts up (Emacs 24.4+ only). - ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. - dotspacemacs-maximized-at-startup nil - ;; A value from the range (0..100), in increasing opacity, which describes the - ;; transparency level of a frame when it's active or selected. Transparency can - ;; be toggled through `toggle-transparency'. - dotspacemacs-active-transparency 90 - ;; A value from the range (0..100), in increasing opacity, which describes the - ;; transparency level of a frame when it's inactive or deselected. Transparency - ;; can be toggled through `toggle-transparency'. - dotspacemacs-inactive-transparency 90 - ;; If non nil unicode symbols are displayed in the mode line (e.g. for lighters) - dotspacemacs-mode-line-unicode-symbols t - ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth scrolling - ;; overrides the default behavior of Emacs which recenters the point when - ;; it reaches the top or bottom of the screen - dotspacemacs-smooth-scrolling t - ;; If non-nil smartparens-strict-mode will be enabled in programming modes. - dotspacemacs-smartparens-strict-mode nil - ;; If non nil advises quit functions to keep server open when quitting. - dotspacemacs-persistent-server nil - ;; The default package repository used if no explicit repository has been - ;; specified with an installed package. - ;; Not used for now. - dotspacemacs-default-package-repository nil - ;; Disable setting the cursor color according to states - dotspacemacs-colorize-cursor-according-to-state nil - ;; font - dotspacemacs-default-font '("Source Code Pro for Powerline" - :size 14 - :weight normal - :width normal - :powerline-scale 1.1) - ) - -;; Initialization Hooks -;; -------------------- +(defun dotspacemacs/layers () + "Configuration Layers declaration." + (setq-default + ;; List of additional paths where to look for configuration layers. + ;; Paths must have a trailing slash (ie. `~/.mycontribs/') + dotspacemacs-configuration-layer-path '() + ;; List of configuration layers to load. If it is the symbol `all' instead + ;; of a list then all discovered layers will be installed. + dotspacemacs-configuration-layers '() + ;; A list of packages and/or extensions that will not be install and loaded. + dotspacemacs-excluded-packages '() + ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that + ;; are declared in a layer which is not a member of + ;; the list `dotspacemacs-configuration-layers' + dotspacemacs-delete-orphan-packages t)) (defun dotspacemacs/init () - "User initialization for Spacemacs. This function is called at the very - startup." + "Initialization function. +This function is called at the very startup of Spacemacs initialization +before layers configuration." + ;; This setq-default sexp is an exhaustive list of all the supported + ;; spacemacs settings. + (setq-default + ;; Specify the startup banner. If the value is an integer then the + ;; banner with the corresponding index is used, if the value is `random' + ;; then the banner is chosen randomly among the available banners, if + ;; the value is nil then no banner is displayed. + dotspacemacs-startup-banner 'random + ;; List of themes, the first of the list is loaded when spacemacs starts. + ;; Press T n to cycle to the next theme in the list (works great + ;; with 2 themes variants, one dark and one light) + dotspacemacs-themes '(solarized-light + solarized-dark + leuven + monokai + zenburn) + ;; If non nil the cursor color matches the state color. + dotspacemacs-colorize-cursor-according-to-state t + ;; Default font. `powerline-scale' allows to quickly tweak the mode-line + ;; size to make separators look not too crappy. + dotspacemacs-default-font '("Source Code Pro" + :size 13 + :weight normal + :width normal + :powerline-scale 1.1) + ;; The leader key + dotspacemacs-leader-key "SPC" + ;; Major mode leader key is a shortcut key which is the equivalent of + ;; pressing ` m` + dotspacemacs-major-mode-leader-key "," + ;; The command key used for Evil commands (ex-commands) and + ;; Emacs commands (M-x). + ;; By default the command key is `:' so ex-commands are executed like in Vim + ;; with `:' and Emacs commands are executed with ` :'. + dotspacemacs-command-key ":" + ;; Guide-key delay in seconds. The Guide-key is the popup buffer listing + ;; the commands bound to the current keystrokes. + dotspacemacs-guide-key-delay 0.4 + ;; If non nil a progress bar is displayed when spacemacs is loading. This + ;; may increase the boot time on some systems and emacs builds, set it to + ;; nil ;; to boost the loading time. + dotspacemacs-loading-progress-bar t + ;; If non nil the frame is fullscreen when Emacs starts up. + ;; (Emacs 24.4+ only) + dotspacemacs-fullscreen-at-startup nil + ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. + ;; Use to disable fullscreen animations in OSX." + dotspacemacs-fullscreen-use-non-native nil + ;; If non nil the frame is maximized when Emacs starts up. + ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. + ;; (Emacs 24.4+ only) + dotspacemacs-maximized-at-startup nil + ;; A value from the range (0..100), in increasing opacity, which describes + ;; the transparency level of a frame when it's active or selected. + ;; Transparency can be toggled through `toggle-transparency'. + dotspacemacs-active-transparency 90 + ;; A value from the range (0..100), in increasing opacity, which describes + ;; the transparency level of a frame when it's inactive or deselected. + ;; Transparency can be toggled through `toggle-transparency'. + dotspacemacs-inactive-transparency 90 + ;; If non nil unicode symbols are displayed in the mode line. + dotspacemacs-mode-line-unicode-symbols t + ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth + ;; scrolling overrides the default behavior of Emacs which recenters the + ;; point when it reaches the top or bottom of the screen. + dotspacemacs-smooth-scrolling t + ;; If non-nil smartparens-strict-mode will be enabled in programming modes. + dotspacemacs-smartparens-strict-mode nil + ;; If non nil advises quit functions to keep server open when quitting. + dotspacemacs-persistent-server nil + ;; The default package repository used if no explicit repository has been + ;; specified with an installed package. + ;; Not used for now. + dotspacemacs-default-package-repository nil) + ;; User initialization goes here ) (defun dotspacemacs/config () - "This is were you can ultimately override default Spacemacs configuration. -This function is called at the very end of Spacemacs initialization." - (setq powerline-default-separator nil) - (setq TeX-PDF-mode t - Tex-command-default 'TeX) + "Configuration function. + This function is called at the very end of Spacemacs initialization after +layers configuration." ) -;; Custom variables -;; ---------------- - -;; Do not write anything in this section. This is where Emacs will +;; Do not write anything past this comment. This is where Emacs will ;; auto-generate custom variable definitions. - - -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(ac-ispell-requires 4) - '(ahs-case-fold-search nil) - '(ahs-default-range (quote ahs-range-whole-buffer)) - '(ahs-idle-interval 0.25) - '(ahs-idle-timer 0 t) - '(ahs-inhibit-face-list nil) - '(ring-bell-function (quote ignore) t) - '(send-mail-function (quote smtpmail-send-it))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - ) -- 2.20.1 From 5828c5c773f4536215eecca540674697340d4d49 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 3 Mar 2015 17:47:05 -0500 Subject: [PATCH 10/16] apply my previous customizations to .spacemacs --- spacemacs/.spacemacs | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/spacemacs/.spacemacs b/spacemacs/.spacemacs index e43efad..cdc2f8f 100644 --- a/spacemacs/.spacemacs +++ b/spacemacs/.spacemacs @@ -10,7 +10,7 @@ dotspacemacs-configuration-layer-path '() ;; List of configuration layers to load. If it is the symbol `all' instead ;; of a list then all discovered layers will be installed. - dotspacemacs-configuration-layers '() + dotspacemacs-configuration-layers '(mu4e evil git c-c++ auctex html clojure) ;; A list of packages and/or extensions that will not be install and loaded. dotspacemacs-excluded-packages '() ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that @@ -29,21 +29,17 @@ before layers configuration." ;; banner with the corresponding index is used, if the value is `random' ;; then the banner is chosen randomly among the available banners, if ;; the value is nil then no banner is displayed. - dotspacemacs-startup-banner 'random + dotspacemacs-startup-banner 001 ;; List of themes, the first of the list is loaded when spacemacs starts. ;; Press T n to cycle to the next theme in the list (works great ;; with 2 themes variants, one dark and one light) - dotspacemacs-themes '(solarized-light - solarized-dark - leuven - monokai - zenburn) + dotspacemacs-themes '(zenburn) ;; If non nil the cursor color matches the state color. dotspacemacs-colorize-cursor-according-to-state t ;; Default font. `powerline-scale' allows to quickly tweak the mode-line ;; size to make separators look not too crappy. - dotspacemacs-default-font '("Source Code Pro" - :size 13 + dotspacemacs-default-font '("Source Code Pro for Powerline" + :size 14 :weight normal :width normal :powerline-scale 1.1) @@ -95,7 +91,9 @@ before layers configuration." ;; The default package repository used if no explicit repository has been ;; specified with an installed package. ;; Not used for now. - dotspacemacs-default-package-repository nil) + dotspacemacs-default-package-repository nil + ;; Disable setting the cursor color according to states + dotspacemacs-colorize-cursor-according-to-state nil) ;; User initialization goes here ) @@ -103,7 +101,31 @@ before layers configuration." "Configuration function. This function is called at the very end of Spacemacs initialization after layers configuration." + (setq powerline-default-separator nil) + (setq TeX-PDF-mode t + Tex-command-default 'TeX) ) ;; Do not write anything past this comment. This is where Emacs will ;; auto-generate custom variable definitions. + + +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(ac-ispell-requires 4) + '(ahs-case-fold-search nil) + '(ahs-default-range (quote ahs-range-whole-buffer)) + '(ahs-idle-interval 0.25) + '(ahs-idle-timer 0 t) + '(ahs-inhibit-face-list nil) + '(ring-bell-function (quote ignore) t) + '(send-mail-function (quote smtpmail-send-it))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) -- 2.20.1 From 456884014f1c279769f99b08c56bb89e3b441d3b Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 4 Mar 2015 23:04:51 -0500 Subject: [PATCH 11/16] vim-latex set default target format to pdf --- vim/.vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index f459549..d3e1a1c 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -243,3 +243,5 @@ set pastetoggle=t "set conceallevel=0 "let g:vim_json_syntax_conceal = 0 "let g:indentLine_noConcealCursor="" +" latex mode settings +let g:Tex_DefaultTargetFormat = "pdf" -- 2.20.1 From de2c0972ee949ed37680cfde1696b900386213bf Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 5 Mar 2015 21:27:50 -0500 Subject: [PATCH 12/16] rename xprofile to xinitrc again back to slim from lightdm --- x/{.xprofile => .xinitrc} | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) rename x/{.xprofile => .xinitrc} (87%) diff --git a/x/.xprofile b/x/.xinitrc similarity index 87% rename from x/.xprofile rename to x/.xinitrc index 8342420..b136e77 100755 --- a/x/.xprofile +++ b/x/.xinitrc @@ -59,13 +59,13 @@ xautolock -time 5 -locker "dm-tool lock" & # exec startkde # exec startxfce4 # ...or the Window Manager of your choice -# source ~/.profile -# sxhkd & -# panel & - -# DEFAULTSESSION=bspwm -# case "$1" in -# i3) exec i3;; -# bspwm) exec bspwm;; -# *) exec $DEFAULTSESSION ;; -# esac +source ~/.profile +sxhkd & +panel & + +DEFAULTSESSION=bspwm +case "$1" in + i3) exec i3;; + bspwm) exec bspwm;; + *) exec $DEFAULTSESSION ;; +esac -- 2.20.1 From 23ce68fc781b7be08c8264903e0ec13199a16abf Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 5 Mar 2015 21:29:59 -0500 Subject: [PATCH 13/16] also suppress gpe4E --- other/systemd/{kerngpe66.service => suppress-gpe-66-4e.service} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename other/systemd/{kerngpe66.service => suppress-gpe-66-4e.service} (76%) diff --git a/other/systemd/kerngpe66.service b/other/systemd/suppress-gpe-66-4e.service similarity index 76% rename from other/systemd/kerngpe66.service rename to other/systemd/suppress-gpe-66-4e.service index 9e262bb..2d44f14 100644 --- a/other/systemd/kerngpe66.service +++ b/other/systemd/suppress-gpe-66-4e.service @@ -4,7 +4,7 @@ Description=KernGPE66 [Service] -ExecStart=/bin/sh -c "echo disable > /sys/firmware/acpi/interrupts/gpe66" +ExecStart=/bin/sh -c "echo disable > /sys/firmware/acpi/interrupts/gpe66 && echo disable > /sys/firmware/acpi/interrupts/gpe4E" Type=oneshot [Install] -- 2.20.1 From 013f9eb6ada48060acd6ffbf930331d204d7ba68 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 5 Mar 2015 21:38:51 -0500 Subject: [PATCH 14/16] add some udev and modprobe rules --- other/modprobe/hid_apple.conf | 1 + other/modprobe/snd_hda_intel.conf | 1 + other/modprobe/usbcore.conf | 1 + other/udev/50-bluetooth.rules | 2 ++ other/udev/90-xhc_sleep.rules | 2 ++ 5 files changed, 7 insertions(+) create mode 100644 other/modprobe/hid_apple.conf create mode 100644 other/modprobe/snd_hda_intel.conf create mode 100644 other/modprobe/usbcore.conf create mode 100644 other/udev/50-bluetooth.rules create mode 100644 other/udev/90-xhc_sleep.rules diff --git a/other/modprobe/hid_apple.conf b/other/modprobe/hid_apple.conf new file mode 100644 index 0000000..25c96dc --- /dev/null +++ b/other/modprobe/hid_apple.conf @@ -0,0 +1 @@ +options hid_apple iso_layout=0 diff --git a/other/modprobe/snd_hda_intel.conf b/other/modprobe/snd_hda_intel.conf new file mode 100644 index 0000000..8bf2a4f --- /dev/null +++ b/other/modprobe/snd_hda_intel.conf @@ -0,0 +1 @@ +options snd_hda_intel power_save=1 diff --git a/other/modprobe/usbcore.conf b/other/modprobe/usbcore.conf new file mode 100644 index 0000000..db61794 --- /dev/null +++ b/other/modprobe/usbcore.conf @@ -0,0 +1 @@ +options usbcore autosuspend=1 diff --git a/other/udev/50-bluetooth.rules b/other/udev/50-bluetooth.rules new file mode 100644 index 0000000..a8c5dc8 --- /dev/null +++ b/other/udev/50-bluetooth.rules @@ -0,0 +1,2 @@ +# disable bluetooth +SUBSYSTEM=="rfkill", ATTR{type}=="bluetooth", ATTR{state}="0" diff --git a/other/udev/90-xhc_sleep.rules b/other/udev/90-xhc_sleep.rules new file mode 100644 index 0000000..25cb20d --- /dev/null +++ b/other/udev/90-xhc_sleep.rules @@ -0,0 +1,2 @@ +# disable wake from S3 on XHC1 +SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{device}=="0x9c31" RUN+="/bin/sh -c '/bin/echo disabled > /sys$env{DEVPATH}/power/wakeup'" -- 2.20.1 From 7bb664f42a5df40d87e70623c239d8b72e3b18a4 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 5 Mar 2015 21:42:05 -0500 Subject: [PATCH 15/16] add intel xorg conf (enables TearFree) --- other/xorg/20-intel.conf | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 other/xorg/20-intel.conf diff --git a/other/xorg/20-intel.conf b/other/xorg/20-intel.conf new file mode 100644 index 0000000..1c55117 --- /dev/null +++ b/other/xorg/20-intel.conf @@ -0,0 +1,5 @@ +Section "Device" + Identifier "Intel Graphics" + Driver "intel" + Option "TearFree" "true" +EndSection -- 2.20.1 From 5ece0347f6af34ec0ee63cbe9f079bf317de9ee2 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 6 Mar 2015 23:41:41 -0500 Subject: [PATCH 16/16] [x] use slimlock [bspwm] use zathura [sxhkd] new shortcuts --- bspwm/.config/bspwm/bspwmrc | 3 +-- sxhkd/.config/sxhkd/sxhkdrc | 6 ++++++ x/.xinitrc | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 089db8a..76207bf 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -14,7 +14,6 @@ bspc monitor -d web code term misc1 misc2 bspc rule -a Firefox desktop=^1 focus=on bspc rule -a emacs desktop=^2 focus=on -bspc rule -a apvlv desktop=^5 focus=on -bspc rule -a evince desktop=^5 focus=on +bspc rule -a zathura desktop=^5 focus=on # panel & diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index b0b93db..4a8c6ea 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -89,6 +89,12 @@ super + space super + x slimlock +super + e + emacs + +super + r + firefox-developer + # make sxhkd reload its configuration files: super + Escape pkill -USR1 -x sxhkd diff --git a/x/.xinitrc b/x/.xinitrc index b136e77..e998b0b 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -52,7 +52,7 @@ xset +dpms xset dpms 0 0 300 # lock the screen using lightdm after 5 minutes -xautolock -time 5 -locker "dm-tool lock" & +xautolock -time 5 -locker "slimlock" & # exec gnome-session -- 2.20.1