Added floating for AirVPN in i3, emacs monokai instead of material, delete trailing whitespaces at save

clean_emacs
Tuan-Dat Tran 2018-05-27 18:52:35 +02:00
parent c12494cdb4
commit 977c3a6266
No known key found for this signature in database
GPG Key ID: 0DA1B0B23302CA72
2 changed files with 20 additions and 12 deletions

View File

@ -90,7 +90,10 @@ for_window [class="Thus"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal for_window [class="(?i)virtualbox"] floating enable border normal
for_window [title="KeePassX$"] 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 for_window [title="(?i)termite"] border pixel 3
# switch to workspace with urgent window automatically # switch to workspace with urgent window automatically
for_window [urgent=latest] focus for_window [urgent=latest] focus
@ -113,7 +116,7 @@ for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$"
############################################################################### ###############################################################################
############################ Startup Applications ############################# ############################ Startup Applications #############################
############################################################################### ###############################################################################
exec --no-startup-id setxkbmap us,de exec --no-startup-id setxkbmap us,de
exec --no-startup-id nitrogen --restore; compton -b 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'" bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
# Pulse Audio controls # Pulse Audio controls
bindsym XF86AudioRaiseVolume 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 XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle 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 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" 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 # Change the variable name at the place you want to match the color
# of your terminal like this: # of your terminal like this:
# [example] # [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: # terminal background change the line 362 from:
# background $i3_background # background $i3_background
# to: # 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.focused_inactive $term_color8 $term_color8 $term_color15 $term_color10
client.unfocused $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.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 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 (gaps used if only more than one container on the workspace)
# smart_gaps on # 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) # 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 # smart_borders on
@ -319,4 +322,3 @@ mode "$mode_gaps_outer" {
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
} }

View File

@ -43,24 +43,24 @@ A list of installed packages and details about them.
(use-package eclim) (use-package eclim)
(use-package flycheck) (use-package flycheck)
(use-package google-this) (use-package google-this)
(use-package ledger-mode)
(use-package ivy) (use-package ivy)
(use-package ledger-mode)
(use-package material-theme) (use-package material-theme)
(use-package ox-gfm)
(use-package ox-twbs) (use-package ox-twbs)
(use-package php-mode)
(use-package powerline)
(use-package rainbow-delimiters) (use-package rainbow-delimiters)
(use-package rainbow-mode) (use-package rainbow-mode)
(use-package smart-compile) (use-package smart-compile)
(use-package smartparens) (use-package smartparens)
(use-package swiper) (use-package swiper)
(use-package powerline)
(use-package php-mode)
(use-package visual-regexp) (use-package visual-regexp)
(use-package nasm-mode)
#+END_SRC #+END_SRC
* Appearance * Appearance
Using the [[https://github.com/cpaulik/emacs-material-theme][Material]]-Theme. Using the [[https://github.com/cpaulik/emacs-material-theme][Material]]-Theme.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(load-theme 'material t) (load-theme 'monokai t)
#+END_SRC #+END_SRC
Changes the Emacs background to the terminals defaults. (Generally) Changes the Emacs background to the terminals defaults. (Generally)
@ -91,6 +91,12 @@ Powerline for Emacs
(setq custom-file "~/.emacs.d/config.el") (setq custom-file "~/.emacs.d/config.el")
#+END_SRC #+END_SRC
Delete trailing spaces before saving
#+BEGIN_SRC emacs-lisp
(add-hook 'before-save-hook 'delete-trailing-whitespace)
#+END_SRC
* Functions * Functions
All the functions I use. All the functions I use.
** Cut/Copy and Paste by Boruch Baum ** Cut/Copy and Paste by Boruch Baum