Compare commits

..

2 Commits

Author SHA1 Message Date
632694bbcd Updated config 2024-03-02 23:49:00 +01:00
2569e705ed Removed nushell 2024-03-02 23:47:49 +01:00
14 changed files with 71 additions and 121 deletions

25
.config/dunst/dunstrc Normal file
View File

@ -0,0 +1,25 @@
[global]
font = Ubuntu Nerd Font 10
corner_radius = 10
follow = mouse
origin = top-center
offset = 0x0
frame_width = 1
frame_color = "#232323"
format = "<big>%s</big>\n<span color='#ffffff7f'>%b</span>"
[urgency_low]
background = "#232323"
foreground = "#ffffff"
timeout = 10
[urgency_normal]
background = "#232323"
foreground = "#ffffff"
timeout = 10
[urgency_critical]
background = "#d64e4e"
foreground = "#f0e0e0"
frame_color = "#d64e4e"
timeout = 0

View File

@ -1,13 +1,8 @@
exec-once = dunst
exec-once = $statusbar
exec-once = waypaper --restore
exec-once = dunst
exec-once = wl-paste --watch cliphist store
exec-once = dbus-update-activation-environment --all
exec-once = gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
exec-once = [workspace 3 silent] $browser
exec-once = [workspace 4 silent] $terminal
exec-once = [workspace 5 silent] $terminal
exec-once = [workspace 6 silent] $terminal
exec-once = [workspace 1 silent] $browser
exec-once = [workspace 7 silent] $files
exec-once = [workspace 9 silent] $email

View File

@ -1,6 +1,6 @@
# Some default env vars.
# Cursor
env = XCURSOR_SIZE,24
env = TERMINAL,$terminal
env = WLR_NO_HARDWARE_CURSORS,1
# Firefox
env = MOZ_ENABLE_WAYLAND,1
@ -9,7 +9,10 @@ env = MOZ_ENABLE_WAYLAND,1
env = LIBVA_DRIVER_NAME,nvidia
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1
# Programs
env = EDITOR,$editor
env = TERMINAL,$terminal
# Qt
env = QT_QPA_PLATFORM,wayland
@ -22,4 +25,3 @@ env = SSH_AUTH_SOCK,$XDG_RUNTIME_DIR/gcr/ssh
# Wayland
env = XDG_SESSION_TYPE,wayland
env = GDK_BACKEND,wayland
env = SDL_VIDEODRIVER,wayland

View File

@ -1,6 +1,6 @@
general {
gaps_in = 5
gaps_out = 10
gaps_out = 20
border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)

View File

@ -5,8 +5,8 @@ $movews = CTRL ALT
bind = $leader, T, exec, $terminal
bind = $leader, B, exec, $browser
bind = $leader, E, exec, $files
bind = $leader, Super_L, exec, $menu
bind = $leader, L, exec, $lockscreen
bind = $leader, Space, exec, $menu
bind = $leader, F12, exec, $logout
bind = , Print, exec, $screenshot
@ -14,8 +14,8 @@ bind = , Print, exec, $screenshot
bind = $leader, C, killactive,
bind = $leader, F, fullscreen,
bind = $leader, V, togglefloating,
bind = $leader, P, pseudo, # dwindle
bind = $leader, J, togglesplit, # dwindle
bind = $leader, P, pseudo,
bind = $leader, J, togglesplit,
bind = $leader, M, exit,
# Move focus with leader + arrow keys

View File

@ -4,7 +4,7 @@ $email = geary
$files = nautilus
$logout = wlogout
$lockscreen = swaylock
$menu = ~/.bin/toggle-fuzzel
$menu = pkill fuzzel || fuzzel
$screenshot = grim -g "$(slurp -d)" - | wl-copy
$statusbar = ~/.bin/launch-waybar
$terminal = alacritty

View File

@ -1,2 +1,2 @@
windowrulev2 = tile, class:.*
windowrulev2 = suppressevent maximize, class:.*
#windowrulev2 = tile, class:.*

View File

@ -1,51 +0,0 @@
# Git
alias g = git
alias gc = git clone
alias gd = git diff
alias gl = git log --oneline
alias gp = git pull
alias gs = git status
alias home = git $"--git-dir=($env.HOME)/.home/" $"--work-tree=($env.HOME)"
# Go
alias gob = go build -v
alias got = go test -v
# Hyperfine
alias bench = hyperfine --shell=none
# Neovim
alias e = nvim
alias n = nvim
# Pacman
alias p = pacman
alias pi = sudo pacman -S
alias pr = sudo pacman -Rs
alias pu = sudo pacman -Syu
# Tmux
alias t = tmux
alias ta = tmux attach
alias td = tmux detach
alias tl = tmux ls
alias tk = tmux kill-server
# Systemctl
alias s = systemctl
alias s+ = systemctl start
alias s- = systemctl stop
alias sl = systemctl list-units --type=service --state=running
alias sld = systemctl list-unit-files --type=service --state=disabled
alias sle = systemctl list-unit-files --type=service --state=enabled
alias slt = systemctl list-timers
alias ss = systemctl status
# ...
alias cdp = cd ~/projects
alias cls = clear
alias hex = hexdump -C
alias ll = ls -la
# Close all windows
def closeall [] { wmctrl -l | awk '{print $1}' | xargs -rn1 wmctrl -ic }

