diff options
author | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2018-05-23 21:48:23 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2018-05-23 21:48:23 +0700 |
commit | 975b62bd33f48d61550088123b5a1bb930558efe (patch) | |
tree | 3ce213248c2776f66ffa4a7b3fff8804a226b6b4 | |
parent | 65e17501d4dde544826f3141275b4db3fc2250a4 (diff) | |
download | dotfiles-975b62bd33f48d61550088123b5a1bb930558efe.tar.gz |
Update 2018-05-23
-rw-r--r-- | awesome/.config/awesome/rc.lua | 5 | ||||
-rw-r--r-- | brutalmaze/.config/brutalmaze/settings.ini | 8 | ||||
-rw-r--r-- | emacs/.emacs.d/init.el | 7 | ||||
-rw-r--r-- | luakit/.config/luakit/rc.lua | 9 | ||||
-rw-r--r-- | meta/.bashrc | 6 | ||||
-rw-r--r-- | meta/.xinitrc | 1 |
6 files changed, 23 insertions, 13 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 647e57c..cf31546 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -48,7 +48,6 @@ beautiful.init"~/.config/awesome/themes/gruvbox/theme.lua" terminal = "x-terminal-emulator -e dvtm" editor = "gvim" -- And some additional applications -emacserver = "emacs --daemon" root_terminal = "x-terminal-emulator -e sudo -i dvtm" ranger = "x-terminal-emulator -e ranger" ipython = "x-terminal-emulator -e ipython" @@ -374,9 +373,7 @@ 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("emacsclient -c") end, - {description = "open Emacs", group = "launcher"}), - awful.key({modkey, 'Shift'}, "e", function() awful.spawn(emacserver) end, + 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"}), diff --git a/brutalmaze/.config/brutalmaze/settings.ini b/brutalmaze/.config/brutalmaze/settings.ini index 08a1b42..aae249e 100644 --- a/brutalmaze/.config/brutalmaze/settings.ini +++ b/brutalmaze/.config/brutalmaze/settings.ini @@ -1,8 +1,6 @@ [Graphics] Screen width: 640 Screen height: 480 -# OpenGL should be supported on all machines with hardware acceleration. -OpenGL: no # FPS should not be greater than refresh rate. Maximum FPS: 30 @@ -10,6 +8,8 @@ Maximum FPS: 30 Muted: no # Volume must be between 0.0 and 1.0 Music volume: 1.0 +# Use space music background, which sounds cold and creepy +Space theme: yes [Control] # Input values should be either from Mouse1 to Mouse3 or a keyboard key @@ -24,6 +24,8 @@ Move left: a Move right: d Move up: w Move down: s +# Move hero using mouse +Auto move: Mouse2 Long-range attack: Mouse1 Close-range attack: Mouse3 @@ -32,5 +34,7 @@ Close-range attack: Mouse3 Enable: no Host: localhost Port: 8089 +# Timeout on blocking socket operations, in seconds. +Timeout: 1.0 # Disable graphics and sound (only if socket server is enabled). Headless: no diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 9a806ff..bb625aa 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -38,5 +38,10 @@ (setq-default inhibit-splash-screen t) (setq-default fill-column 80) (add-hook 'prog-mode-hook 'ruler-mode) +(add-hook 'python-mode-hook + (lambda () + (setq fill-column 79) + (setq comment-fill-column 72))) + (setq-default indent-tabs-mode nil) -(add-hook 'prog-mode-hook 'whitespace-mode) +(add-hook 'find-file-hook 'whitespace-mode) diff --git a/luakit/.config/luakit/rc.lua b/luakit/.config/luakit/rc.lua index d2e60c2..8c72762 100644 --- a/luakit/.config/luakit/rc.lua +++ b/luakit/.config/luakit/rc.lua @@ -27,6 +27,15 @@ local window = require "window" -- ("$XDG_CONFIG_HOME/luakit/webview.lua" or "/etc/xdg/luakit/webview.lua") local webview = require "webview" +webview.add_signal("init", function (view) + view:add_signal("navigation-request", function (v, uri) + if string.match(string.lower(uri), "^magnet:") then + luakit.spawn(string.format("%s %q", "transmission-gtk", uri)) + return false + end + end) +end) + -- Add luakit://log/ chrome page local log_chrome = require "log_chrome" diff --git a/meta/.bashrc b/meta/.bashrc index fcb265e..f159b4c 100644 --- a/meta/.bashrc +++ b/meta/.bashrc @@ -102,11 +102,7 @@ alias fpc='fpc -O1 -XS -gl' alias mpa='mpv --no-video --loop=inf' alias mount='udevil mount' alias umount='udevil umount' -alias flare='cd ~/.local/flare-game/ && ./flare && cd -' -TF_ALIAS=fuck alias fuck='eval $(thefuck $(fc -ln -1)); history -r' -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi +alias flare='DBUS_FATAL_WARNINGS=0 flare' # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile diff --git a/meta/.xinitrc b/meta/.xinitrc index 33a1b01..e897a24 100644 --- a/meta/.xinitrc +++ b/meta/.xinitrc @@ -9,6 +9,5 @@ redshift-gtk & ibus-daemon -drx connman-ui-gtk & clipit & -emacs --daemon exec awesome cd - |