Permalink
Browse files

Recent changes

  • Loading branch information...
1 parent 6ac19b6 commit b957416b6a83a0d05fa943067e821ed77732c201 @JackH79 committed May 31, 2012
Showing with 75 additions and 682 deletions.
  1. +6 −1 .Xresources
  2. +6 −0 .bashrc
  3. +17 −102 .keynavrc
  4. +0 −339 .ncmpcpp/config
  5. +5 −0 .reminders
  6. +5 −4 .tmux.conf
  7. +13 −3 .vimrc
  8. +15 −8 .xinitrc
  9. +0 −19 .xmonad/conkyfull
  10. +8 −4 .xmonad/xmonad.hs
  11. +0 −202 .xmonad/xmonad.hs.2bars
View
7 .Xresources
@@ -1,8 +1,13 @@
+! ~/.Xresources
+!
+! JackH79
+! May 2012
+
! !URXVT
URxvt.termName: rxvt
URxvt.scrollBar: false
URxvt.buffered: true
-URxvt.font: -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
+URxvt.font: -*-termsyn-medium-*-*-*-12-*-*-*-*-*-*-*
!URxvt*font: xft:terminus:pixelsize=12
!!!For true transparency (with e.g. xcompmgr)
URxvt.depth: 32
View
6 .bashrc
@@ -1,3 +1,8 @@
+# ~/.bashrc
+#
+# JackH79
+# May 2012
+
### PROPMPT
PS1='\[\e[1;32m\]\D{%I:%M%P}\[\e[1;34m\]>>\w\[\e[m\] '
PS2='\[\e[1;33m\]contd.\[\e[1;34m\]>\[\e[m\] '
@@ -27,6 +32,7 @@ alias grep='grep --color=auto'
alias sleep='sudo pm-suspend'
alias dvd='mplayer -channels 6 -af hrtf /dev/sr0'
alias copy='rsync -aP'
+#alias todo='remind /home/jack/.reminders'
alias rem='remind /home/jack/.reminders'
alias remc='remind -m -cuc+2 /home/jack/.reminders'
alias awiki='wiki-search'
View
119 .keynavrc
@@ -1,31 +1,14 @@
-# This is a keynavrc file. Yours should live in
-# $HOME/.keynavrc
+# ~/.keynavrc
#
-# Lines beginning with '#' are comments.
-# Format is:
-# keysequence cmd1,cmd2,cmd3...
-#
-# Other special values are:
-# 'clear' on a line by itself (no quotes) will erase all keybindings
-# (including the defaults)
-# 'daemonize' on a line by itself (no quotes) will make keynav background
-# after parsing the configfile and having no critical errors.
-#
-# The 'start' command alone is handled specially, in that any key sequence
-# mapped to 'start' will be grabbed when keynav starts up so you can invoke it
-# to activate keynav. The remaining keys are only recognized while keynav is
-# active
-#
-# Project page; http://www.semicomplete.com/projects/keynav
-
-# Use 'clear' to blow away any previous keybindings
-#clear
+# JackH79
+# May 2012
-# Use 'daemonize' to background ourselves.
-#daemonize
+# Start / End
ctrl+semicolon start
Escape end
ctrl+bracketleft end
+
+# Cut
h cut-left
Left cut-left
j cut-down
@@ -34,10 +17,8 @@ k cut-up
Up cut-up
l cut-right
Right cut-right
-y cut-left,cut-up
-u cut-right,cut-up
-b cut-left,cut-down
-n cut-right,cut-down
+
+# Move
shift+h move-left
shift+Left move-left
shift+j move-down
@@ -46,80 +27,14 @@ shift+k move-up
shift+Up move-up
shift+l move-right
shift+Right move-right
-shift+y move-left,move-up
-shift+u move-right,move-up
-shift+b move-left,move-down
-shift+n move-right,move-down
-space warp,click 1,end
-semicolon warp,end
-1 click 1
-2 click 2
-3 click 3
-
-# Zoom to the current window
-w windowzoom
-
-# Zoom to the cursor location with a given height and width
-c cursorzoom 200 200
-# Handy for holding ctrl while using keynav:
-ctrl+h cut-left
-ctrl+j cut-down
-ctrl+k cut-up
-ctrl+l cut-right
-ctrl+y cut-left,cut-up
-ctrl+u cut-right,cut-up
-ctrl+b cut-left,cut-down
-ctrl+n cut-right,cut-down
-
-# Record keynav actions
-q record
-
-### Example using the 'sh' command.
-# Make firefox the active window
-f sh "xdotool windowactivate $(xdotool search -title -- '- Mozilla Firefox')", end
-# Make a new tab in google chrome:
-t sh "xdotool windowactivate $(xdotool search --title -- '- Google Chrome' | head -1); xdotool key ctrl+t",end
-# Paste
-v sh "xdotool key shift+Insert"
-
-### Drag examples
-# Start drag holding the left mouse button
-#q drag 1
-# Start drag holding middle mouse + control and shift
-#w drag 2 ctrl+shift
-
-### History
-a history-back
-
-### Example of cut and move without the default values
-#h cut-left .75
-#j cut-down .75
-#k cut-up .75
-#l cut-right .75
-#shift+h move-left .50
-#shift+j move-down .50
-#shift+k move-up .50
-#shift+l move-right .50
-
-### Example using a 2-row, 3-column grid,
-# mapped to Insert/Home/PageUp/etc...
-#6 grid 2x3
-#Insert cell-select 1x1
-#Home cell-select 1x2
-#Prior cell-select 1x3 # PageUp
-#Delete cell-select 2x1
-#End cell-select 2x2
-#Next cell-select 2x3 # PageDown
+# Clicks
+# left click
+space warp,click 1,end
+# left double click
+shift+space warp,doubleclick 1,end
+# right click
+slash warp,click 3,end
-### Example using a 3x3 grid with nethack-vi keys
-#ctrl+semicolon start, grid 3x3
-#h cell-select 2x1 # left
-#j cell-select 3x2 # down
-#k cell-select 1x2 # up
-#l cell-select 2x3 # right
-#y cell-select 1x1 # up-left
-#u cell-select 1x3 # up-right
-#b cell-select 3x1 # down-left
-#n cell-select 3x3 # down-right
-#period cell-select 2x2 # center
+# move mouse, don't click
+semicolon warp,end
View
339 .ncmpcpp/config
@@ -1,363 +1,24 @@
-####################################################
-## this is example configuration file, copy it to ##
-## ~/.ncmpcpp/config and set up your preferences ##
-####################################################
-#
-##### connection settings #####
-#
-## set it in order to make tag editor and renaming files work properly
-#
mpd_host = "127.0.0.1"
-#
mpd_port = "6600"
-#
mpd_music_dir = "/home/jack/music"
-#
-#mpd_connection_timeout = "5"
-#
-#mpd_crossfade_time = "5"
-#
-#mpd_communication_mode = "polling" (polling/notifications)
-#
-##### music visualizer #####
-##
-## Note: In order to make music visualizer work you'll
-## need to use mpd fifo output, whose format parameter
-## has to be set to 44100:16:1. Example configuration:
-## (it has to be put into mpd.conf)
-##
-## audio_output {
-## type "fifo"
-## name "My FIFO"
-## path "/tmp/mpd.fifo"
-## format "44100:16:1"
-## }
-##
-#
-#visualizer_fifo_path = "/tmp/mpd.fifo"
-#
-##
-## Note: Below parameter is needed for ncmpcpp
-## to determine which output provides data for
-## visualizer and thus allow syncing between
-## visualization and sound as currently there
-## are some problems with it.
-##
-#
-#visualizer_output_name = "My FIFO"
-#
-##
-## Note: To enable spectrum frequency visualization
-## you need to compile ncmpcpp with fftw3 support.
-##
-#
-#visualizer_type = "wave" (spectrum/wave)
-#
-##### system encoding #####
-##
-## ncmpcpp should detect your charset encoding
-## but if it failed to do so, you can specify
-## charset encoding you are using here.
-##
-## Note: You can see whether your ncmpcpp build
-## supports charset detection by checking output
-## of `ncmpcpp --version`.
-##
-## Note: Since MPD uses utf8 by default, setting
-## this option makes sense only if your encoding
-## is different.
-##
-#
-#system_encoding = ""
-#
-##### delays #####
-#
-## delay after playlist highlighting will be disabled (0 = don't disable)
-#
-#playlist_disable_highlight_delay = "5"
-#
-## defines how long various messages are supposed to be visible
-#
-#message_delay_time = "4"
-#
-##### song format #####
-##
-## for song format you can use:
-##
-## %l - length
-## %f - filename
-## %D - directory
-## %a - artist
-## %t - title
-## %b - album
-## %y - year
-## %n - track number (01/12 -> 01)
-## %N - full track info (01/12 -> 01/12)
-## %g - genre
-## %c - composer
-## %p - performer
-## %d - disc
-## %C - comment
-## $R - begin right alignment
-##
-## you can also put them in { } and then it will be displayed
-## only if all requested values are available and/or define alternate
-## value with { }|{ } eg. {%a - %t}|{%f}
-##
-## Note: Format that is similar to "%a - %t" (i.e. without any additional
-## braces) is equal to "{%a - %t}", so if one of the tags is missing,
-## you'll get nothing.
-##
-## text can also have different color than the main window has,
-## eg. if you want length to be green, write $3%l$9
-##
-## available values:
-##
-## - 0 - default window color (discards all other colors)
-## - 1 - black
-## - 2 - red
-## - 3 - green
-## - 4 - yellow
-## - 5 - blue
-## - 6 - magenta
-## - 7 - cyan
-## - 8 - white
-## - 9 - end of current color
-##
-## Note: colors can be nested.
-##
-#
song_list_format = "{$5%a - }{$7%b - }{$8%t$9}$R{$5(%l)$9}"
-#
song_status_format = "{$5%a{ - $7%b - }{$8%t}}"
-#
-#song_library_format = "{%n - }{%t}|{%f}"
-#
-#tag_editor_album_format = "{(%y) }%b"
-#
-##
-## Note: Below variables are for alternative version of user's interface.
-## Their syntax supports all tags and colors listed above plus some extra
-## markers used for text attributes. They are followed by character '$'.
-## After that you can put:
-##
-## - b - bold text
-## - u - underline text
-## - r - reverse colors
-## - a - use alternative character set
-##
-## If you don't want to use an attribute anymore, just put it again, but
-## this time insert character '/' between '$' and attribute character,
-## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename
-## with reversed colors.
-##
-#
alternative_header_first_line_format = "$b$1$aqqu$/a$8 {%t}|{%f} $1$atqq$/a$9$/b"
-#
alternative_header_second_line_format = "{{$5%a$9}{$8 - $7%b$9}{ ($7%y$9)}}|{%D}"
-#
-##
-## Note: Below variables also supports
-## text attributes listed above.
-##
-#
-#now_playing_prefix = "$b"
-#
-#now_playing_suffix = "$/b"
-#
-#browser_playlist_prefix = "$2playlist$9 "
-#
-#selected_item_prefix = "$6"
-#
-#selected_item_suffix = "$9"
-#
-## colors are not supported for below variable
-#
-#song_window_title_format = "{%a - }{%t}|{%f}"
-#
-##### columns settings #####
-##
-## syntax of song columns list format is "column column etc."
-##
-## - syntax for each column is:
-##
-## (width of column)[column's color]{displayed tag}
-##
-## Note: Width is by default in %, if you want a column to
-## have fixed size, add 'f' after the value, e.g. (10)[white]{a}
-## will be the column that take 10% of screen (so the real column's
-## width will depend on actual screen size), whereas (10f)[white]{a}
-## will take 10 terminal cells, no matter how wide the screen is.
-##
-## - color is optional (if you want the default one, type [])
-##
-## Note: You can give a column additional attributes by putting appropriate
-## character after displayed tag character. Available attributes are:
-##
-## - r - column will be right aligned
-## - E - if tag is empty, empty tag marker won't be displayed
-##
-## E.g. {lr} will give you right aligned column of lengths.
-##
-#
song_columns_list_format = "(5)[yellow]{l} (25)[blue]{a} (30)[cyan]{b} (40)[white]{t}"
-#
-##### various settings #####
-#
-##
-## Note: Custom command that will be executed each
-## time song changes. Useful for notifications etc.
-##
-## Attention: It doesn't support song format anymore.
-## Use `ncmpcpp --now-playing SONG_FORMAT` instead.
-##
-#execute_on_song_change = ""
-#
-#playlist_show_remaining_time = "no"
-#
playlist_display_mode = "columns" (classic/columns)
-#
-#browser_display_mode = "classic" (classic/columns)
-#
-#search_engine_display_mode = "classic" (classic/columns)
-#
-#incremental_seeking = "yes"
-#
-#seek_time = "1"
-#
-#autocenter_mode = "no"
-#
-#centered_cursor = "no"
-#
progressbar_look = "═■"
-#
-#default_place_to_search_in = "database" (database/playlist)
-#
user_interface = "alternative" (classic/alternative)
-#
-#media_library_left_column = "g" (possible values: a,y,g,c,p, legend above)
-#
-#default_find_mode = "wrapped" (wrapped/normal)
-#
-#default_space_mode = "add" (add/select)
-#
-#default_tag_editor_left_col = "albums" (albums/dirs)
-#
-#default_tag_editor_pattern = "%n - %t"
-#
-#header_visibility = "yes"
-#
-#statusbar_visibility = "yes"
-#
-#header_text_scrolling = "yes"
-#
-#fancy_scrolling = "yes"
-#
cyclic_scrolling = "yes"
-#
-#lines_scrolled = "2"
-#
-#follow_now_playing_lyrics = "no"
-#
-#ncmpc_like_songs_adding = "no" (enabled - add/remove, disabled - always add)
-#
-#show_hidden_files_in_local_browser = "no"
-#
-#display_screens_numbers_on_start = "yes"
-#
-##
-## How shall key_screen_switcher work?
-##
-## - yes - always switch between browser and playlist
-## - no - switch between current and last used screen
-##
-#screen_switcher_browser_only = "yes"
-#
-#jump_to_now_playing_song_at_start = "yes"
-#
-#ask_before_clearing_main_playlist = "no"
-#
clock_display_seconds = "no"
-#
-#display_bitrate = "no"
-#
display_remaining_time = "no"
-#
-#regular_expressions = "basic" (basic/extended)
-#
-##
-## Note: If below is enabled, ncmpcpp will ignore leading
-## "The" word while sorting items in browser, tags in
-## media library, etc.
-##
ignore_leading_the = "yes"
-#
-#block_search_constraints_change_if_items_found = "yes"
-#
-#mouse_support = "yes"
-#
-#mouse_list_scroll_whole_page = "yes"
-#
-#empty_tag_marker = "<empty>"
-#
-#tag_editor_extended_numeration = "no"
-#
-#enable_window_title = "yes"
-#
-##
-## Note: These triggers will allow you to physically remove
-## files and directories from your hdd in using ncmpcpp's
-## browser screen.
-##
-#
-#allow_physical_files_deletion = "no"
-#
-#allow_physical_directories_deletion = "no"
-#
-##### lyrics support #####
-##
-## supported lyrics databases:
-##
-## - 1 - lyricsplugin.com
-##
-#
-#lyrics_database = "1"
-#
-#external_editor = ""
-#
-#use_console_editor = "no" (set to yes, if your editor is console app)
-#
-##### colors definitions #####
-#
-#colors_enabled = "yes"
-#
empty_tag_color = "blue"
-#
header_window_color = "blue"
-#
volume_color = "white"
-#
-#state_line_color = "default"
-#
state_flags_color = "black"
-#
main_window_color = "white"
-#
-#color1 = "white"
-#
-#color2 = "green"
-#
main_window_highlight_color = "white"
-#
progressbar_color = "black"
-#
-#statusbar_color = "default"
-#
alternative_ui_separator_color = "black"
-#
active_column_color = "blue"
-#
-#window_border_color = "green"
-#
-#active_window_border = "red"
-#
View
5 .reminders
@@ -1,3 +1,8 @@
+# ~/.reminders
+#
+# JackH79
+# May 2012
+
INCLUDE /home/jack/.config/remind/colours
INCLUDE /home/jack/.config/remind/banner
INCLUDE /home/jack/.config/remind/recurring
View
9 .tmux.conf
@@ -1,3 +1,8 @@
+# ~/.tmux.conf
+#
+# JackH79
+# May 2012
+
### SHELL
# default shell
set -g default-shell /bin/bash
@@ -76,10 +81,6 @@ set-window-option -g window-status-attr dim
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
-# alert window title colours
-set-window-option -g window-status-alert-fg white
-set-window-option -g window-status-alert-bg red
-set-window-option -g window-status-alert-attr bright
# command/message line colours
set -g message-fg white
set -g message-bg yellow
View
16 .vimrc
@@ -1,10 +1,13 @@
" ~/.vimrc
+"
" JackH79
-" 2012
+" May 2012
" Use vim, not vi
set nocompatible
+" Pathogen Runtime Manipulation
+call pathogen#infect()
filetype plugin on " allow plugins
filetype indent on " indent by filetype
@@ -34,20 +37,27 @@ set backupdir=/home/jack/.vim/bak,/tmp
" Various settings
set history=50 " keep 50 lines of command line history
-set ruler " show the cursor position all the time
+"set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set number " show line numbers
-set linebreak " enable line wrapping
+set linebreak " enable line wrapping
set tabstop=4 " tabs have 4 spaces
set shiftwidth=4
set autoindent " auto indent whilst typing
set noerrorbells " don't beep
set background=dark " let vim know that the background is dark
colorscheme jack " use this colour profile
set cursorline " highlight the current line
+set noruler
+set statusline=%t\ %y\ format:\ %{&ff};\ [%c,%l]
+set laststatus=2 " always show the status line
hi CursorLine ctermbg=darkgray term=bold cterm=bold
+" Powerline status bar
+set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after
+let g:Powerline_symbols = 'fancy'
+
" Printing
set pdev=pdf " set pdf as default
set printoptions=paper:A4,syntax:y,wrap:y,duplex:long " page settings
View
23 .xinitrc
@@ -2,6 +2,9 @@
#
# ~/.xinitrc
#
+# JackH79
+# May 2012
+
### ADDITIONAL FONT PATHS
xset +fp /usr/share/fonts/local
xset fp rehash
@@ -29,23 +32,27 @@ xrdb -merge ~/.Xresources
urxvtd -q -o -f &
### AUTOCUTSEL
-autocutsel -fork &
-autocutsel -selection PRIMARY -fork &
-
-### FOR JERRY
-xsetroot -cursor_name left_ptr
-unclutter -root -idle 3 &
-keynav &
+#autocutsel -fork &
+#autocutsel -selection PRIMARY -fork &
### WALLPAPER
-imlibsetroot -s /home/jack/.backgrounds/wanaka.jpg &
+imlibsetroot -s /home/jack/.backgrounds/convent.jpg &
### XCOMPMGR
xcompmgr -cCfFD 3 &
+### REDSHIFT
+# redshift -l -19.25:146.81 -t 6500:5000 -b 1.0:0.6 &
+redshift -l 51.19:6.60 -t 6500:5000 -b 1.0:0.6 &
+
#### REMOVE CAPS LOCK
(sleep 3 && xmodmap -e "remove Lock = Caps_Lock" && xmodmap -e "keysym Caps_Lock = Shift_L") &
+### FOR JERRY
+xsetroot -cursor_name left_ptr
+unclutter -root -idle 3 &
+keynav &
+
### EXECUTE WM and POWERMANAGER
#exec ck-launch-session bash -c "xfce4-power-manager & xmonad"
exec ck-launch-session dbus-launch xmonad
View
19 .xmonad/conkyfull
@@ -1,19 +0,0 @@
-out_to_x no
-out_to_ncurses no
-out_to_console yes
-background yes
-update_interval 3
-times_in_seconds
-if_up_strictness link
-
-TEXT
-${if_up wlan0}^fg(\#329bcd)^i(/home/jack/.xmonad/icons/wireless1.xbm) ^fg()${addr wlan0} ^fg(\#329bcd)on ^fg()${wireless_essid wlan0} ^fg(\#329bcd)at ^fg()${wireless_link_qual_perc wlan0}% ^fg(\#b23535)^i(/home/jack/.xmonad/icons/downleft1.xbm) ^fg()${downspeedf wlan0}KiB ^fg(\#60801f)^i(/home/jack/.xmonad/icons/upright1.xbm) ^fg()${upspeedf wlan0}KiB${endif} \
-${if_up eth0}^fg(\#329bcd)eth0 ^fg()${addr eth0} ^fg(\#329bcd)^i(/home/jack/.xmonad/icons/downleft1.xbm) ^fg()${downspeedf eth0}KiB ^fg(\#329bcd)^i(/home/jack/.xmonad/icons/upright1.xbm) ^fg()${upspeedf eth0}KiB${endif}\
-^fg(\#329bcd)^i(/home/jack/.xmonad/icons/cpu13.xbm) ^fg()${cpu}% \
-${if_match ${hwmon temp 2}>=80}^bg(\#ff4b4b)^fg(\#1a1a1a)^i(/home/jack/.xmonad/icons/temp5.xbm) ${hwmon temp 2}°C ^fg()^bg()${endif}\
-${if_match ${hwmon temp 2}<80}^fg(\#329bcd)^i(/home/jack/.xmonad/icons/temp5.xbm) ^fg()${hwmon temp 2}°C ${endif}\
-^fg(\#329bcd)^i(/home/jack/.xmonad/icons/mem1.xbm) ^fg()${memperc}% (${mem}) \
-^fg(\#329bcd)/ ^fg()${fs_used_perc /}% \
-^fg(\#329bcd)/home ^fg()${fs_used_perc /home}% \
-^fg(\#329bcd)^i(/home/jack/.xmonad/icons/vol1.xbm) ${if_mixer_mute}^fg(\#ff4b4b)mute${else}^fg()$mixer%${endif} \
-^fg(\#329bcd)^i(/home/jack/.xmonad/icons/edit2.xbm) ${time %a %d %b %Y} ^fg(\#ffffff)^i(/home/jack/.xmonad/icons/clock2.xbm) ${time %I:%M%P}^fg(
View
12 .xmonad/xmonad.hs
@@ -3,7 +3,7 @@
--
-- Jack Holborn (https://github.com/JackH79)
--
--- This Version: Apr 2012
+-- This Version: May 2012
--------------------------------------------
-- IMPORTS
@@ -39,6 +39,8 @@ import qualified Data.Map as M
main = do
status <- spawnPipe jackDzenStatus
conky <- spawnPipe jackDzenConky
+ conky <- spawnPipe jackDzenTime
+ conky <- spawnPipe jackDzenMpd
xmonad $ defaultConfig
{ terminal = "urxvtc"
, modMask = mod4Mask
@@ -108,8 +110,10 @@ jackRules = composeAll
-- DZEN2
jackLogHook h = dynamicLogWithPP $ jackDzenPP { ppOutput = hPutStrLn h }
jackDzenStyle = " -fg '#b2b2b2' -bg '#1a1a1a' -fn '-*-termsyn-medium-*-*-*-10-*-*-*-*-*-*-*'"
-jackDzenStatus = "dzen2 -w '400' -ta 'l'" ++ jackDzenStyle
-jackDzenConky = "conky -c /home/jack/.xmonad/conkyfull | dzen2 -x '400' -w '880' -ta 'r'" ++ jackDzenStyle
+jackDzenStatus = "dzen2 -w '700' -ta 'l'" ++ jackDzenStyle
+jackDzenConky = "conky -c /home/jack/.xmonad/conkyrc | dzen2 -x '500' -y '788' -w '780' -ta 'r'" ++ jackDzenStyle
+jackDzenTime = "conky -c /home/jack/.xmonad/conkytime | dzen2 -x '700' -w '580' -ta 'r'" ++ jackDzenStyle
+jackDzenMpd = "conky -c /home/jack/.xmonad/conkympd | dzen2 -y '788' -w '500' -ta 'l'" ++ jackDzenStyle
jackDzenPP :: PP
jackDzenPP = dzenPP
{ ppCurrent = dzenColor "#1a1a1a" "#329bcd" . pad
@@ -140,7 +144,7 @@ jackKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
, ((modm, xK_grave ), spawn "urxvtc -e htop")
, ((modm, xK_c ), spawn "urxvtc -e calc")
, ((modm, xK_t ), spawn "thunderbird")
- , ((modm .|. shiftMask, xK_t ), spawn "remind_call")
+ , ((modm .|. controlMask, xK_t ), spawn "remind_call")
, ((modm, xK_o ), spawn "opera")
, ((modm, xK_f ), spawn "firefox")
, ((modm, xK_d ), spawn "dwb")
View
202 .xmonad/xmonad.hs.2bars
@@ -1,202 +0,0 @@
---------------------------------------------
--- ~/.xmonad/xmonad.hs
---
--- Jack Holborn (https://github.com/JackH79)
---
--- This Version: Apr 2012
---------------------------------------------
-
--- IMPORTS
-import XMonad
-
-import XMonad.Layout.Spacing -- spaces around windows
-import XMonad.Layout.NoBorders -- no border for fullscreen layout
-import XMonad.Layout.Named -- custom layout names
-import XMonad.Layout.Grid -- grid layout
-import XMonad.Layout.MagicFocus -- automagically switch focused window to master area
-import XMonad.Layout.Minimize -- minimise windows
-import XMonad.Layout.ToggleLayouts -- toggle layouts keybind
-
-import XMonad.Actions.FindEmptyWorkspace -- find next empty workspace
-import XMonad.Actions.RotSlaves -- rotates Windows anti-/clockwise
-import XMonad.Actions.GridSelect -- select windows via popup
-
-import XMonad.Hooks.SetWMName -- set WM name for java
-import XMonad.Hooks.DynamicLog -- output to dzen
-import XMonad.Hooks.ManageDocks -- don't touch the dock
-import XMonad.Hooks.ManageHelpers (isDialog, isFullscreen, doFullFloat, doCenterFloat)
-
-import XMonad.Util.Run (spawnPipe) -- spawnPipe for dzen
-
-import Data.Monoid
-import System.Exit
-import System.IO (hPutStrLn) -- hPutStrLn
-import Control.Monad (liftM2) -- for viewShift
-import qualified XMonad.StackSet as W
-import qualified Data.Map as M
-
--- DEFAULTS
-main = do
- status <- spawnPipe jackDzenStatus
- conky <- spawnPipe jackDzenConky
- conky <- spawnPipe jackDzenTime
- conky <- spawnPipe jackDzenMpd
- xmonad $ defaultConfig
- { terminal = "urxvtc"
- , modMask = mod4Mask
--- , borderWidth = 2
- , normalBorderColor = "#1a1a1a"
- , focusedBorderColor = "#329bcd"
- , focusFollowsMouse = jackFocusFollowsMouse
- , workspaces = jackWorkspaces
- , startupHook = setWMName "LG3D"
- , layoutHook = jackLayoutHook
- , manageHook = jackManageHook
- , logHook = jackLogHook status
- , handleEventHook = docksEventHook
- , keys = jackKeys
- }
-
--- RODENT RULES
-jackFocusFollowsMouse :: Bool
-jackFocusFollowsMouse = False
-
--- WORKSPACES
-jackWorkspaces = [ "1" , "2:net" , "3:off", "4:med" , "5:pic" ] ++ map show [ 6..9 :: Int ]
-
--- LAYOUTS
-jackLayoutHook = smartBorders $ toggleLayouts Full $ ( tile ||| focus ||| grid ||| full )
- where tile = named "tile" $ avoidStruts $ spacing 2 $ minimize $ Tall 1 (3/100) (1/2)
- focus = named "focus" $ avoidStruts $ spacing 2 $ minimize $ magicFocus $ Tall 1 (3/100) (3/4)
- grid = named "grid" $ avoidStruts $ spacing 2 $ minimize $ Grid
- full = named "full" $ noBorders $ Full
-
--- HOOKS AND WINDOW RULES
-jackManageHook :: ManageHook
-jackManageHook = composeAll $ concat
- [ [ manageDocks ]
- , [ jackRules ]
- , [ manageHook defaultConfig ]
- , [ isDialog --> doCenterFloat ]
- , [ isFullscreen --> doF W.focusDown <+> doFullFloat ]
- ]
-
-jackRules = composeAll
- [ className =? "MPlayer" --> (doFloat <+> viewShift "4:med")
- , className =? "mplayer2" --> (doFloat <+> viewShift "4:med")
- , className =? "Galculator" --> doFloat
- , className =? "Convertall.py" --> doFloat
- , className =? "LibreOffice" --> viewShift "3:off"
- , className =? "Zathura" --> viewShift "3:off"
- , className =? "Vlc" --> viewShift "4:med"
- , className =? "sxiv" --> viewShift "5:pic"
- , className =? "Geeqie" --> viewShift "5:pic"
- , className =? "Firefox" --> viewShift "2:net"
- , className =? "Opera" --> viewShift "2:net"
- , className =? "Thunderbird" --> viewShift "3:off"
- , title =? "ncmpcpp" --> viewShift "4:med"
- , title =? "wicd-curses" --> viewShift "9"
- , className =? "Gimp" --> viewShift "5:pic"
- , className =? "Deluge" --> viewShift "8"
- , className =? "Xfce4-notifyd" --> doIgnore
- , className =? "dzen" --> doIgnore
- ]
- where viewShift = doF . liftM2 (.) W.greedyView W.shift
-
--- DZEN2
-jackLogHook h = dynamicLogWithPP $ jackDzenPP { ppOutput = hPutStrLn h }
-jackDzenStyle = " -fg '#b2b2b2' -bg '#1a1a1a' -fn '-*-termsyn-medium-*-*-*-10-*-*-*-*-*-*-*'"
-jackDzenStatus = "dzen2 -w '700' -ta 'l'" ++ jackDzenStyle
-jackDzenConky = "conky -c /home/jack/.xmonad/conkyrc | dzen2 -x '500' -y '788' -w '780' -ta 'r'" ++ jackDzenStyle
-jackDzenTime = "conky -c /home/jack/.xmonad/conkytime | dzen2 -x '700' -w '580' -ta 'r'" ++ jackDzenStyle
-jackDzenMpd = "conky -c /home/jack/.xmonad/conkympd | dzen2 -y '788' -w '500' -ta 'l'" ++ jackDzenStyle
-jackDzenPP :: PP
-jackDzenPP = dzenPP
- { ppCurrent = dzenColor "#1a1a1a" "#329bcd" . pad
- , ppHidden = dzenColor "#b2b2b2" "" . pad
- , ppHiddenNoWindows = dzenColor "#1a1a1a" "" . pad
- , ppUrgent = dzenColor "#ffffff" "#ee0000" . pad
--- , ppLayout = dzenColor "#9bcd32" "" . pad
- , ppLayout = dzenColor "#9bcd32" "" .
- (\ x -> case x of
- "tile" -> pad "^i(/home/jack/.xmonad/icons/tile.xbm)"
- "focus" -> pad "^i(/home/jack/.xmonad/icons/focus.xbm)"
- "grid" -> pad "^i(/home/jack/.xmonad/icons/grid.xbm)"
- "full" -> pad "^i(/home/jack/.xmonad/icons/monocle2.xbm)"
- _ -> pad x
- )
--- , ppSep = "^fg(#9bcd32)::^fg()"
- , ppTitle = dzenColor "#329bcd" "" . pad
- }
-
--- BINDINGS
-jackKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
--- [ ((modm, xK_Return ), spawn "urxvtc -e tmux")
- [ ((modm, xK_Return ), spawn $ XMonad.terminal conf)
- , ((modm, xK_r ), spawn "urxvtc -e ranger")
- , ((modm, xK_m ), spawn "urxvtc -e ncmpcpp")
- , ((modm, xK_w ), spawn "urxvtc -e wicd-curses")
- , ((modm, xK_i ), spawn "urxvtc -e irssi")
- , ((modm, xK_grave ), spawn "urxvtc -e htop")
- , ((modm, xK_c ), spawn "urxvtc -e calc")
- , ((modm, xK_t ), spawn "thunderbird")
- , ((modm .|. shiftMask, xK_t ), spawn "remind_call")
- , ((modm, xK_o ), spawn "opera")
- , ((modm, xK_f ), spawn "firefox")
- , ((modm, xK_d ), spawn "dwb")
- , ((modm, xK_l ), spawn "libreoffice")
- , ((modm .|. shiftMask, xK_z ), spawn "slock")
- , ((modm, xK_p ), spawn "exe=`dmenu_run -fn -*-termsyn-medium-*-*-*-12-*-*-*-*-*-*-* -nb '#1a1a1a' -nf '#b2b2b2' -sb '#329bcd' -sf '#1a1a1a'` && eval \"exec $exe\"")
- -- Volume / MPD control
- , ((modm, xK_F7 ), spawn "mpc prev")
- , ((modm, xK_F8 ), spawn "mpc toggle")
- , ((modm, xK_F9 ), spawn "mpc next")
- , ((modm, xK_F10 ), spawn "amixer -q sset Master toggle")
- , ((modm, xK_F11 ), spawn "amixer -q sset Master 2dB-")
- , ((modm, xK_F12 ), spawn "amixer -q sset Master 2dB+")
- -- Windows
- , ((modm, xK_Left ), windows W.focusDown)
- , ((modm, xK_Right ), windows W.focusUp)
- , ((modm .|. shiftMask, xK_Left ), windows W.swapDown)
- , ((modm .|. shiftMask, xK_Right ), windows W.swapUp)
- , ((modm, xK_equal ), viewEmptyWorkspace)
- , ((modm .|. shiftMask, xK_equal ), tagToEmptyWorkspace)
- , ((modm, xK_g ), goToSelected defaultGSConfig)
- , ((modm .|. controlMask, xK_Left ), sendMessage Shrink)
- , ((modm .|. controlMask, xK_Right ), sendMessage Expand)
- , ((modm .|. shiftMask, xK_r ), refresh)
- -- rotate Windows anti-/clockwise
- , ((modm .|. shiftMask, xK_bracketleft ), rotAllUp)
- , ((modm .|. shiftMask, xK_bracketright ), rotAllDown)
- -- maximise
- , ((modm .|. shiftMask, xK_f ), sendMessage ToggleLayout)
- -- minimise
- , ((modm, xK_n ), withFocused minimizeWindow)
- , ((modm .|. shiftMask, xK_n ), sendMessage RestoreNextMinimizedWin)
-
- , ((modm .|. shiftMask, xK_c ), kill)
- -- swap focused window to master area
- , ((modm .|. shiftMask, xK_Return ), windows W.swapMaster)
-
- -- push window back into tiling
- , ((modm .|. shiftMask, xK_t ), withFocused $ windows . W.sink)
- -- change the number of windows in the master area
- , ((modm, xK_comma ), sendMessage (IncMasterN 1))
- , ((modm, xK_period ), sendMessage (IncMasterN (-1)))
-
- -- Layouts
- , ((modm, xK_space ), sendMessage NextLayout)
- , ((modm .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
-
- -- XMonad
- , ((modm .|. shiftMask, xK_r ), spawn "killall conky dzen2; xmonad --recompile; xmonad --restart")
- , ((modm .|. shiftMask, xK_q ), io (exitWith ExitSuccess))
- ]
- ++
- -- Workspaces
- [((m .|. modm, k), windows $ f i)
- | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
- , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]
- ]
-
--- vim:sw=4 sts=4 ts=4 tw=0 et ai

0 comments on commit b957416

Please sign in to comment.