backup
This commit is contained in:
parent
b0b1f60d6d
commit
6a6a24b560
4
.zshrc
4
.zshrc
|
@ -117,8 +117,8 @@ alias pip3="python3 -m pip"
|
||||||
alias pip="python -m pip"
|
alias pip="python -m pip"
|
||||||
alias comp="cd ~/RustIsBestLang/src/bin && nvim"
|
alias comp="cd ~/RustIsBestLang/src/bin && nvim"
|
||||||
alias backup="git add . && git commit -S -m 'backup' && git push"
|
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 LD_LIBRARY_PATH=/home/user/.local/lib/mojo:$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 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
|
export PAGER=less
|
||||||
|
|
||||||
me () {
|
me () {
|
||||||
|
|
|
@ -540,7 +540,7 @@ profiles:
|
||||||
|
|
||||||
# When this profile is *activated*, this flag decides
|
# When this profile is *activated*, this flag decides
|
||||||
# whether or not the title bar will be shown
|
# 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
|
# When this profile is *activated*, this flag decides
|
||||||
# whether or not the size indicator on resize will be shown.
|
# whether or not the size indicator on resize will be shown.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# vim: set expandtab tabstop=2 softtabstop=2 shiftwidth=2:
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -6,6 +8,9 @@
|
||||||
home.username = "user";
|
home.username = "user";
|
||||||
home.homeDirectory = "/home/user";
|
home.homeDirectory = "/home/user";
|
||||||
|
|
||||||
|
targets.genericLinux.enable = true;
|
||||||
|
xdg.mime.enable = true;
|
||||||
|
|
||||||
# This value determines the Home Manager release that your configuration is
|
# This value determines the Home Manager release that your configuration is
|
||||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||||
# introduces backwards incompatible changes.
|
# introduces backwards incompatible changes.
|
||||||
|
@ -21,13 +26,16 @@
|
||||||
pkgs.mtr
|
pkgs.mtr
|
||||||
pkgs.neovim
|
pkgs.neovim
|
||||||
pkgs.htop
|
pkgs.htop
|
||||||
pkgs.python3
|
pkgs.python312
|
||||||
pkgs.pyright
|
pkgs.pyright
|
||||||
pkgs.nodejs_22
|
pkgs.nodejs_22
|
||||||
pkgs.pipx
|
pkgs.pipx
|
||||||
pkgs.fx
|
pkgs.fx
|
||||||
pkgs.gdb
|
pkgs.gdb
|
||||||
pkgs.lua-language-server
|
pkgs.lua-language-server
|
||||||
|
pkgs.waybar
|
||||||
|
pkgs.waybar-mpris
|
||||||
|
pkgs.zed-editor
|
||||||
|
|
||||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||||
# # overrides. You can do that directly here, just don't forget the
|
# # overrides. You can do that directly here, just don't forget the
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# should be placed under /etc/profile.d
|
||||||
|
export XDG_DATA_DIRS=$HOME/.nix-profile/share:$XDG_DATA_DIRS
|
|
@ -8,10 +8,10 @@
|
||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"hyprland/workspaces",
|
"hyprland/workspaces",
|
||||||
"custom/wofi"
|
"hyprland/window",
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"sway/window"
|
"custom/waybar-mpris",
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
// "idle_inhibitor",
|
// "idle_inhibitor",
|
||||||
|
@ -24,27 +24,27 @@
|
||||||
"backlight",
|
"backlight",
|
||||||
"keyboard-state",
|
"keyboard-state",
|
||||||
"battery",
|
"battery",
|
||||||
"clock",
|
"custom/clock",
|
||||||
"tray",
|
"tray",
|
||||||
"custom/wlogout"
|
"custom/wlogout",
|
||||||
],
|
],
|
||||||
// Modules configuration
|
// Modules configuration
|
||||||
// "sway/workspaces": {
|
"hyprland/workspaces": {
|
||||||
// "disable-scroll": true,
|
"disable-scroll": true,
|
||||||
// "all-outputs": true,
|
"all-outputs": true,
|
||||||
// "warp-on-scroll": false,
|
"warp-on-scroll": false,
|
||||||
// "format": "{name}: {icon}",
|
"format": "{name} {icon} ",
|
||||||
// "format-icons": {
|
"format-icons": {
|
||||||
// "1": "",
|
"1": "",
|
||||||
// "2": "",
|
"2": "",
|
||||||
// "3": "",
|
"3": "",
|
||||||
// "4": "",
|
"4": "",
|
||||||
// "5": "",
|
"5": "",
|
||||||
// "urgent": "",
|
"urgent": "",
|
||||||
// "focused": "",
|
"focused": "",
|
||||||
// "default": ""
|
"default": ""
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
"keyboard-state": {
|
"keyboard-state": {
|
||||||
"numlock": true,
|
"numlock": true,
|
||||||
"capslock": true,
|
"capslock": true,
|
||||||
|
@ -60,32 +60,32 @@
|
||||||
"sway/scratchpad": {
|
"sway/scratchpad": {
|
||||||
"format": "{icon} {count}",
|
"format": "{icon} {count}",
|
||||||
"show-empty": false,
|
"show-empty": false,
|
||||||
"format-icons": ["", ""],
|
"format-icons": ["", " "],
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{app}: {title}"
|
"tooltip-format": "{app}: {title}"
|
||||||
},
|
},
|
||||||
"mpd": {
|
"mpd": {
|
||||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||||
"format-disconnected": "Disconnected ",
|
"format-disconnected": "Disconnected ",
|
||||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||||
"unknown-tag": "N/A",
|
"unknown-tag": "N/A",
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"consume-icons": {
|
"consume-icons": {
|
||||||
"on": " "
|
"on": " "
|
||||||
},
|
},
|
||||||
"random-icons": {
|
"random-icons": {
|
||||||
"off": "<span color=\"#f53c3c\"></span> ",
|
"off": "<span color=\"#f53c3c\"> </span> ",
|
||||||
"on": " "
|
"on": " "
|
||||||
},
|
},
|
||||||
"repeat-icons": {
|
"repeat-icons": {
|
||||||
"on": " "
|
"on": " "
|
||||||
},
|
},
|
||||||
"single-icons": {
|
"single-icons": {
|
||||||
"on": "1 "
|
"on": " 1 "
|
||||||
},
|
},
|
||||||
"state-icons": {
|
"state-icons": {
|
||||||
"paused": "",
|
"paused": " ",
|
||||||
"playing": ""
|
"playing": " "
|
||||||
},
|
},
|
||||||
"tooltip-format": "MPD (connected)",
|
"tooltip-format": "MPD (connected)",
|
||||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||||
|
@ -93,8 +93,8 @@
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"activated": "",
|
"activated": " ",
|
||||||
"deactivated": ""
|
"deactivated": " "
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
|
@ -107,11 +107,11 @@
|
||||||
"format-alt": "{:%Y-%m-%d}"
|
"format-alt": "{:%Y-%m-%d}"
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"format": "{usage}% ",
|
"format": "{usage}% ",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": "{}% "
|
"format": "{}% "
|
||||||
},
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
// "thermal-zone": 2,
|
// "thermal-zone": 2,
|
||||||
|
@ -119,12 +119,12 @@
|
||||||
"critical-threshold": 80,
|
"critical-threshold": 80,
|
||||||
// "format-critical": "{temperatureC}°C {icon}",
|
// "format-critical": "{temperatureC}°C {icon}",
|
||||||
"format": "{temperatureC}°C {icon}",
|
"format": "{temperatureC}°C {icon}",
|
||||||
"format-icons": ["", "", ""]
|
"format-icons": [""]
|
||||||
},
|
},
|
||||||
"backlight": {
|
"backlight": {
|
||||||
// "device": "acpi_video1",
|
// "device": "acpi_video1",
|
||||||
"format": "{percent}% {icon}",
|
"format": "{percent}% {icon}",
|
||||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
"format-icons": [" ", " ", " ", " ", " ", " ", " ", " ", " "]
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"states": {
|
"states": {
|
||||||
|
@ -134,22 +134,22 @@
|
||||||
},
|
},
|
||||||
"format": "{capacity}% {icon}",
|
"format": "{capacity}% {icon}",
|
||||||
"format-full": "{capacity}% {icon}",
|
"format-full": "{capacity}% {icon}",
|
||||||
"format-charging": "{capacity}% ",
|
"format-charging": "{capacity}% ",
|
||||||
"format-plugged": "{capacity}% ",
|
"format-plugged": "{capacity}% ",
|
||||||
"format-alt": "{time} {icon}",
|
"format-alt": "{time} {icon}",
|
||||||
// "format-good": "", // An empty format will hide the module
|
// "format-good": "", // An empty format will hide the module
|
||||||
// "format-full": "",
|
// "format-full": "",
|
||||||
"format-icons": ["", "", "", "", ""]
|
"format-icons": [" ", " ", " ", " ", " "]
|
||||||
},
|
},
|
||||||
"power-profiles-daemon": {
|
"power-profiles-daemon": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"default": "",
|
"default": " ",
|
||||||
"performance": "",
|
"performance": " ",
|
||||||
"balanced": "",
|
"balanced": " ",
|
||||||
"power-saver": ""
|
"power-saver": " "
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
|
@ -168,21 +168,39 @@
|
||||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth-muted": " {icon} {format_source}",
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
"format-muted": " {format_source}",
|
"format-muted": " {format_source}",
|
||||||
"format-source": "{volume}% ",
|
"format-source": "{volume}% ",
|
||||||
"format-source-muted": "",
|
"format-source-muted": " ",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"headphone": "",
|
"headphone": " ",
|
||||||
"hands-free": "",
|
"hands-free": " ",
|
||||||
"headset": "",
|
"headset": " ",
|
||||||
"phone": "",
|
"phone": " ",
|
||||||
"portable": "",
|
"portable": " ",
|
||||||
"car": "",
|
"car": " ",
|
||||||
"default": ["", "", ""]
|
"default": [" ", " ", " "]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
"custom/wlogout": {
|
"custom/wlogout": {
|
||||||
"format": "L",
|
"format": " ",
|
||||||
"on-click": "wlogout"
|
"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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
import mpris2
|
|
@ -1,15 +1,25 @@
|
||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
font-family: FiraCode Nerd Font;
|
font-family: JetBrainsMono Nerd Font;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window > box {
|
||||||
|
border-radius: 15px;
|
||||||
background: rgba(76,86,106,0.8);
|
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 {
|
#workspaces {
|
||||||
|
@ -30,7 +40,7 @@ window#waybar {
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
color: #cdd6f4;
|
color: #2e3440;
|
||||||
background-color: #cdd6f4;
|
background-color: #cdd6f4;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
min-width: 50px;
|
min-width: 50px;
|
||||||
|
@ -39,7 +49,7 @@ window#waybar {
|
||||||
}
|
}
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
background-color: #cdd6f4;
|
background-color: #cdd6f4;
|
||||||
color: #cdd6f4;
|
color: #2e3440;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
min-width: 50px;
|
min-width: 50px;
|
||||||
background-size: 400% 400%;
|
background-size: 400% 400%;
|
||||||
|
|
Loading…
Reference in New Issue