Working on hypr

This commit is contained in:
Thomas Forgione 2025-04-06 00:01:51 +02:00
parent 6304e6ff95
commit 72b6a76d9a
4 changed files with 185 additions and 367 deletions

View File

@ -15,7 +15,30 @@
################ ################
# See https://wiki.hyprland.org/Configuring/Monitors/ # See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,1 monitor=DP-3, 2560x1440@59.95100, 0x0, 1
# monitor=DP-2, 1920x1080@60.00, 2561x0, 1
monitor=DP-2, disable
monitor=HDMI-A-1, disable
workspace = 11, monitor:DP-3, default:true
workspace = 12, monitor:DP-3
workspace = 13, monitor:DP-3
workspace = 14, monitor:DP-3
workspace = 15, monitor:DP-3
workspace = 16, monitor:DP-3
workspace = 17, monitor:DP-3
workspace = 18, monitor:DP-3
workspace = 19, monitor:DP-3
workspace = 21, monitor:DP-2, default:true
workspace = 22, monitor:DP-2
workspace = 23, monitor:DP-2
workspace = 24, monitor:DP-2
workspace = 25, monitor:DP-2
workspace = 26, monitor:DP-2
workspace = 27, monitor:DP-2
workspace = 28, monitor:DP-2
workspace = 29, monitor:DP-2
################### ###################
@ -27,7 +50,7 @@ monitor=,preferred,auto,1
# Set programs that you use # Set programs that you use
$terminal = alacritty $terminal = alacritty
$fileManager = dolphin $fileManager = dolphin
$menu = wofi --show drun $menu = rofi -show drun -theme ~/.config/rofi/theme.rasi
################# #################
@ -44,7 +67,6 @@ exec-once = nm-applet &
exec-once = flameshot & exec-once = flameshot &
exec-once = blueberry-tray & exec-once = blueberry-tray &
exec-once = nextcloud --background & exec-once = nextcloud --background &
exec-once = numlockx on
############################# #############################
@ -164,6 +186,7 @@ master {
misc { misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :( disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
focus_on_activate = true
} }
@ -182,6 +205,7 @@ input {
follow_mouse = 1 follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification. sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
numlock_by_default = true
touchpad { touchpad {
natural_scroll = false natural_scroll = false
@ -210,17 +234,27 @@ $mainMod = SUPER # Sets "Windows" key as main modifier
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, return, exec, $terminal bind = $mainMod, return, exec, $terminal
bind = $mainMod SHIFT, E, exec, /home/thomas/.config/dotfiles/bin/clone-terminal bind = $mainMod SHIFT, E, exec, $terminal
bind = $mainMod, A, exec, firefox bind = $mainMod, A, exec, firefox
bind = $mainMod SHIFT, C, killactive, bind = $mainMod SHIFT, C, killactive,
bind = $mainMod SHIFT, Q, exec, hyprctl dispatch exit
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating, bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, $menu bind = $mainMod, R, exec, $menu
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod SHIFT, Right, movewindow,mon:r
bind = $mainMod SHIFT, Left, movewindow,mon:l
bind = $mainMod, Tab, cyclenext
bind = $mainMod SHIFT, Q, exit
bind = $mainMod CTRL, R, exec, hyprctl reload
bind = $mainMod, Z, exec, firefox http://jdb.localhost/todo.html https://web.telegram.org https://web.whatsapp.com/ https://discord.com/app https://nuage.polymny.studio/index.php/apps/calendar/ https://mail.infomaniak.com/2 https://mail.infomaniak.com/0
bind = $mainMod, E, exec, firefox ext+container:name=Yuzzit&url=https://yip.atlassian.net/ ext+container:name=Yuzzit&url=https://app.slack.com/client/T03UFFGJK/D07KS0S1LDT ext+container:name=Yuzzit&url=https://app.gather.town/app/bZRkf3gh7MIximOa/ytopenspace
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
# bind = $mainMod, left, movefocus, l # bind = $mainMod, left, movefocus, l
# bind = $mainMod, right, movefocus, r # bind = $mainMod, right, movefocus, r
@ -231,28 +265,26 @@ bind = $mainMod, left, workspace, e-1
bind = $mainMod, right, workspace, e+1 bind = $mainMod, right, workspace, e+1
# Switch workspaces with mainMod + [0-9] # Switch workspaces with mainMod + [0-9]
bind = $mainMod, code:10, workspace, 1 bind = $mainMod, code:10, exec, hyprsome workspace 1
bind = $mainMod, code:11, workspace, 2 bind = $mainMod, code:11, exec, hyprsome workspace 2
bind = $mainMod, code:12, workspace, 3 bind = $mainMod, code:12, exec, hyprsome workspace 3
bind = $mainMod, code:13, workspace, 4 bind = $mainMod, code:13, exec, hyprsome workspace 4
bind = $mainMod, code:14, workspace, 5 bind = $mainMod, code:14, exec, hyprsome workspace 5
bind = $mainMod, code:15, workspace, 6 bind = $mainMod, code:15, exec, hyprsome workspace 6
bind = $mainMod, code:16, workspace, 7 bind = $mainMod, code:16, exec, hyprsome workspace 7
bind = $mainMod, code:17, workspace, 8 bind = $mainMod, code:17, exec, hyprsome workspace 8
bind = $mainMod, code:18, workspace, 9 bind = $mainMod, code:18, exec, hyprsome workspace 9
bind = $mainMod, code:19, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9] # Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, code:10, movetoworkspace, 1 bind = $mainMod SHIFT, code:10, exec, hyprsome movefocus 1
bind = $mainMod SHIFT, code:11, movetoworkspace, 2 bind = $mainMod SHIFT, code:11, exec, hyprsome movefocus 2
bind = $mainMod SHIFT, code:12, movetoworkspace, 3 bind = $mainMod SHIFT, code:12, exec, hyprsome movefocus 3
bind = $mainMod SHIFT, code:13, movetoworkspace, 4 bind = $mainMod SHIFT, code:13, exec, hyprsome movefocus 4
bind = $mainMod SHIFT, code:14, movetoworkspace, 5 bind = $mainMod SHIFT, code:14, exec, hyprsome movefocus 5
bind = $mainMod SHIFT, code:15, movetoworkspace, 6 bind = $mainMod SHIFT, code:15, exec, hyprsome movefocus 6
bind = $mainMod SHIFT, code:16, movetoworkspace, 7 bind = $mainMod SHIFT, code:16, exec, hyprsome movefocus 7
bind = $mainMod SHIFT, code:17, movetoworkspace, 8 bind = $mainMod SHIFT, code:17, exec, hyprsome movefocus 8
bind = $mainMod SHIFT, code:18, movetoworkspace, 9 bind = $mainMod SHIFT, code:18, exec, hyprsome movefocus 9
bind = $mainMod SHIFT, code:19, movetoworkspace, 10
# Example special workspace (scratchpad) # Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod, S, togglespecialworkspace, magic

View File

@ -1,220 +0,0 @@
// -*- mode: jsonc -*-
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"sway/workspaces",
"sway/mode",
"sway/scratchpad",
"custom/media"
],
"modules-center": [
"sway/window"
],
"modules-right": [
"mpd",
"idle_inhibitor",
"pulseaudio",
"network",
"power-profiles-daemon",
"cpu",
"memory",
"temperature",
"backlight",
"keyboard-state",
"sway/language",
"battery",
"battery#bat2",
"clock",
"tray",
"custom/power"
],
// 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": ""
// }
// },
"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": 5,
"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,
// "icons": {
// "blueman": "bluetooth",
// "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
// }
},
"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-full": "{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"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"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} {text}",
"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
},
"custom/power": {
"format" : "⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
}
}

