mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
Configure some more
~ Use nix-writers ~ Split packages between system and user + Add screen locking + Log in automatically + Add redshift + Add dunst ~ Use X11 for the wallpaper ~ Fix vim config
This commit is contained in:
@@ -8,4 +8,4 @@
|
||||
:def unpl \x -> return $ ":!${pkgs.haskellPackages.pointful}/bin/pointful \"" ++ x ++ "\""
|
||||
:set prompt "\o033[1m%s\o033[1;34m λ\o033[0m "
|
||||
''
|
||||
#:def djinn \x -> return $ ":!echo \"" ++ x ++ "\" | ${pkgs.haskellPackages.djinn}/bin/djinn /dev/stdin"
|
||||
# :def djinn \x -> return $ ":!echo \"" ++ x ++ "\" | ${pkgs.haskell.packages.ghc7102.djinn}/bin/djinn /dev/stdin"
|
||||
|
||||
@@ -14,6 +14,7 @@ new_float pixel 1
|
||||
bindsym $mod+Return exec ${defaultApplications.terminal}
|
||||
bindsym $mod+y exec ${defaultApplications.webBrowser}
|
||||
bindsym $mod+t exec ${defaultApplications.fileManager}
|
||||
bindsym $mod+Shift+w exec ${pkgs.xautolock}/bin/xautolock -locknow
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
@@ -114,5 +115,4 @@ bar {
|
||||
}
|
||||
|
||||
exec --no-startup-id ${pkgs.networkmanagerapplet}/bin/nm-applet
|
||||
exec --no-startup-id ${pkgs.feh}/bin/feh --bg-fill ${wallpaper}
|
||||
''
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
{ pkgs, theme }:
|
||||
let
|
||||
spotify_info = pkgs.writeScript "spotify.info" ''
|
||||
#!/bin/bash
|
||||
|
||||
spotify_info = pkgs.writeBash "spotify.info" ''
|
||||
STATUS=$(${pkgs.dbus}/bin/dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus'|egrep -A 1 "string"|cut -b 26-|cut -d '"' -f 1|egrep -v ^$)
|
||||
|
||||
if [[ "$STATUS" == 'Playing' ]]; then
|
||||
@@ -26,8 +24,7 @@ let
|
||||
|
||||
printf "%s \u2237 %s" "$ARTIST" "$TITLE"
|
||||
'';
|
||||
battery_info = pkgs.writeScript "battery.info" ''
|
||||
#!/usr/bin/env bash
|
||||
battery_info = pkgs.writeBash "battery.info" ''
|
||||
cd "/sys/class/power_supply/$BLOCK_INSTANCE/"
|
||||
|
||||
status=$(cat status)
|
||||
@@ -76,8 +73,7 @@ let
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
volume_info = pkgs.writeScript "volume.info" ''
|
||||
#!/usr/bin/env bash
|
||||
volume_info = pkgs.writeBash "volume.info" ''
|
||||
if [[ "$BLOCK_BUTTON" == 1 ]]; then
|
||||
${pkgs.pamixer}/bin/pamixer -i 5
|
||||
elif [[ "$BLOCK_BUTTON" == 3 ]]; then
|
||||
@@ -93,11 +89,11 @@ let
|
||||
printf '\uf028 %s%%' "$volume"
|
||||
fi
|
||||
'';
|
||||
fancyDate = pkgs.writeScript "fancy_date.py" ''
|
||||
#!/usr/bin/env python3
|
||||
fancyDate = pkgs.writePython3 "fancy_date.py" {} ''
|
||||
from datetime import datetime
|
||||
now = datetime.now()
|
||||
print(now.strftime("%d\u2009{}\u2009%Y ⟨%V⟩").format(chr(0x2160 + (now.month - 1))))
|
||||
print(now.strftime("%d\u2009{}\u2009%Y ⟨%V⟩")
|
||||
.format(chr(0x2160 + (now.month - 1))))
|
||||
''; in
|
||||
with theme;
|
||||
''
|
||||
|
||||
@@ -2,25 +2,26 @@
|
||||
with import ../theme.nix;
|
||||
''
|
||||
[Configuration]
|
||||
BackgroundDarkness=0.95
|
||||
BackgroundMode=TERMINAL_BACKGROUND_TRANSPARENT
|
||||
ColorBackground=${veryDark}
|
||||
ColorCursor=${light}
|
||||
ColorForeground=${light}
|
||||
ColorPalette=${dark};${red.dark};${green.dark};${yellow.dark};${blue.dark};${magenta.dark};${cyan.dark};${light};${dark};${red.light};${green.light};${yellow.light};${blue.light};${magenta.light};${cyan.light};${light}
|
||||
FontName=${terminalFont.regular.name} ${toString terminalFont.size}
|
||||
MiscAlwaysShowTabs=FALSE
|
||||
MiscBell=TRUE
|
||||
MiscMenubarDefault=FALSE
|
||||
MiscToolbarDefault=FALSE
|
||||
MiscBordersDefault=FALSE
|
||||
MiscConfirmClose=FALSE
|
||||
MiscCursorBlinks=TRUE
|
||||
MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK
|
||||
MiscBordersDefault=FALSE
|
||||
MiscHighlightUrls=TRUE
|
||||
MiscMenubarDefault=FALSE
|
||||
MiscMiddleClickOpensUri=TRUE
|
||||
MiscMouseAutohide=FALSE
|
||||
MiscMouseWheelZoom=TRUE
|
||||
MiscRewrapOnResize=TRUE
|
||||
MiscToolbarDefault=FALSE
|
||||
ScrollingBar=TERMINAL_SCROLLBAR_NONE
|
||||
TitleMode=TERMINAL_TITLE_HIDE
|
||||
MiscMouseAutohide=FALSE
|
||||
MiscHighlightUrls=TRUE
|
||||
BackgroundDarkness=0.95
|
||||
BackgroundMode=TERMINAL_BACKGROUND_TRANSPARENT
|
||||
ColorPalette=${dark};${red.dark};${green.dark};${yellow.dark};${blue.dark};${magenta.dark};${cyan.dark};${light};${dark};${red.light};${green.light};${yellow.light};${blue.light};${magenta.light};${cyan.light};${light}
|
||||
ColorBackground=${veryDark}
|
||||
ColorForeground=${light}
|
||||
ColorCursor=${light}
|
||||
''
|
||||
|
||||
82
dot/vim.nix
82
dot/vim.nix
@@ -1,41 +1,41 @@
|
||||
''
|
||||
filetype off
|
||||
|
||||
if exists("g:loaded_airline")
|
||||
set noshowmode laststatus=0 noruler
|
||||
let g:airline#extensions#tabline#close_symbol = 'X'
|
||||
let g:airline#extensions#tabline#enabled = 0
|
||||
let g:airline#extensions#tabline#left_alt_sep = ''
|
||||
let g:airline#extensions#tabline#left_sep = ''
|
||||
let g:airline#extensions#tabline#right_alt_sep = ''
|
||||
let g:airline#extensions#tabline#right_sep = ''
|
||||
let g:airline#extensions#tabline#show_close_button = 1
|
||||
let g:airline#extensions#tabline#show_tab_type = 0
|
||||
let g:airline#extensions#tabline#tab_min_count = 2
|
||||
let g:airline#extensions#tabline#tab_nr_type = 0
|
||||
let g:airline#extensions#tmuxline#enabled = 0
|
||||
let g:airline#extensions#wordcount#enabled = 1
|
||||
let g:airline_left_alt_sep = ''
|
||||
let g:airline_left_sep = ''
|
||||
let g:airline_right_alt_sep = ''
|
||||
let g:airline_right_sep = ''
|
||||
let g:airline_section_z = '%{line(".") + 1}/%{line("$")}'
|
||||
endif
|
||||
if exists("g:loaded_airline_themes")
|
||||
let g:airline_theme='simple'
|
||||
endif
|
||||
" if exists("g:loaded_airline")
|
||||
set noshowmode laststatus=0 noruler
|
||||
let g:airline#extensions#tabline#close_symbol = 'X'
|
||||
let g:airline#extensions#tabline#enabled = 0
|
||||
let g:airline#extensions#tabline#left_alt_sep = ''
|
||||
let g:airline#extensions#tabline#left_sep = ''
|
||||
let g:airline#extensions#tabline#right_alt_sep = ''
|
||||
let g:airline#extensions#tabline#right_sep = ''
|
||||
let g:airline#extensions#tabline#show_close_button = 1
|
||||
let g:airline#extensions#tabline#show_tab_type = 0
|
||||
let g:airline#extensions#tabline#tab_min_count = 2
|
||||
let g:airline#extensions#tabline#tab_nr_type = 0
|
||||
let g:airline#extensions#tmuxline#enabled = 0
|
||||
let g:airline#extensions#wordcount#enabled = 1
|
||||
let g:airline_left_alt_sep = ''
|
||||
let g:airline_left_sep = ''
|
||||
let g:airline_right_alt_sep = ''
|
||||
let g:airline_right_sep = ''
|
||||
let g:airline_section_z = '%{line(".")}/%{line("$")} %{col(".")}'
|
||||
" endif
|
||||
" if exists("g:loaded_airline_themes")
|
||||
let g:airline_theme='simple'
|
||||
" endif
|
||||
|
||||
if exists("g:loaded_syntastic_plugin")
|
||||
let g:syntastic_always_populate_loc_list = 1
|
||||
let g:syntastic_auto_loc_list = 0
|
||||
let g:syntastic_check_on_open = 0
|
||||
let g:syntastic_check_on_wq = 0
|
||||
map ,s :SyntasticToggleMode<CR>
|
||||
endif
|
||||
" if exists("g:loaded_syntastic_plugin")
|
||||
let g:syntastic_always_populate_loc_list = 1
|
||||
let g:syntastic_auto_loc_list = 0
|
||||
let g:syntastic_check_on_open = 0
|
||||
let g:syntastic_check_on_wq = 0
|
||||
map ,s :SyntasticToggleMode<CR>
|
||||
" endif
|
||||
|
||||
if exists("g:loaded_gundo")
|
||||
nnoremap <F5> :GundoToggle<CR>
|
||||
endif
|
||||
" if exists("g:loaded_gundo")
|
||||
nnoremap <F5> :GundoToggle<CR>
|
||||
" endif
|
||||
|
||||
" if supertab
|
||||
let g:SuperTabDefaultCompletionType = '<c-n>'
|
||||
@@ -67,14 +67,14 @@ set nopaste
|
||||
set list listchars=tab:▸\ ,extends:❯,precedes:❮,nbsp:⍽ showbreak=↪
|
||||
set foldlevelstart=30
|
||||
|
||||
if exists("g:loaded_netrwPlugin")
|
||||
let g:netrw_banner=0
|
||||
let g:netrw_browse_split=4
|
||||
let g:netrw_altv=1 " open splits to the right
|
||||
let g:netrw_liststyle=3 " tree view
|
||||
let g:netrw_list_hide=netrw_gitignore#Hide()
|
||||
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
|
||||
endif
|
||||
" if exists("g:loaded_netrwPlugin")
|
||||
let g:netrw_banner=0
|
||||
let g:netrw_browse_split=4
|
||||
let g:netrw_altv=1 " open splits to the right
|
||||
let g:netrw_liststyle=3 " tree view
|
||||
let g:netrw_list_hide=netrw_gitignore#Hide()
|
||||
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
|
||||
" endif
|
||||
|
||||
call matchadd('colorcolumn', '\%101v', 100)
|
||||
highlight folded ctermbg=black
|
||||
|
||||
Reference in New Issue
Block a user