1
0
Fork 0

Update 2018-05-23

This commit is contained in:
Nguyễn Gia Phong 2018-05-23 21:48:23 +07:00
parent 65e17501d4
commit 975b62bd33
6 changed files with 23 additions and 13 deletions

View File

@ -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"}),

View File

@ -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

View File

@ -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)

View File

@ -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"

View File

@ -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

View File

@ -9,6 +9,5 @@ redshift-gtk &
ibus-daemon -drx
connman-ui-gtk &
clipit &
emacs --daemon
exec awesome
cd -