This commit is contained in:
subcrip 2024-07-25 19:26:15 +08:00
parent b0b1f60d6d
commit 6a6a24b560
Signed by: subcrip
SSH Key Fingerprint: SHA256:dFPFi68d8C87YkFkEBU4TkcrYRySWpekRR1hbnDWUCw
7 changed files with 102 additions and 62 deletions

4
.zshrc
View File

@ -117,8 +117,8 @@ alias pip3="python3 -m pip"
alias pip="python -m pip"
alias comp="cd ~/RustIsBestLang/src/bin && nvim"
alias backup="git add . && git commit -S -m 'backup' && git push"
# export LD_LIBRARY_PATH=/usr/lib:/usr/local/cuda/lib65:$LD_LIBRARY_PATH
export PATH=/home/user/.cabal/bin:/home/user/.ghcup/bin:/home/linuxbrew/.linuxbrew/bin:/home/user/.cargo/bin:/home/user/.local/bin:/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/home/user/.local/lib/mojo:$LD_LIBRARY_PATH
export PATH=/home/user/.modular/pkg/packages.modular.com_mojo/bin/:/home/user/.npm-packages/bin:/home/user/.cabal/bin:/home/user/.ghcup/bin:/home/linuxbrew/.linuxbrew/bin:/home/user/.cargo/bin:/home/user/.local/bin:/usr/local/cuda/bin:$PATH
export PAGER=less
me () {

View File

@ -540,7 +540,7 @@ profiles:
# When this profile is *activated*, this flag decides
# whether or not the title bar will be shown
show_title_bar: false
show_title_bar: true
# When this profile is *activated*, this flag decides
# whether or not the size indicator on resize will be shown.

View File

@ -1,3 +1,5 @@
# vim: set expandtab tabstop=2 softtabstop=2 shiftwidth=2:
{ config, pkgs, ... }:
{
@ -6,6 +8,9 @@
home.username = "user";
home.homeDirectory = "/home/user";
targets.genericLinux.enable = true;
xdg.mime.enable = true;
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
@ -21,13 +26,16 @@
pkgs.mtr
pkgs.neovim
pkgs.htop
pkgs.python3
pkgs.python312
pkgs.pyright
pkgs.nodejs_22
pkgs.pipx
pkgs.fx
pkgs.gdb
pkgs.lua-language-server
pkgs.waybar
pkgs.waybar-mpris
pkgs.zed-editor
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the

2
profile.d/nix-profile.sh Normal file
View File

@ -0,0 +1,2 @@
# should be placed under /etc/profile.d
export XDG_DATA_DIRS=$HOME/.nix-profile/share:$XDG_DATA_DIRS

View File

@ -8,10 +8,10 @@
// Choose the order of the modules
"modules-left": [
"hyprland/workspaces",
"custom/wofi"
"hyprland/window",
],
"modules-center": [
"sway/window"
"custom/waybar-mpris",
],
"modules-right": [
// "idle_inhibitor",
@ -24,27 +24,27 @@
"backlight",
"keyboard-state",
"battery",
"clock",
"custom/clock",
"tray",
"custom/wlogout"
"custom/wlogout",
],
// Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
// "warp-on-scroll": false,
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"warp-on-scroll": false,
"format": "{name} {icon} ",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"urgent": "",
"focused": "",
"default": ""
}
},
"keyboard-state": {
"numlock": true,
"capslock": true,
@ -119,7 +119,7 @@
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
"format-icons": [""]
},
"backlight": {
// "device": "acpi_video1",
@ -134,7 +134,7 @@
},
"format": "{capacity}% {icon}",
"format-full": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}%  ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
@ -182,7 +182,25 @@
"on-click": "pavucontrol"
},
"custom/wlogout": {
"format": "L",
"format": "󰠚 ",
"on-click": "wlogout"
}
},
"custom/waybar-mpris": {
"return-type": "json",
"exec": "waybar-mpris --position --autofocus --order 'SYMBOL:TITLE:ARTIST:POSITION'",
"on-click": "waybar-mpris --send toggle",
// This option will switch between players on right click.
"on-click-right": "waybar-mpris --send player-next",
// The options below will switch the selected player on scroll
// "on-scroll-up": "waybar-mpris --send player-next",
// "on-scroll-down": "waybar-mpris --send player-prev",
// The options below will go to next/previous track on scroll
// "on-scroll-up": "waybar-mpris --send next",
// "on-scroll-down": "waybar-mpris --send prev",
"escape": true,
},
"custom/clock": {
"exec": "LC_TIME=en_US.UTF8 date +'%-m-%-d[%a] %H:%M'",
"interval": 1,
},
}

2
waybar/mprisquery Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/python3
import mpris2

View File

@ -1,15 +1,25 @@
* {
border: none;
border-radius: 0px;
font-family: FiraCode Nerd Font;
font-family: JetBrainsMono Nerd Font;
font-size: 18px;
font-style: normal;
min-height: 0;
}
window#waybar {
window > box {
border-radius: 15px;
background: rgba(76,86,106,0.8);
color: #cdd6f4
margin-top: 5px;
margin-bottom: 3px;
margin-left: 5px;
margin-right: 5px;
color: #cdd6f4;
box-shadow: 3px 3px lightblue;
}
window#waybar {
background: transparent;
}
#workspaces {
@ -30,7 +40,7 @@ window#waybar {
transition: all 0.3s ease-in-out;
}
#workspaces button.active {
color: #cdd6f4;
color: #2e3440;
background-color: #cdd6f4;
border-radius: 16px;
min-width: 50px;
@ -39,7 +49,7 @@ window#waybar {
}
#workspaces button:hover {
background-color: #cdd6f4;
color: #cdd6f4;
color: #2e3440;
border-radius: 16px;
min-width: 50px;
background-size: 400% 400%;