mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-08 18:03:08 +02:00
more hyprland stuff + eww (basically ricing)
Signed-off-by: Alex Stan <stan.alexandru@ichb.ro>
This commit is contained in:
parent
0b62157e57
commit
3bff77b17e
6 changed files with 129 additions and 7 deletions
|
@ -12,7 +12,6 @@ in {
|
|||
./hardware-configuration.nix
|
||||
./cachix.nix
|
||||
];
|
||||
|
||||
nix.settings = {
|
||||
trusted-users = [ "root" "ultra" ];
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
|
@ -112,6 +111,9 @@ in {
|
|||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
wget
|
||||
neovim
|
||||
|
@ -221,10 +223,8 @@ in {
|
|||
|
||||
# Enable KDE Plasma 5
|
||||
displayManager = {
|
||||
|
||||
# Enable autologin
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
user = "ultra";
|
||||
};
|
||||
|
||||
|
|
30
users/ultra/configs/eww/eww.scss
Normal file
30
users/ultra/configs/eww/eww.scss
Normal file
|
@ -0,0 +1,30 @@
|
|||
* {
|
||||
all: unset;
|
||||
font-family: "JetBrainsMono Nerd Font";
|
||||
}
|
||||
|
||||
.bar {
|
||||
border-radius: 10px;
|
||||
background-color: #0e2a3f;
|
||||
}
|
||||
|
||||
.time {
|
||||
font-size: 19px;
|
||||
color: #00e0f0;
|
||||
}
|
||||
|
||||
.workspace {
|
||||
// border-top: 1px solid #00aaaa;
|
||||
padding: 10px;
|
||||
font-size: 15px;
|
||||
border-radius: 5px;
|
||||
background-color: #0e2636;
|
||||
color: #00b0d0;
|
||||
// padding-top: 0px;
|
||||
}
|
||||
|
||||
/*
|
||||
.workspace {
|
||||
border-top: 0px;
|
||||
}
|
||||
*/
|
51
users/ultra/configs/eww/eww.yuck
Normal file
51
users/ultra/configs/eww/eww.yuck
Normal file
|
@ -0,0 +1,51 @@
|
|||
(defwindow bar
|
||||
:monitor 0
|
||||
:windowtype "dock"
|
||||
:stacking "fg"
|
||||
:exclusive true
|
||||
:position "left"
|
||||
:reserve (struts :distance "4%" :side "left")
|
||||
:class "bar"
|
||||
:valign "start"
|
||||
; :spacing "4px"
|
||||
:geometry ( geometry :width "2%"
|
||||
:height "99%"
|
||||
:x "8px"
|
||||
:y "0%"
|
||||
:anchor "left center" )
|
||||
(box
|
||||
:orientation "v"
|
||||
:valign "start"
|
||||
:halign "center"
|
||||
:space-evenly true
|
||||
:spacing 5
|
||||
(time)
|
||||
(workspaces)
|
||||
)
|
||||
;(greeter :text "Amogus"
|
||||
; :name "Sus")
|
||||
)
|
||||
|
||||
(defwidget time []
|
||||
(box
|
||||
:class "time"
|
||||
time))
|
||||
(defpoll time :interval "1s"
|
||||
`date +'%I
|
||||
%M
|
||||
%S
|
||||
%p'`)
|
||||
|
||||
(defvar workspace_nums "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]")
|
||||
(defwidget workspaces []
|
||||
(box :class "workspaces"
|
||||
:orientation "v"
|
||||
:space-evenly true
|
||||
:halign "start"
|
||||
:spacing 10
|
||||
(for num in workspace_nums
|
||||
(workspace :number num))))
|
||||
|
||||
(defwidget workspace [number]
|
||||
(box :class "workspace"
|
||||
(button :onclick "hyprctl dispatch workspace ${number}" number)))
|
|
@ -18,12 +18,14 @@ autogenerated = 0 # remove this line to remove the warning
|
|||
monitor = DP-1, 2560x1440@165, 1920x0, 1
|
||||
monitor = HDMI-A-2, 1920x1080@120, 0x360, 1
|
||||
|
||||
monitor = DP-4, 2560x1440@165, 1920x0, 1
|
||||
monitor = HDMI-A-4, 1920x1080@120, 0x360, 1
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
|
||||
# Execute your favorite apps at launch
|
||||
# exec-once = waybar & hyprpaper & firefox
|
||||
exec-once = dunst & polkit-kde-agent
|
||||
exec-once = dunst & polkit-kde-agent & hyprpaper & eww daemon & eww open bar
|
||||
# Source a file (multi-file configs)
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
|
||||
|
@ -131,14 +133,14 @@ bind = $mainMod, M, exit,
|
|||
bind = $mainMod, E, exec, dolphin
|
||||
bind = $mainMod, V, togglefloating,
|
||||
# bind = $mainMod, D, execr, [float], alacritty -T launcher --class launcher -e /home/ultra/.local/bin/fzf-launch
|
||||
# bind = $mainMod, R, exec, fish -c 'eval (tofi-drun) & disown (jobs -p)'
|
||||
# bind = $mainMod, R, exec, fish -c 'eval (tofi-drun)'
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod + Shift, F, fullscreen
|
||||
bind = $mainMod, F, togglefloating
|
||||
bind = $mainMod, Return, exec, konsole
|
||||
bind = , Print, exec, grimblast copy area
|
||||
bind = $mainMod, Space, exec, tofi-drun
|
||||
bind = $mainMod, Space, exec, tofi-drun --drun-launch=true
|
||||
bind = $mainMod, S, exec, scratchpad
|
||||
bind = $mainMod + Shift, S, exec, scratchpad -g
|
||||
|
||||
|
@ -162,6 +164,12 @@ bind = $mainMod, right, movefocus, r
|
|||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
|
||||
# Move focus with mainMod + hjkl
|
||||
bind = $mainMod, H, movefocus, l
|
||||
bind = $mainMod, J, movefocus, d
|
||||
bind = $mainMod, K, movefocus, u
|
||||
bind = $mainMod, L, movefocus, r
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
|
|
7
users/ultra/configs/hyprpaper/hyprpaper.conf
Normal file
7
users/ultra/configs/hyprpaper/hyprpaper.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
preload = /home/ultra/Pictures/wallpaper.png
|
||||
|
||||
wallpaper = DP-1, /home/ultra/Pictures/wallpaper.png
|
||||
wallpaper = HDMI-A-2, /home/ultra/Pictures/wallpaper.png
|
||||
|
||||
wallpaper = DP-4, /home/ultra/Pictures/wallpaper.png
|
||||
wallpaper = HDMI-A-4, /home/ultra/Pictures/wallpaper.png
|
26
users/ultra/configs/tofi/config
Normal file
26
users/ultra/configs/tofi/config
Normal file
|
@ -0,0 +1,26 @@
|
|||
font = "/home/ultra/.local/share/fonts/j/JetBrainsMonoNerdFont_Regular.ttf"
|
||||
font-size = 23
|
||||
|
||||
font-features = "liga 1"
|
||||
text-color = #DDFFFF
|
||||
|
||||
selection-color = #00CCDD
|
||||
placeholder-color = #112233
|
||||
|
||||
width = 50%
|
||||
height = 50%
|
||||
background-color = #001222
|
||||
outline-color = #001111
|
||||
outline-width = 10
|
||||
border-color = #00CCDD
|
||||
corner-radius = 15
|
||||
|
||||
text-cursor-style = bar
|
||||
text-cursor-color = #DDFFFF
|
||||
text-cursor-thickness = 2
|
||||
|
||||
prompt-text = "> "
|
||||
placeholder-text = "Konsole"
|
||||
|
||||
text-cursor = true
|
||||
history = true
|
Loading…
Reference in a new issue