View File

@ -1,4 +1,13 @@
{ {
"name": "float",
"layer": "top",
"position": "bottom",
"height": 75,
"exclusive": false,
"passthrough": false,
"gtk-layer-shell": true,
"margin-right": 10,
"margin-bottom": 0,
"margin-top" : 0, "margin-top" : 0,
"margin-left": 0, "margin-left": 0,
"margin-right": 0, "margin-right": 0,
@ -6,9 +15,9 @@
"modules-left": [ "modules-left": [
], ],
"modules-center": [ "modules-center": [
"hyprland/workspaces",
], ],
"modules-right": [ "modules-right": [
"hyprland/workspaces",
"tray", "tray",
"battery", "battery",
"clock", "clock",
@ -24,12 +33,10 @@
"hyprland/workspaces": { "hyprland/workspaces": {
"format": "{icon}", "format": "{icon}",
"on-click": "activate", "on-click": "activate",
"format-icons": {
"active": " ",
},
"sort-by-number": true, "sort-by-number": true,
"persistent-workspaces": { "persistent-workspaces": {
"*": 10, // 10 workspaces by default on every monitor "DP-3": [11, 12, 13, 14, 15, 16, 17, 18, 19],
"DP-2": [21, 22, 23, 24, 25, 26, 27, 28, 29]
}, },
}, },
"clock": { "clock": {

View File

@ -1,12 +1,17 @@
@import "macchiato.css"; @import "macchiato.css";
window { window#waybar.full {
position: absolute; background: @bar-bg;
}
window#waybar.float {
background-color: transparent;
} }
* { * {
font-family: "JetBrainsMono Nerd Font", Roboto, Helvetica, Arial, sans-serif; font-family: "JetBrainsMono Nerd Font", Roboto, Helvetica, Arial, sans-serif;
font-size: 16px; font-size: 16px;
opacity: 0.9;
} }
window#waybar { window#waybar {
@ -31,7 +36,7 @@ button:hover {
} }
#workspaces button { #workspaces button {
padding: 0 5px; padding: 2px 5px;
background-color: transparent; background-color: transparent;
color: #ffffff; color: #ffffff;
} }
@ -42,12 +47,19 @@ button:hover {
#workspaces button.active { #workspaces button.active {
color: #ffffff; color: #ffffff;
font-weight: bold;
background-color: @green;
border-radius: 50px;
} }
#workspaces button:hover { #workspaces button:hover {
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
} }
#workspaces button.active:hover {
background-color: @green;
}
#workspaces button.focused { #workspaces button.focused {
background-color: @lavender; background-color: @lavender;
box-shadow: inset 0 -3px #ffffff; box-shadow: inset 0 -3px #ffffff;
@ -101,24 +113,11 @@ button:hover {
color: @teal; color: @teal;
} }
.modules-right, .modules-right {
.modules-center {
background-color: @base; background-color: @base;
border-radius: 15px; border-radius: 15px;
} }
.modules-right {
padding: 0 10px;
}
.modules-left {
padding: 0 20px;
}
.modules-center {
padding: 0 10px;
}
#battery.charging, #battery.charging,
#battery.plugged { #battery.plugged {
color: @sapphire; color: @sapphire;