View File

@ -1,7 +0,0 @@
source ~/.config/nushell/prompt.nu
source ~/.config/nushell/alias.nu
$env.config.show_banner = false
$env.config.history.file_format = "sqlite"
$env.config.history.isolation = true
$env.config.hooks.pre_prompt = [{print --no-newline $"(ansi title)(whoami)@(hostname)(ansi st)"}]

View File

@ -1,3 +0,0 @@
$env.EDITOR = "nvim"
$env.GOPATH = $"($env.HOME)/.go"
$env.LANG = "en_US.UTF-8"

View File

@ -1,27 +0,0 @@
def prompt [] {
mut home = ""
try {
if $nu.os-info.name == "windows" {
$home = $env.USERPROFILE
} else {
$home = $env.HOME
}
}
let dir = ([
($env.PWD | str substring 0..($home | str length) | str replace $home "~"),
($env.PWD | str substring ($home | str length)..)
] | str join)
let path_color = (if (is-admin) { ansi red_bold } else { ansi green_bold })
let separator_color = (if (is-admin) { ansi light_red_bold } else { ansi light_green_bold })
let path_segment = $"($path_color)($dir)"
$path_segment | str replace --all (char path_sep) $"($separator_color)/($path_color)"
}
$env.PROMPT_COMMAND = {|| prompt}
$env.PROMPT_COMMAND_RIGHT = ""
$env.PROMPT_INDICATOR = " "
$env.PROMPT_MULTILINE_INDICATOR = {|| "::: " }

View File

@ -2,39 +2,51 @@
"layer": "top",
"modules-left": ["custom/os","hyprland/workspaces"],
"modules-center": ["clock"],
"modules-right": ["cpu","memory","disk","network","custom/power"],
"modules-right": ["cpu","custom/gpu","memory","disk","network","custom/power"],
"clock": {
"interval": 60,
"format": "{:%a %H : %M}",
"tooltip-format": "{:%Y-%m-%d}"
"format": "{:%H : %M}",
"tooltip-format": "{:%A, %Y-%m-%d}",
"on-click": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy"
},
"cpu": {
"interval": 2,
"format": "{icon} {usage}%",
"format-icons": ["󰾆", "󰾅", "󰓅"],
"max-length": 10
"max-length": 10,
"on-click": "$TERMINAL -e btop",
},
"custom/gpu": {
"exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits",
"format": " {}%",
"return-type": "",
"interval": 2,
"on-click": "$TERMINAL -e nvtop",
},
"memory": {
"interval": 2,
"format": " {used} GiB",
"max-length": 10
"max-length": 10,
"on-click": "$TERMINAL -e btop",
},
"network": {
"interval": 2,
"format": " {ifname}",
"format-wifi": " {essid}",
"format-ethernet": " {bandwidthUpBits}  {bandwidthDownBits}",
"format-ethernet": " {bandwidthUpBits}  {bandwidthDownBits}",
"format-disconnected": "",
"tooltip-format": "{ifname} via {gwaddr}",
"tooltip-format-wifi": " {essid} ({signalStrength}%)",
"tooltip-format-ethernet": " {ifname}",
"tooltip-format-disconnected": "",
"max-length": 50
"max-length": 50,
"on-click": "$TERMINAL -e nethogs",
},
"disk": {
"interval": 30,
"format": "󰋊 {used}",
"path": "/"
"path": "/",
"on-click": "$TERMINAL -e dua i",
},
"mpris": {
"format": "{player_icon} {title}",
@ -53,7 +65,7 @@
"format-muted": "",
"scroll-step": 5,
"on-click": "helvum",
"format-icons": ["", "", ""]
"format-icons": ["", "", ""],
},
"hyprland/workspaces": {
"format": "{icon}",
@ -66,11 +78,11 @@
"active": "",
"default": ""
},
"sort-by-number": true
"sort-by-number": true,
},
"custom/os":{
"format": "",
"tooltip": false,
"on-click": "alacritty --hold -e neofetch",
}
"on-click": "$TERMINAL --hold -e neofetch",
},
}

View File

@ -22,23 +22,27 @@ window#waybar.hidden {
#network,
#wireplumber,
#workspaces,
#custom-os {
#custom-os,
#custom-gpu {
color: @fg;
background: @bg;
margin: 0 4px;
margin: 0 8px;
transition: none;
}
#workspaces button {
padding: 0px 5px;
color: rgba(255, 255, 255, 0.5);
background: transparent;
text-shadow: none;
}
#workspaces button:hover,
#workspaces button.active {
color: rgba(255, 255, 255, 1.0);
}
#custom-os {
font-size: 24px;
color: #89DCEB;
color: rgb(137, 220, 235);
}

2
.gitignore vendored
View File

@ -8,11 +8,11 @@
!/.config
/.config/*
!/.config/alacritty
!/.config/dunst
!/.config/fish
!/.config/fuzzel
!/.config/htop
!/.config/hypr
!/.config/nushell
!/.config/nvim
!/.config/swaylock
!/.config/tmux