From 977c3a6266b5c50e4bae12071ab40bb4317bb83c Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Sun, 27 May 2018 18:52:35 +0200 Subject: [PATCH] Added floating for AirVPN in i3, emacs monokai instead of material, delete trailing whitespaces at save --- config/.config/i3/config | 16 +++++++++------- emacs/.emacs.d/config.org | 16 +++++++++++----- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/config/.config/i3/config b/config/.config/i3/config index 1a3408a..dd7cff9 100644 --- a/config/.config/i3/config +++ b/config/.config/i3/config @@ -90,7 +90,10 @@ for_window [class="Thus"] floating enable border normal for_window [class="Timeset-gui"] floating enable border normal for_window [class="(?i)virtualbox"] floating enable border normal for_window [title="KeePassX$"] floating enable border normal +for_window [title="Eddie - Settings"] floating enable border normal + for_window [title="(?i)termite"] border pixel 3 + # switch to workspace with urgent window automatically for_window [urgent=latest] focus @@ -113,7 +116,7 @@ for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$" ############################################################################### ############################ Startup Applications ############################# -############################################################################### +############################################################################### exec --no-startup-id setxkbmap us,de exec --no-startup-id nitrogen --restore; compton -b @@ -146,8 +149,8 @@ bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" # Pulse Audio controls -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle bindsym XF86AudioPlay exec "if [ `cat /home/$USER/.scripts/playstate` = 0 ]; then echo '1'>/home/$USER/.scripts/playstate;else echo '0'>/home/$USER/.scripts/playstate;fi" bindsym XF86AudioStop exec "playerctl stop && echo '0'>/home/$USER/.scripts/playstate" @@ -230,7 +233,7 @@ bindsym $mod+0 exec --no-startup-id "python ~/.scripts/i3lock.py" # Change the variable name at the place you want to match the color # of your terminal like this: # [example] -# If you want your bar to have the same background color as your +# If you want your bar to have the same background color as your # terminal background change the line 362 from: # background $i3_background # to: @@ -261,7 +264,7 @@ client.focused $term_color4 $term_color4 $term_color15 $term_color12 client.focused_inactive $term_color8 $term_color8 $term_color15 $term_color10 client.unfocused $term_color8 $term_color8 $term_color15 $term_color10 client.urgent $term_color13 $term_color12 $term_color15 $term_color14 -client.placeholder $term_color15 $term_color15 $term_color15 $term_color15 +client.placeholder $term_color15 $term_color15 $term_color15 $term_color15 client.background $term_color10 @@ -276,7 +279,7 @@ gaps outer -4 # Smart gaps (gaps used if only more than one container on the workspace) # smart_gaps on -# Smart borders (draw borders around container only if it is not the only container on this workspace) +# Smart borders (draw borders around container only if it is not the only container on this workspace) # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0) # smart_borders on @@ -319,4 +322,3 @@ mode "$mode_gaps_outer" { bindsym Return mode "default" bindsym Escape mode "default" } - diff --git a/emacs/.emacs.d/config.org b/emacs/.emacs.d/config.org index 4d5ea3f..e299fef 100644 --- a/emacs/.emacs.d/config.org +++ b/emacs/.emacs.d/config.org @@ -43,24 +43,24 @@ A list of installed packages and details about them. (use-package eclim) (use-package flycheck) (use-package google-this) -(use-package ledger-mode) (use-package ivy) +(use-package ledger-mode) (use-package material-theme) +(use-package ox-gfm) (use-package ox-twbs) +(use-package php-mode) +(use-package powerline) (use-package rainbow-delimiters) (use-package rainbow-mode) (use-package smart-compile) (use-package smartparens) (use-package swiper) -(use-package powerline) -(use-package php-mode) (use-package visual-regexp) -(use-package nasm-mode) #+END_SRC * Appearance Using the [[https://github.com/cpaulik/emacs-material-theme][Material]]-Theme. #+BEGIN_SRC emacs-lisp -(load-theme 'material t) +(load-theme 'monokai t) #+END_SRC Changes the Emacs background to the terminals defaults. (Generally) @@ -91,6 +91,12 @@ Powerline for Emacs (setq custom-file "~/.emacs.d/config.el") #+END_SRC +Delete trailing spaces before saving +#+BEGIN_SRC emacs-lisp +(add-hook 'before-save-hook 'delete-trailing-whitespace) +#+END_SRC + + * Functions All the functions I use. ** Cut/Copy and Paste by Boruch Baum