Compare commits

..

4 Commits

Author SHA1 Message Date
The Magician 5a4dd63b8c Add .taskrc 2023-12-10 16:33:45 +00:00
The Magician 9c1ed36e6e Add .tmux.conf 2023-12-10 16:27:01 +00:00
The Magician 166ac4ce48 Add .bash_profile 2023-12-10 16:25:47 +00:00
The Magician 5546998dad Add xmonad .hs 2023-12-10 16:23:07 +00:00
4 changed files with 101 additions and 0 deletions

5
bash/.bash_profile Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
if [[ -f ~/.bashrc ]]; then
source ~/.bashrc
fi

10
task/.taskrc Normal file
View File

@ -0,0 +1,10 @@
# Files
data.location=~/.local/share/task/
hooks.location=~/.config/task/hooks/
# 'in' Report
report.in.description = Inbox
report.in.columns = id,description,urgency
report.in.labels = ID,Description,Urgency
report.in.filter = status:pending limit:page (+in) (-BLOCKED)
report.in.sort = urgency-

29
tmux/.tmux.conf Normal file
View File

@ -0,0 +1,29 @@
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# vimlike bindings
# pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# pane resizing
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
# unbind keys
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right

57
xmonad/.xmonad/xmonad.hs Normal file
View File

@ -0,0 +1,57 @@
import qualified Data.Map as M
import XMonad
import XMonad.Util.Run (spawnPipe)
import XMonad.Util.EZConfig (additionalKeysP)
import XMonad.Hooks.ManageDocks (avoidStruts, docks, manageDocks)
import XMonad.Hooks.EwmhDesktops
import XMonad.Layout.NoBorders
import XMonad.Layout.Spacing (spacing)
import XMonad.Layout.GridVariants (Grid(Grid))
import XMonad.Layout.ResizableTile
myModKey = mod4Mask
myTerminal = "st"
myBorderWidth = 1
myUnfocusedBorderColor = "#ffffff"
myFocusedBorderColor = "#00cd00"
myWorkspaces = map show [1..9]
-- TODO: Can this be moved down to nmaster etc. section?
tiled = spacing 12 $ ResizableTall 1 (1/100) (1/2) []
grid = spacing 12 $ Grid (16/10)
monocle = smartBorders (Full)
myLayout = myDefaultLayout
where myDefaultLayout = tiled ||| Mirror tiled ||| monocle
-- TODO: These don't seem used, see if we can remove/use them
-- Update: Examination of other xmonad.hs files seems to back up my suspicions
-- nmaster = 1
-- ratio = 1/2
-- delta = 1/100
myKeys =
[ ("M-a", sendMessage MirrorShrink)
, ("M-z", sendMessage MirrorExpand)
]
main = do
xmproc <- spawnPipe "xmobar -x 0 /home/viciouscirce/.config/xmobar/xmobarrc"
xmonad $ ewmh def
{ manageHook = manageDocks
--, handleEventHook = docks
, modMask = myModKey
, terminal = myTerminal
-- , startupHook = myStartupHook
-- , layoutHook = myLayoutHook
, workspaces = myWorkspaces
, borderWidth = myBorderWidth
, normalBorderColor = myUnfocusedBorderColor
, focusedBorderColor = myFocusedBorderColor
-- , logHook = workspaceHistoryHook <+> myLogHook <+> dynamicLogWithPP xmobarPP
-- { ppOutput =
-- }
}
--`additionalKeysP` myKeys