forked from colonelpanic/dotfiles
Merge branch 'master' of github.com:IvanMalison/dotfiles
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
}
|
||||
|
||||
#element {
|
||||
font: "Open Sans 13";
|
||||
font: "Source Code Pro 13";
|
||||
padding: 12px 1.5em 12px 14px;
|
||||
}
|
||||
|
||||
|
@@ -46,3 +46,23 @@ extra-deps:
|
||||
- time-units-1.0.0
|
||||
- xml-helpers-1.0.0
|
||||
resolver: lts-11.7
|
||||
nix:
|
||||
packages:
|
||||
- cairo
|
||||
- gcc
|
||||
- gnome2.pango
|
||||
- gobjectIntrospection
|
||||
- gtk3
|
||||
- hicolor-icon-theme
|
||||
- libdbusmenu-glib
|
||||
- libdbusmenu-gtk3
|
||||
- libxml2
|
||||
- numix-icon-theme-circle
|
||||
- pkgconfig
|
||||
- x11
|
||||
- xorg.libX11
|
||||
- xorg.libXext
|
||||
- xorg.libXinerama
|
||||
- xorg.libXrandr
|
||||
- xorg.libXrender
|
||||
- zlib
|
||||
|
@@ -1,5 +1,6 @@
|
||||
[options]
|
||||
dynamic_title = true
|
||||
scrollback_lines = -1
|
||||
|
||||
[colors]
|
||||
# Base16 Default Dark
|
||||
@@ -49,3 +50,4 @@ color18 = #282828
|
||||
color19 = #383838
|
||||
color20 = #b8b8b8
|
||||
color21 = #e8e8e8
|
||||
|
||||
|
@@ -1,9 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function min {
|
||||
[ $1 -le $2 ] && echo "$1" || echo "$2"
|
||||
}
|
||||
|
||||
function get_exe_dir {
|
||||
# XXX: This exists because calling in to stack is kind of slow with nix
|
||||
# integration enabled, even when just using it to get a path.
|
||||
if [ -e ./.cached-stack-install-path ]; then
|
||||
cat .cached-stack-install-path
|
||||
else
|
||||
stack path --local-install-root
|
||||
fi
|
||||
}
|
||||
|
||||
function do_rebuild {
|
||||
|
||||
}
|
||||
|
||||
SRC_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
EXE_NAME=imalison-xmonad
|
||||
EXE_LOCATION=$(get_exe_dir)/bin/$EXE_NAME
|
||||
output_file=$1; shift
|
||||
|
||||
stack install
|
||||
cp -uf $(stack path --local-install-root)/bin/$EXE_NAME $output_file
|
||||
if [ -e ./.cached-stack-install-path ]; then
|
||||
last_built=$(stat -c '%Y' $EXE_LOCATION)
|
||||
xmonad_modified=$(stat -c '%Y' ./xmonad.hs)
|
||||
|
||||
[ $last_built -lt $xmonad_modified ] && stack install
|
||||
else
|
||||
stack install
|
||||
fi
|
||||
|
||||
cp -uf $EXE_LOCATION $output_file
|
||||
|
@@ -9,3 +9,12 @@ packages:
|
||||
extra-deps:
|
||||
- X11-xft-0.3.1
|
||||
resolver: lts-11.7
|
||||
nix:
|
||||
packages:
|
||||
- pkgconfig
|
||||
- x11
|
||||
- xorg.libX11
|
||||
- xorg.libXext
|
||||
- xorg.libXinerama
|
||||
- xorg.libXrandr
|
||||
- xorg.libXrender
|
||||
|
@@ -461,7 +461,6 @@ myReplaceWindow =
|
||||
|
||||
-- Workspace Names for EWMH
|
||||
|
||||
|
||||
setWorkspaceNames :: X ()
|
||||
setWorkspaceNames = withWindowSet $ \s -> withDisplay $ \dpy -> do
|
||||
sort' <- getSortByIndex
|
||||
@@ -865,6 +864,10 @@ goToNextScreenX = windows goToNextScreen
|
||||
|
||||
-- Key bindings
|
||||
|
||||
volumeUp = spawn "set_volume.sh --unmute --change-volume +5"
|
||||
volumeDown = spawn "set_volume.sh --unmute --change-volume -5"
|
||||
mute = spawn "set_volume.sh --toggle-mute"
|
||||
|
||||
shiftToEmptyOnScreen direction =
|
||||
followingWindow (windowToScreen direction True) >> shiftToEmptyAndView
|
||||
|
||||
@@ -907,7 +910,7 @@ addKeys conf@XConfig { modMask = modm } =
|
||||
, ((modalt, xK_Return), deactivateFullAnd restoreAllMinimized)
|
||||
, ((modm .|. controlMask, xK_t),
|
||||
setReplaceTarget >> spawn "chromix-too open chrome://newtab")
|
||||
, ((mod .|. controlMask, xK_c), chromeReplaceKill)
|
||||
, ((modm .|. controlMask, xK_c), chromeReplaceKill)
|
||||
, ((hyper, xK_g), gatherThisClass)
|
||||
|
||||
-- Directional navigation
|
||||
@@ -1005,12 +1008,12 @@ addKeys conf@XConfig { modMask = modm } =
|
||||
, ((0, xF86XK_AudioPrev), spawn "playerctl previous")
|
||||
|
||||
-- Volume control
|
||||
, ((0, xF86XK_AudioRaiseVolume), spawn "set_volume.sh up")
|
||||
, ((0, xF86XK_AudioLowerVolume), spawn "set_volume.sh down")
|
||||
, ((0, xF86XK_AudioMute), spawn "set_volume.sh mute")
|
||||
, ((modm, xK_i), spawn "set_volume.sh up")
|
||||
, ((modm, xK_k), spawn "set_volume.sh down")
|
||||
, ((modm, xK_u), spawn "set_volume.sh mute")
|
||||
, ((0, xF86XK_AudioRaiseVolume), volumeUp)
|
||||
, ((0, xF86XK_AudioLowerVolume), volumeDown)
|
||||
, ((0, xF86XK_AudioMute), mute)
|
||||
, ((modm, xK_i), volumeUp)
|
||||
, ((modm, xK_k), volumeDown)
|
||||
, ((modm, xK_u), mute)
|
||||
, ((hyper .|. shiftMask, xK_q), spawn "toggle_mute_current_window.sh")
|
||||
, ((hctrl, xK_q), spawn "toggle_mute_current_window.sh only")
|
||||
|
||||
|
@@ -218,6 +218,7 @@ These definitions silence the byte-compiler.
|
||||
Sets environment variables by starting a shell.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package exec-path-from-shell
|
||||
:disabled (not (equal system-type 'darwin))
|
||||
:config
|
||||
(progn
|
||||
;; For debugging
|
||||
@@ -1417,6 +1418,7 @@ Paradox is a package.el extension. I have no use for it now that I use straight.
|
||||
** server
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package server
|
||||
:demand t
|
||||
:config
|
||||
(progn
|
||||
(defvar imalison:default-server-file
|
||||
@@ -2772,7 +2774,8 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package lsp-haskell
|
||||
:config
|
||||
(add-hook 'haskell-mode-hook 'lsp-haskell-enable))
|
||||
(when (executable-find "hie")
|
||||
(add-hook 'haskell-mode-hook 'lsp-haskell-enable)))
|
||||
#+END_SRC
|
||||
**** intero
|
||||
Intero seems to be causing hangs, so it has been disabled
|
||||
@@ -3605,7 +3608,9 @@ alphanumeric characters only."
|
||||
*** TeX
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package tex
|
||||
:straight auctex
|
||||
:straight (auctex :host github :repo "raxod502/auctex"
|
||||
:branch "fork/1"
|
||||
:files (:defaults (:exclude "doc/*.texi")))
|
||||
:commands TeX-mode
|
||||
:preface
|
||||
(progn
|
||||
|
@@ -10,7 +10,8 @@ function switch_sink_applications()
|
||||
}
|
||||
|
||||
current_default=$(pahelper.sh list | grep '*' | all_after_char ":" | xargs)
|
||||
environment_variable_exists USE_ONLY_ONE_PASINK && pahelper.sh "$current_default"
|
||||
environment_variable_exists USE_ONLY_O_PASINK && pahelper.sh "$current_default"
|
||||
|
||||
pulseaudio-ctl "$@"
|
||||
# XXX: this does not prevent volumes higher than 100
|
||||
pulsemixer "$@"
|
||||
pashowvolume
|
||||
|
@@ -60,7 +60,6 @@ function get_linux_distro {
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
function is_osx() {
|
||||
if command_exists uname; then
|
||||
case `uname` in
|
||||
@@ -82,3 +81,7 @@ function source_directory_files {
|
||||
source "$filename"
|
||||
done
|
||||
}
|
||||
|
||||
function min {
|
||||
[ $1 -le $2 ] && echo "$1" || echo "$2"
|
||||
}
|
||||
|
@@ -13,7 +13,7 @@ pasink() {
|
||||
pavolume () {
|
||||
pacmd list-sinks |
|
||||
awk '/^\s+name: /{indefault = $2 == "<'"$(pasink)"'>"}
|
||||
/^\s+volume: / && indefault {print $5; exit}'
|
||||
/^\s+volume: / && indefault {print $5; exit}' | grep -Eo "[0-9]*"
|
||||
}
|
||||
|
||||
paismuted () {
|
||||
@@ -24,7 +24,7 @@ pashowvolume () {
|
||||
if paismuted; then
|
||||
volnoti-show -m
|
||||
else
|
||||
volnoti-show "$(pavolume)"
|
||||
volnoti-show "$(min $(pavolume) 100)"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@@ -1,9 +1,11 @@
|
||||
# -*- mode: sh; -*-
|
||||
|
||||
|
||||
# If there are issues with path, check /etc/profile for hard overrides of PATH.
|
||||
. "$HOME/.lib/login.sh"
|
||||
# XXX: prevents https://github.com/xmonad/xmonad/issues/86 from affecting startup
|
||||
|
||||
rm -f ~/.xmonad/xmonad.state
|
||||
load_xkb_map.sh
|
||||
|
||||
run_if_exists systemctl --user import-environment XDG_DATA_DIRS
|
||||
run_if_exists systemctl --user start wm.target
|
||||
|
Reference in New Issue
Block a user