about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-04-06 15:24:43 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-04-06 15:24:43 +0700
commitc44d937f2c6a6a077da17d9fb73de6cae6075169 (patch)
tree5032e8cdfa3cdeee8aba01b4b858bcba4b43bd45
parent95523431b7802c33f3e7eeb41e703029df4e45bf (diff)
downloaddotfiles-c44d937f2c6a6a077da17d9fb73de6cae6075169.tar.gz
Update 2018-04-06
-rw-r--r--awesome/.config/awesome/rc.lua6
-rw-r--r--emacs/.emacs.d/init.el28
-rw-r--r--meta/.xinitrc2
3 files changed, 34 insertions, 2 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index b6d4b52..cf31546 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -58,10 +58,11 @@ cmus = "x-terminal-emulator -e cmus"
 cmus_pause = "cmus-remote --pause"
 cmus_prev = "cmus-remote --prev"
 cmus_next = "cmus-remote --next"
+slock_suspend = "slock systemctl --ignore-inhibitors suspend"
+
 scrot = "scrot /home/cnx/Desktop/%FT%T.png"
 scrot_delay = "scrot --delay 3 /home/cnx/Desktop/%FT%T.png"
 scrot_select = "scrot --select /home/cnx/Desktop/%FT%T.png"
-slock_suspend = "slock systemctl --ignore-inhibitors suspend"
 function volume_lower() awful.spawn("amixer sset Master 5%-", false) end
 function volume_raise() awful.spawn("amixer sset Master 5%+", false) end
 function volume_mute() awful.util.spawn("amixer sset Master toggle", false) end
@@ -372,6 +373,8 @@ globalkeys = awful.util.table.join(
             {description = "open a root terminal", group = "launcher"}),
   awful.key({modkey}, "v", function() awful.spawn(editor) end,
             {description = "open GVim", group = "launcher"}),
+  awful.key({modkey}, "e", function() awful.spawn("emacs") end,
+            {description = "open Emacs", group = "launcher"}),
   awful.key({modkey}, "b", function() awful.spawn"luakit" end,
             {description = "open Luakit", group = "launcher"}),
   awful.key({modkey, "Shift"}, "b",
@@ -395,6 +398,7 @@ globalkeys = awful.util.table.join(
             {description = "lock screen then suspend", group = "launcher"}),
   awful.key({modkey}, "c", function() awful.spawn(cmus) end,
             {description = "open cmus music player", group = "launcher"}),
+
   awful.key({modkey}, "XF86AudioPlay", function() awful.spawn(cmus_pause) end,
             {description = "cmus: play/pause", group = "multimedia"}),
   awful.key({modkey}, "XF86AudioPrev", function() awful.spawn(cmus_prev) end,
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
new file mode 100644
index 0000000..a493d7c
--- /dev/null
+++ b/emacs/.emacs.d/init.el
@@ -0,0 +1,28 @@
+;; Added by Package.el.  This must come before configurations of
+;; installed packages.  Don't delete this line.  If you don't want it,
+;; just comment it out by adding a semicolon to the start of the line.
+;; You may delete these explanatory comments.
+(package-initialize)
+(require 'geiser)
+(setq geiser-repl-use-other-window nil)
+(pdf-tools-install)
+
+(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.
+ '(ansi-color-names-vector
+   ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
+ '(blink-cursor-mode nil)
+ '(column-number-mode t)
+ '(custom-enabled-themes (quote (tango)))
+ '(scroll-bar-mode nil)
+ '(show-paren-mode t)
+ '(tool-bar-mode nil))
+(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.
+ '(default ((t (:family "Space Mono" :foundry "CF  " :slant normal :weight normal :height 98 :width normal)))))
diff --git a/meta/.xinitrc b/meta/.xinitrc
index 296c708..e897a24 100644
--- a/meta/.xinitrc
+++ b/meta/.xinitrc
@@ -1,7 +1,7 @@
 #!/bin/sh
 cd $HOME
 xrdb -merge ~/.Xresources
-setxkbmap -option caps:swapescape
+setxkbmap -option caps:ctrl_modifier
 xrandr --output VGA-0 --mode 1600x900 --primary --right-of LVDS
 synclient TapButton1=1 VertEdgeScroll=1 HorizEdgeScroll=1 VertTwoFingerScroll=0
 keynav &