mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
Installed. More configuration
~ move options out
~ redshift: switch to geoclue2
~ wifi: add c-base
+ rofi: add active and urgent colours
~ vim: wildmode made more sensible
~ i3blocks: fix battery script
- i3blocks: brightness indicator
+ i3: rofi window switcher
~ use illum for backlight
+ use unclutter
+ tor-browser-bundle-bin
+ xfce.tumbler
+ xorg.{xbacklight,xcursorthemes,xkill}
+ texlive-full
+ cabal{-install,2nix}
+ idris
~ bash: fix prompt
+ helpers file
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
let vim_conf = with import ../constants.nix; ''
|
||||
{ pkgs, config, ... }:
|
||||
with import ../helpers.nix;
|
||||
let vim_conf = ''
|
||||
" if tabular
|
||||
vmap a= :Tabularize /=<CR>
|
||||
vmap a; :Tabularize /::<CR>
|
||||
@@ -14,7 +15,7 @@ let vim_conf = with import ../constants.nix; ''
|
||||
set number
|
||||
set path=$PWD/**
|
||||
set completeopt=menu,longest
|
||||
set wildmode=longest,full,list wildignore+=${commaSep ignoredFiles}
|
||||
set wildmode=list:longest wildignore+=${commaSep config.constants.ignore}
|
||||
set shortmess+=aI
|
||||
set nowritebackup noswapfile
|
||||
set mouse=a
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
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 ^$)
|
||||
@@ -26,7 +26,7 @@ let
|
||||
'';
|
||||
battery_info = pkgs.writeBash "battery.info" ''
|
||||
BAT_DIR="/sys/class/power_supply/$BLOCK_INSTANCE/"
|
||||
[ -d BAT_DIR ] && cd BAT_DIR || exit 1
|
||||
[ -d $BAT_DIR ] && cd $BAT_DIR || exit 1
|
||||
|
||||
status=$(cat status)
|
||||
charge_f=$((100 * $(cat charge_now) / $(cat charge_full)))
|
||||
@@ -122,15 +122,6 @@ let
|
||||
|
||||
[separator]
|
||||
|
||||
[brightness]
|
||||
command=printf "%.1f%%" $(${pkgs.xorg.xbacklight}/bin/xbacklight)
|
||||
label=
|
||||
min_width= 100%
|
||||
signal=2
|
||||
interval=once
|
||||
|
||||
[separator]
|
||||
|
||||
[cpu_usage]
|
||||
command=cut -d' ' -f 1-3 < /proc/loadavg
|
||||
label=
|
||||
@@ -182,11 +173,12 @@ let
|
||||
new_window pixel 1
|
||||
new_float pixel 1
|
||||
|
||||
bindsym $mod+Return exec ${pkgs.xfce.terminal}/bin/xfce4-terminal
|
||||
bindsym $mod+y exec ${pkgs.chromium}/bin/chrome-browser
|
||||
bindsym $mod+t exec ${pkgs.xfce.thunar}/bin/thunar
|
||||
bindsym $mod+Return exec ${config.defaultApplications.terminal}
|
||||
bindsym $mod+y exec ${config.defaultApplications.browser}
|
||||
bindsym $mod+t exec ${config.defaultApplications.fileManager}
|
||||
bindsym $mod+Shift+w exec ${pkgs.xautolock}/bin/xautolock -locknow
|
||||
bindsym $mod+d exec ${pkgs.rofi}/bin/rofi -display-run — -show run
|
||||
bindsym $mod+a exec ${pkgs.rofi}/bin/rofi -display-window — -show window
|
||||
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+Left focus left
|
||||
@@ -243,8 +235,6 @@ let
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -d 5 && pkill -RTMIN+3 i3blocks
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -i 5 && pkill -RTMIN+3 i3blocks
|
||||
bindsym XF86AudioMute exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -t && pkill -RTMIN+3 i3blocks
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id ${pkgs.light}/bin/light +A 10 && pkill -RTMIN+2 i3blocks
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id ${pkgs.light}/bin/light -A 10 && pkill -RTMIN+2 i3blocks
|
||||
|
||||
mode " " {
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
@@ -284,17 +274,17 @@ let
|
||||
}
|
||||
'';
|
||||
in {
|
||||
services.xserver = with import ../constants.nix; with import ../theme.nix; {
|
||||
services.xserver = with import ../helpers.nix; with import ../theme.nix; {
|
||||
enable = true;
|
||||
layout = commaSep [ "de" "gr" "ru" ];
|
||||
xkbVariant = commaSep [ "T3" "polytonic" "phonetic_winkeys" ];
|
||||
xkbOptions = commaSep [ "terminate:ctrl_alt_bksp" "grp:alt_space_toggle" ];
|
||||
libinput.enable = true;
|
||||
xautolock = let i3lock = "${pkgs.i3lock}/bin/i3lock -e -c ${lib.strings.removePrefix "#" black}"; in {
|
||||
xautolock = {
|
||||
enable = true;
|
||||
time = 15;
|
||||
locker = i3lock;
|
||||
nowlocker = i3lock;
|
||||
locker = config.defaultApplications.locker;
|
||||
nowlocker = config.defaultApplications.locker;
|
||||
enableNotifier = true;
|
||||
notifier = ''${pkgs.libnotify}/bin/notify-send -u normal -a xautolock "Locking soon" "The screen will lock in 10 seconds."'';
|
||||
};
|
||||
@@ -317,10 +307,11 @@ in {
|
||||
|
||||
services.compton = {
|
||||
enable = true;
|
||||
fade = true;
|
||||
shadow = true;
|
||||
menuOpacity = "0.9";
|
||||
shadowOpacity = "0.5";
|
||||
fadeDelta = 2;
|
||||
shadowOpacity = "0.3";
|
||||
};
|
||||
|
||||
services.illum.enable = true;
|
||||
services.unclutter.enable = true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
with pkgs;
|
||||
{
|
||||
fonts.fonts = [
|
||||
@@ -13,8 +13,10 @@ with pkgs;
|
||||
|
||||
environment.systemPackages = [
|
||||
chromium
|
||||
config.constants.theme.gtk.package
|
||||
config.constants.theme.icon.package
|
||||
ffmpeg
|
||||
firefox firefoxPackages.tor-browser
|
||||
firefox
|
||||
git
|
||||
gnumake
|
||||
htop
|
||||
@@ -27,6 +29,8 @@ with pkgs;
|
||||
pmount
|
||||
ripgrep tree
|
||||
rlwrap
|
||||
tor-browser-bundle-bin
|
||||
unzip
|
||||
w3m
|
||||
wget
|
||||
whois
|
||||
@@ -34,21 +38,28 @@ with pkgs;
|
||||
xfce.ristretto
|
||||
xfce.terminal
|
||||
xfce.thunar
|
||||
xfce.tumbler
|
||||
xorg.xbacklight
|
||||
xorg.xcursorthemes
|
||||
xorg.xkill
|
||||
youtubeDL
|
||||
zathura
|
||||
zip unzip
|
||||
zip
|
||||
];
|
||||
|
||||
programs.command-not-found.enable = true;
|
||||
programs.java.enable = true;
|
||||
programs.light.enable = true;
|
||||
|
||||
users.users.kfm.packages = [
|
||||
(texlive.combine { inherit (pkgs.texlive) scheme-full latexmk; })
|
||||
audacity
|
||||
biber
|
||||
cabal-install
|
||||
cabal2nix
|
||||
calibre
|
||||
clojure
|
||||
ctags
|
||||
dropbox-cli
|
||||
franz
|
||||
fsharp
|
||||
gcc
|
||||
@@ -59,8 +70,9 @@ with pkgs;
|
||||
haskellPackages.hasktags
|
||||
haskellPackages.hindent
|
||||
haskellPackages.hoogle
|
||||
haskellPackages.idris
|
||||
haskellPackages.pandoc haskellPackages.pandoc-citeproc
|
||||
haskellPackages.pandoc
|
||||
haskellPackages.pandoc-citeproc
|
||||
idris
|
||||
inkscape
|
||||
jo
|
||||
lua
|
||||
@@ -79,7 +91,6 @@ with pkgs;
|
||||
spotify
|
||||
stack
|
||||
swiProlog
|
||||
texlive.combined.scheme-tetex
|
||||
tinycc
|
||||
];
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ pkgs, ... }:
|
||||
let scripts = import ../dot/scripts.nix pkgs;
|
||||
let scripts = import ../dot/scripts.nix { inherit pkgs; };
|
||||
in {
|
||||
environment.shellAliases =
|
||||
let rlwrap = cmd: "${pkgs.rlwrap}/bin/rlwrap ${cmd}";
|
||||
@@ -12,7 +12,6 @@ in {
|
||||
ip = "${pkgs.iproute}/bin/ip -c";
|
||||
ocaml = rlwrap "${pkgs.ocaml}/bin/ocaml";
|
||||
tmux = "${pkgs.tmux}/bin/tmux -2";
|
||||
gdrive = ''sh -c "cd ~/google-drive && ${pkgs.grive2}/bin/grive" >/dev/null 2>&1 &'';
|
||||
} // scripts;
|
||||
|
||||
environment.extraInit = ''
|
||||
@@ -56,7 +55,7 @@ in {
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
promptInit = ''PS1="$(tput bold)\w \$([[ \$? == 0 ]] && echo \"\[\033[1;32m\]\" || echo \"\[\033[1;31m\]\")\$$(tput sgr0) '';
|
||||
promptInit = ''PS1="$(tput bold)\w \$([[ \$? == 0 ]] && echo \"\[\033[1;32m\]\" || echo \"\[\033[1;31m\]\")\$$(tput sgr0) "'';
|
||||
enableCompletion = true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user