initial commit
This commit is contained in:
249
users/phundrak/config/hypr/hyprland.conf
Normal file
249
users/phundrak/config/hypr/hyprland.conf
Normal file
@@ -0,0 +1,249 @@
|
||||
env = XCURSOR_SIZE,24
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
|
||||
input {
|
||||
kb_layout = fr
|
||||
kb_variant = bepo_afnor
|
||||
kb_model =
|
||||
kb_options = caps:ctrl_modifier
|
||||
kb_rules =
|
||||
numlock_by_default = true
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = false
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
monitor = HDMI-A-1, 2560x1080, 0x0, 1
|
||||
monitor = eDP-1, 1920x1080@120, 2560x0, 1
|
||||
|
||||
general {
|
||||
gaps_in = 5
|
||||
gaps_out = 20
|
||||
border_size = 2
|
||||
col.active_border = rgb(81a1c1) rgb(a3be8c) 45deg
|
||||
col.inactive_border = rgb(4c566a)
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 5
|
||||
blur {
|
||||
enabled = true
|
||||
size = 9
|
||||
passes = 1
|
||||
}
|
||||
shadow {
|
||||
enabled = true
|
||||
color = rgba(2e3440aa)
|
||||
range = 4
|
||||
render_power = 3
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
||||
|
||||
dwindle {
|
||||
pseudotile = true
|
||||
preserve_split = true
|
||||
}
|
||||
|
||||
exec-once = wpaperd
|
||||
exec-once = waybar
|
||||
|
||||
exec-once = pactl load-module module-switch-on-connect
|
||||
exec-once = mpc stop
|
||||
|
||||
exec-once = xfce-polkit
|
||||
|
||||
exec-once = swaync
|
||||
|
||||
exec-once = wlsunset -l 48.5 -L 2.2 -d 1500
|
||||
|
||||
exec-once = nm-applet
|
||||
exec-once = blueman-applet
|
||||
|
||||
$left = c
|
||||
$right = r
|
||||
$up = s
|
||||
$down = t
|
||||
$menu = rofi -combi-modi drun -show combi
|
||||
|
||||
bind = SUPER, Return, exec, kitty
|
||||
bind = SUPER, Space, submap, leader
|
||||
bind = , Print, submap, screenshot
|
||||
|
||||
submap = leader
|
||||
bind = , l, exec, plock
|
||||
bind = , l, submap, reset
|
||||
bind = , a, submap, apps
|
||||
bind = , b, submap, buffers
|
||||
bind = , w, submap, windows
|
||||
bind = , escape, submap, reset
|
||||
bind = CTRL, g, submap, reset
|
||||
|
||||
submap = apps
|
||||
bind = , b, exec, zen-browser
|
||||
bind = , b, submap, reset
|
||||
bind = SHIFT, b, exec, qutebrowser
|
||||
bind = SHIFT, b, submap, reset
|
||||
bind = , d, exec, vesktop
|
||||
bind = , d, submap, reset
|
||||
bind = , e, exec, emacsclient -c -n
|
||||
bind = , e, submap, reset
|
||||
bind = , g, exec, gimp
|
||||
bind = , g, submap, reset
|
||||
bind = , n, exec, nemo
|
||||
bind = , n, submap, reset
|
||||
bind = , r, submap, rofi
|
||||
bind = , u, exec, $menu
|
||||
bind = , u, submap, reset
|
||||
bind = , escape, submap, reset
|
||||
bind = CTRL, g, submap, reset
|
||||
submap = buffers
|
||||
bind = , d, killactive,
|
||||
bind = , d, submap, reset
|
||||
bind = , escape, submap, reset
|
||||
bind = CTRL, g, submap, reset
|
||||
submap = resize
|
||||
binde = , $left, resizeactive, -10 0
|
||||
binde = , $right, resizeactive, 10 0
|
||||
binde = , $up, resizeactive, 0 -10
|
||||
binde = , $down, resizeactive, 0 10
|
||||
bind = , q, submap, reset
|
||||
bind = , escape, submap, reset
|
||||
bind = CTRL, g, submap, reset
|
||||
submap = rofi
|
||||
bind = , a, exec, awiki
|
||||
bind = , a, submap, reset
|
||||
bind = , b, exec, bluetooth-connect
|
||||
bind = , b, submap, reset
|
||||
bind = , e, exec, rofi-emoji
|
||||
bind = , e, submap, reset
|
||||
bind = , r, exec, $menu
|
||||
bind = , r, submap, reset
|
||||
bind = , s, exec, rofi -show ssh
|
||||
bind = , s, submap, reset
|
||||
bind = , y, exec, ytplay
|
||||
bind = , y, submap, reset
|
||||
bind = SHIFT, y, exec, rofi-ytdl
|
||||
bind = SHIFT, y, submap, reset
|
||||
bind = , escape, submap, reset
|
||||
bind = CTRL, g, submap, reset
|
||||
submap = screenshot
|
||||
bind = , Print, exec, screenshot
|
||||
bind = , Print, submap, reset
|
||||
bind = , d, exec, screenshot -d 3
|
||||
bind = , d, submap, reset
|
||||
bind = Shift, d, exec, screenshot -sced 3
|
||||
bind = Shift, d, submap, reset
|
||||
bind = , e, exec, screenshot -sec
|
||||
bind = , e, submap, reset
|
||||
bind = , s, exec, screenshot -s
|
||||
bind = , s, submap, reset
|
||||
bind = Shift, s, exec, screenshot -sc
|
||||
bind = Shift, s, submap, reset
|
||||
bind = , escape, submap, reset
|
||||
bind = CTRL, g, submap, reset
|
||||
submap = windows
|
||||
bind = , period, submap, resize
|
||||
bind = , $left, movefocus, l
|
||||
bind = , $left, submap, reset
|
||||
bind = , $right, movefocus, r
|
||||
bind = , $right, submap, reset
|
||||
bind = , $up, movefocus, u
|
||||
bind = , $up, submap, reset
|
||||
bind = , $down, movefocus, d
|
||||
bind = , $down, submap, reset
|
||||
bind = SHIFT, $left, movewindow, l
|
||||
bind = SHIFT, $left, submap, reset
|
||||
bind = SHIFT, $right, movewindow, r
|
||||
bind = SHIFT, $right, submap, reset
|
||||
bind = SHIFT, $up, movewindow, u
|
||||
bind = SHIFT, $up, submap, reset
|
||||
bind = SHIFT, $down, movewindow, d
|
||||
bind = SHIFT, $down, submap, reset
|
||||
bind = CTRL_SHIFT, $left, moveworkspacetomonitor, e+0 +1
|
||||
bind = CTRL_SHIFT, $left, submap, reset
|
||||
bind = CTRL_SHIFT, $right, moveworkspacetomonitor, e+0 -1
|
||||
bind = CTRL_SHIFT, $right, submap, reset
|
||||
bind = , d, killactive,
|
||||
bind = , d, submap, reset
|
||||
bind = , f, fullscreen,
|
||||
bind = , f, submap, reset
|
||||
bind = SHIFT, f, togglefloating,
|
||||
bind = SHIFT, f, submap, reset
|
||||
bind = , escape, submap, reset
|
||||
bind = CTRL, g, submap, reset
|
||||
|
||||
submap = reset
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPause, exec, playerctl pause
|
||||
bindl = , XF86AudioStop, exec, playerctl stop
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , XF86AudioForward, exec, playerctl position +1
|
||||
bindl = , XF86AudioRewind, exec, playerctl position -1
|
||||
bindl = , XF86AudioRaiseVolume, exec, pamixer -i 2
|
||||
bindl = , XF86AudioLowerVolume, exec, pamixer -d 2
|
||||
bindl = , XF86MonBrightnessUp, exec, xbacklight -perceived -inc 2
|
||||
bindl = , XF86MonBrightnessDown, exec, xbacklight -perceived -dec 2
|
||||
bindl = , XF86KbdBrightnessUp, exec, xbacklight -perceived -inc 2
|
||||
bindl = , XF86KbdBrightnessDown, exec, xbacklight -perceived -dec 2
|
||||
bind = SUPER, $left, movefocus, l
|
||||
bind = SUPER, $right, movefocus, r
|
||||
bind = SUPER, $up, movefocus, u
|
||||
bind = SUPER, $down, movefocus, d
|
||||
bind = SUPER_SHIFT, $left, movewindow, l
|
||||
bind = SUPER_SHIFT, $left, submap, reset
|
||||
bind = SUPER_SHIFT, $right, movewindow, r
|
||||
bind = SUPER_SHIFT, $right, submap, reset
|
||||
bind = SUPER_SHIFT, $up, movewindow, u
|
||||
bind = SUPER_SHIFT, $up, submap, reset
|
||||
bind = SUPER_SHIFT, $down, movewindow, d
|
||||
bind = SUPER_SHIFT, $down, submap, reset
|
||||
bind = SUPER_CTRL_SHIFT, $left, moveworkspacetomonitor, e+0 +1
|
||||
bind = SUPER_CTRL_SHIFT, $left, submap, reset
|
||||
bind = SUPER_CTRL_SHIFT, $right, moveworkspacetomonitor, e+0 -1
|
||||
bind = SUPER_CTRL_SHIFT, $right, submap, reset
|
||||
bind = SUPER, Tab, cyclenext,
|
||||
bind = SUPER_SHIFT, Tab, cyclenext, prev
|
||||
bindm = SUPER, mouse:272, movewindow
|
||||
bindm = SUPER, mouse:273, resizewindow
|
||||
bind = SUPER, quotedbl, workspace, 1
|
||||
bind = SUPER, guillemotleft, workspace, 2
|
||||
bind = SUPER, guillemotright, workspace, 3
|
||||
bind = SUPER, parenleft, workspace, 4
|
||||
bind = SUPER, parenright, workspace, 5
|
||||
bind = SUPER, at, workspace, 6
|
||||
bind = SUPER, plus, workspace, 7
|
||||
bind = SUPER, minus, workspace, 8
|
||||
bind = SUPER, slash, workspace, 9
|
||||
bind = SUPER, asterisk, workspace, 10
|
||||
bind = SUPER, mouse_down, workspace, e+1
|
||||
bind = SUPER, mouse_up, workspace, e-1
|
||||
bind = SUPER_SHIFT, quotedbl, movetoworkspace, 1
|
||||
bind = SUPER_SHIFT, guillemotleft, movetoworkspace, 2
|
||||
bind = SUPER_SHIFT, guillemotright, movetoworkspace, 3
|
||||
bind = SUPER_SHIFT, parenleft, movetoworkspace, 4
|
||||
bind = SUPER_SHIFT, parenright, movetoworkspace, 5
|
||||
bind = SUPER_SHIFT, at, movetoworkspace, 6
|
||||
bind = SUPER_SHIFT, plus, movetoworkspace, 7
|
||||
bind = SUPER_SHIFT, minus, movetoworkspace, 8
|
||||
bind = SUPER_SHIFT, slash, movetoworkspace, 9
|
||||
bind = SUPER_SHIFT, asterisk, movetoworkspace, 10
|
||||
|
||||
windowrulev2 = float,class:^(xfce-polkit)$
|
||||
167
users/phundrak/config/waybar/config
Normal file
167
users/phundrak/config/waybar/config
Normal file
@@ -0,0 +1,167 @@
|
||||
// -*- mode: js-json -*-
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 24, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 2, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/submap", "hyprland/window"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["idle_inhibitor", "mpd", "pulseaudio", "network", "cpu",
|
||||
"memory", "temperature", "battery", "clock", "tray"],
|
||||
// Modules configuration
|
||||
// "sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
// "all-outputs": true,
|
||||
// "format": "{name}: {icon}",
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
// },
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/scratchpad": {
|
||||
"format": "{icon} {count}",
|
||||
"show-empty": false,
|
||||
"format-icons": ["", ""],
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{app}: {title}"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
}
|
||||
}
|
||||
280
users/phundrak/config/waybar/style.css
Normal file
280
users/phundrak/config/waybar/style.css
Normal file
@@ -0,0 +1,280 @@
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(43, 48, 59, 0.5);
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/*
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each button name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #64727D;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #9b59b6;
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: #964B00;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
background-color: #fff0f5;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#wireplumber.muted {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: #2d3436;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
background-color: #51a37a;
|
||||
}
|
||||
|
||||
#language {
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: #97e1ad;
|
||||
color: #000000;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
7
users/phundrak/gampo.nix
Normal file
7
users/phundrak/gampo.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
imports = [./home.nix];
|
||||
home.phundrak.sshKey = {
|
||||
content = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBPhP4p9KGk6jSOxJzBu+RzJPHI6baT0o+xrgPeNRwfq lucien@phundrak.com";
|
||||
file = "/home/phundrak/.ssh/id_ed25519.pub";
|
||||
};
|
||||
}
|
||||
99
users/phundrak/home.nix
Normal file
99
users/phundrak/home.nix
Normal file
@@ -0,0 +1,99 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./light-home.nix
|
||||
./packages.nix
|
||||
../modules/emacs.nix
|
||||
../modules/kdeconnect.nix
|
||||
../modules/kitty.nix
|
||||
../modules/mbsync.nix
|
||||
../modules/mpd.nix
|
||||
../modules/mpv.nix
|
||||
../modules/wofi.nix
|
||||
../modules/yt-dlp.nix
|
||||
../modules/emoji.nix
|
||||
../modules/qt.nix
|
||||
];
|
||||
|
||||
config = let
|
||||
emacsPkg = with pkgs; ((emacsPackagesFor emacsNativeComp).emacsWithPackages (
|
||||
epkgs: [
|
||||
epkgs.vterm
|
||||
epkgs.mu4e
|
||||
epkgs.pdf-tools
|
||||
]
|
||||
));
|
||||
askpass = import ../scripts/askpass.nix {inherit pkgs;};
|
||||
launchWithEmacsclient = import ../scripts/launch-with-emacsclient.nix {
|
||||
inherit pkgs;
|
||||
emacsPackage = emacsPkg;
|
||||
};
|
||||
in {
|
||||
sops.secrets = {
|
||||
emailPassword = {};
|
||||
"mopidy/bandcamp" = {};
|
||||
"mopidy/spotify" = {};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "${emacsPkg}/bin/emacsclient -c -a ${emacsPkg}/bin/emacs";
|
||||
LAUNCH_EDITOR = "${launchWithEmacsclient}/bin/launch-with-emacsclient";
|
||||
SUDO_ASKPASS = "${askpass}/bin/askpass";
|
||||
LSP_USE_PLISTS = "true";
|
||||
};
|
||||
|
||||
modules = {
|
||||
emacs = {
|
||||
enable = true;
|
||||
service = true;
|
||||
package = emacsPkg;
|
||||
};
|
||||
shell.starship.jjIntegration = true;
|
||||
bat.extras = true;
|
||||
packages.emacsPackage = emacsPkg;
|
||||
mopidy.enable = true;
|
||||
|
||||
mbsync = {
|
||||
enable = true;
|
||||
passwordFile = config.sops.secrets.emailPassword.path;
|
||||
};
|
||||
ssh = {
|
||||
enable = true;
|
||||
hosts = config.sops.secrets."ssh/hosts".path;
|
||||
};
|
||||
vcs.git = {
|
||||
browser = "${inputs.zen-browser.packages.${pkgs.system}.default}/bin/zen";
|
||||
emacs = {
|
||||
integration = true;
|
||||
pkg = emacsPkg;
|
||||
};
|
||||
sendmail = {
|
||||
enable = true;
|
||||
passwordFile = config.sops.secrets.emailPassword.path;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
zsh.enableVteIntegration = true;
|
||||
mu.enable = true;
|
||||
obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs; [
|
||||
obs-studio-plugins.input-overlay
|
||||
obs-studio-plugins.obs-backgroundremoval
|
||||
obs-studio-plugins.obs-mute-filter
|
||||
obs-studio-plugins.obs-pipewire-audio-capture
|
||||
obs-studio-plugins.obs-source-clone
|
||||
obs-studio-plugins.obs-source-record
|
||||
obs-studio-plugins.obs-tuna
|
||||
];
|
||||
};
|
||||
};
|
||||
manual.html.enable = true;
|
||||
};
|
||||
}
|
||||
68
users/phundrak/light-home.nix
Normal file
68
users/phundrak/light-home.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.home.phundrak;
|
||||
in {
|
||||
imports = [../modules];
|
||||
|
||||
options.home.phundrak = {
|
||||
sshKey = {
|
||||
content = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
example = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGj+J6N6SO+4P8dOZqfR1oiay2yxhhHnagH52avUqw5h";
|
||||
default = null;
|
||||
};
|
||||
file = mkOption {
|
||||
type = with types; nullOr path;
|
||||
default = "/home/phundrak/.ssh/id_ed25519.pub";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
defaultSopsFormat = "yaml";
|
||||
secrets."ssh/hosts" = {};
|
||||
age = {
|
||||
# automatically import user SSH keys as age keys
|
||||
sshKeyPaths = [
|
||||
"/home/phundrak/.ssh/id_ed25519"
|
||||
];
|
||||
# this will use an age key that is expected to already be in the filesystem
|
||||
# keyFile = "/home/phundrak/.config/sops/age/keys.txt";
|
||||
keyFile = "/home/phundrak/.local/sops-nix/key.txt";
|
||||
# generate a new key if the key specified above does not exist
|
||||
generateKey = true;
|
||||
};
|
||||
};
|
||||
|
||||
home = {
|
||||
username = "phundrak";
|
||||
homeDirectory = "/home/phundrak";
|
||||
packages = [pkgs.tree pkgs.ncdu];
|
||||
stateVersion = "24.11"; # Please read the comment before changing.
|
||||
};
|
||||
|
||||
modules = {
|
||||
shell.starship.enable = true;
|
||||
vcs = {
|
||||
git.enable = true;
|
||||
jj.enable = true;
|
||||
publicKey = cfg.sshKey;
|
||||
};
|
||||
ssh = {
|
||||
enable = true;
|
||||
hosts = config.sops.secrets."ssh/hosts".path;
|
||||
};
|
||||
};
|
||||
|
||||
manual.manpages.enable = true;
|
||||
};
|
||||
}
|
||||
7
users/phundrak/marpa.nix
Normal file
7
users/phundrak/marpa.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
imports = [./home.nix];
|
||||
home.phundrak.sshKey = {
|
||||
content = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBPhP4p9KGk6jSOxJzBu+RzJPHI6baT0o+xrgPeNRwfq lucien@phundrak.com";
|
||||
file = "/home/phundrak/.ssh/id_ed25519.pub";
|
||||
};
|
||||
}
|
||||
110
users/phundrak/packages.nix
Normal file
110
users/phundrak/packages.nix
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.packages;
|
||||
in {
|
||||
options.modules.packages.emacsPackage = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.emacs;
|
||||
};
|
||||
config.home.packages = with pkgs; let
|
||||
scripts = import ../scripts/scripts.nix {
|
||||
inherit pkgs;
|
||||
config.emacsPkg = cfg.emacsPackage;
|
||||
};
|
||||
in
|
||||
[
|
||||
flatpak
|
||||
|
||||
# LSP server for Nix
|
||||
nil
|
||||
|
||||
# Terminal stuff
|
||||
duf
|
||||
ffmpeg
|
||||
ripgrep-all
|
||||
unzip
|
||||
|
||||
# Fonts
|
||||
#nerdfonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
tibetan-machine
|
||||
|
||||
# Browsers
|
||||
amfora
|
||||
|
||||
# Media
|
||||
ani-cli
|
||||
audacity
|
||||
plexamp
|
||||
plex-media-player
|
||||
spicetify-cli
|
||||
spotify
|
||||
spotify-tray
|
||||
|
||||
# Social
|
||||
vesktop # Discord alternative that works well with wayland
|
||||
element-desktop
|
||||
signal-desktop-bin
|
||||
|
||||
# Misc
|
||||
bitwarden
|
||||
gplates
|
||||
libnotify
|
||||
nextcloud-client
|
||||
onlyoffice-bin
|
||||
scrcpy
|
||||
syncthing
|
||||
watchmate
|
||||
inputs.zen-browser.packages.${system}.default
|
||||
|
||||
# Games
|
||||
atlauncher
|
||||
heroic
|
||||
modrinth-app
|
||||
openttd-jgrpp
|
||||
moonlight-qt
|
||||
|
||||
# Emacs stuff
|
||||
emacs-all-the-icons-fonts
|
||||
|
||||
# Gnome stuff
|
||||
gnome-tweaks
|
||||
gnomeExtensions.docker
|
||||
gnomeExtensions.syncthing-indicator
|
||||
gnomeExtensions.tray-icons-reloaded
|
||||
gthumb
|
||||
|
||||
# Graphics
|
||||
inkscape
|
||||
gimp
|
||||
gimpPlugins.fourier
|
||||
gimpPlugins.farbfeld
|
||||
|
||||
# Dev
|
||||
devenv
|
||||
dive # A tool for exploring each layer in a docker image
|
||||
grype # Vulnerability scanner for container images and filesystems
|
||||
podman-desktop
|
||||
podman-compose
|
||||
python3 # for Emacs and LSP
|
||||
tectonic # better LaTeX engine
|
||||
virt-manager
|
||||
zeal
|
||||
|
||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||
# # overrides. You can do that directly here, just don't forget the
|
||||
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||
# # fonts?
|
||||
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||
|
||||
# Custom scripts
|
||||
]
|
||||
++ scripts;
|
||||
}
|
||||
12
users/phundrak/programs.nix
Normal file
12
users/phundrak/programs.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
imports = [
|
||||
../modules/emacs.nix
|
||||
../modules/kdeconnect.nix
|
||||
../modules/kitty.nix
|
||||
../modules/mbsync.nix
|
||||
../modules/mpd.nix
|
||||
../modules/mpv.nix
|
||||
../modules/wofi.nix
|
||||
../modules/yt-dlp.nix
|
||||
];
|
||||
}
|
||||
8
users/phundrak/tilo.nix
Normal file
8
users/phundrak/tilo.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
imports = [./light-home.nix];
|
||||
home.phundrak.sshKey = {
|
||||
content = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILw9oiK8tZ5Vpz82RaRLpITU8qeJrT2hjvudGEDQu2QW lucien@phundrak.com";
|
||||
file = "/home/phundrak/.ssh/id_ed25519.pub";
|
||||
};
|
||||
modules.nh.flake = "/tank/phundrak/nixos";
|
||||
}
|
||||
Reference in New Issue
Block a user