├── .gitignore ├── scripted-features ├── README.md ├── hyprwidgets ├── hyprlock ├── hypridle ├── hypr-fix-special └── hypr-scratchpad ├── autostart.d ├── 01-user-programs.conf └── 00-system-programs.conf ├── hardware.d ├── wacom.conf ├── displays.conf └── keyboard.conf ├── .github └── FUNDING.yml ├── aliases.d ├── 00-themeing-aliases.conf ├── 02-program-aliases.conf └── 01-system-aliases.conf ├── hyprpaper.conf ├── hyprland.conf ├── modes.d ├── shutdown.conf ├── screenshot.conf ├── resize.conf ├── move.conf └── displays.conf ├── help.man ├── README.md ├── config.d ├── 00-theming.conf ├── 02-window-rules.conf └── 01-keybindings.conf └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | ./tags 2 | -------------------------------------------------------------------------------- /scripted-features/README.md: -------------------------------------------------------------------------------- 1 | You must copy these into the next directory so hyprland can find them: 2 | 3 | ``` 4 | ~/.local/bin 5 | ``` 6 | 7 | Also, don't forget to give them execution permissions: 8 | 9 | ```sh 10 | chmod +x ./hypr-fix-special 11 | chmod +x ./hypr-scratchpad 12 | chmod +x ./hypridle 13 | chmod +x ./hyprlock 14 | chmod +x ./hyprwidgets 15 | ``` 16 | -------------------------------------------------------------------------------- /scripted-features/hyprwidgets: -------------------------------------------------------------------------------- 1 | #/bin/bash 2 | 3 | 4 | # IT WON'T WORK JUST YET 5 | # nwg-wrapper only work with some versions of the lock protocol. 6 | 7 | nwg-wrapper \ 8 | -o $screen5 \ 9 | -s anime-op.sh \ 10 | -r 5000 \ 11 | -c anime-op.css \ 12 | -p center \ 13 | -mr 50 \ 14 | -a start \ 15 | -mt 50 \ 16 | -j right \ 17 | --layer 1 18 | -------------------------------------------------------------------------------- /scripted-features/hyprlock: -------------------------------------------------------------------------------- 1 | # Be careful because #eeeeee means transparent. 2 | swaylock \ 3 | --daemonize \ 4 | --color "#000000" \ 5 | --inside-color "#282a2b" \ 6 | --inside-clear-color "#ffffff" \ 7 | --ring-color "#3B758C" \ 8 | --ring-clear-color "#9fca56" \ 9 | --ring-ver-color "#55b5db" \ 10 | --show-failed-attempts \ 11 | --ignore-empty-password \ 12 | --indicator-thickness 50 \ 13 | --indicator-radius 425 14 | 15 | -------------------------------------------------------------------------------- /autostart.d/01-user-programs.conf: -------------------------------------------------------------------------------- 1 | # USER 2 | # ============================================================== 3 | 4 | # ENABLED 5 | exec-once = $corectrl 6 | exec-once = gtk-launch Protonmail 7 | exec-once = gtk-launch Protoncal 8 | exec-once = gtk-launch GoogleTasks 9 | exec-once = gtk-launch Trello 10 | 11 | # DISABLED 12 | # exec-once = hp-systray 13 | # exec-once = gamescope-custom 14 | # exec-once = thunderbird-wayland 15 | -------------------------------------------------------------------------------- /hardware.d/wacom.conf: -------------------------------------------------------------------------------- 1 | # Query the connected input methods: `swaymsg -t get_inputs | grep Wacom` 2 | # DOCS: To map wacom to the active screen do it in keybinds like: 3 | # bindsym $mod+1 workspace $ws1 ; exec $map-to-active 4 | # If you have that code on keybinds, just choose screen to enable it 5 | 6 | # TODO: Needs to be re-implemented for hyprland 7 | # $map-to-active = swaymsg input type:tablet_tool map_to_output `swaymsg -t get_outputs | jq -r '.[] | select(.focused == true) | .name'` 8 | -------------------------------------------------------------------------------- /scripted-features/hypridle: -------------------------------------------------------------------------------- 1 | # Note: On hyprland, set the variable 'cursor_inactive_timeout' to the same 2 | # ms as the hyprlock timeout. This will hide the cursor as we go into lock. 3 | # see ~/.config/hypr/config.d/00-theming 4 | 5 | swayidle -w \ 6 | timeout 240 'light -G > /tmp/brightness && light -S 10' resume 'light -S $([ -f /tmp/brightness ] && cat /tmp/brightness || echo 100%)' \ 7 | timeout 900 'hyprctl dispatcher movecursortocorner 1; exec hyprlock' \ 8 | resume 'hyprctl dispatcher dpms on' \ 9 | before-sleep 'playerctl pause' \ 10 | before-sleep 'exec hyprlock' 11 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: Zeioth 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /aliases.d/00-themeing-aliases.conf: -------------------------------------------------------------------------------- 1 | # THEMEING VARIABLES 2 | # ============================================================================ 3 | # Note: You only need to change this vars to affect the entire system. 4 | # Warning: Make sure of using the right values or it will cause silent breakage. 5 | 6 | $system_theme = 'Arc-Dark' 7 | $system_icons = 'Numix-Square' 8 | $system_dpi_scaling_factor = 2.6 9 | $cursor_size = 108 10 | 11 | # Warning: 12 | # Avoid xorg cursor themes (like 'Breeze' for example) 13 | # They will be represented using xwayland, and will have the wrong size. 14 | $cursor_theme = Adwaita 15 | $titlebar_text_size = 32 16 | $titlebar_font = Cantarell 17 | 18 | # WAYBAR 19 | # See ~/.config/waybar/style.css 20 | 21 | # MODES 22 | $modes_primary_color = #d8dee8 23 | $modes_secondary_color = #e6cd69 24 | 25 | # BACKGROUNDS 26 | # See ../hyprpaper.conf 27 | -------------------------------------------------------------------------------- /hyprpaper.conf: -------------------------------------------------------------------------------- 1 | # INFO: You need to have the package 'hyprpaper-git' installed. 2 | # INFO: hyprpaper doesn't support loading variables from hyprland (yet?) 3 | 4 | 5 | # We have to preload any image we wnnna use 6 | preload = ~/images/backgrounds/tokyo-night-manjarosway-3840x2160.png 7 | preload = ~/images/backgrounds/minimal_squares.png 8 | preload = ~/images/backgrounds/tokyonight.png 9 | 10 | # Set default wallpapers 11 | wallpaper = DP-1,~/images/backgrounds/tokyo-night-manjarosway-3840x2160.png 12 | wallpaper = HDMI-A-1,~/images/backgrounds/minimal_squares.png 13 | wallpaper = DP-3,~/images/backgrounds/tokyonight.png 14 | wallpaper = DP-2,~/images/backgrounds/tokyonight.png 15 | # wallpaper = DP-4,~/images/backgrounds/tokyonight.png 16 | # wallpaper = DP-5,~/images/backgrounds/tokyonight.png 17 | 18 | # Disable splash text 19 | splash = false 20 | 21 | ## HOW TO: ENABLE HYPRPAPER 22 | # './autostart.d/00-system-programs.conf' → uncomment 'exec-once hyprpaper' 23 | # './config.d/02-theming' → uncomment 'disable_hyprland_logo on' 24 | 25 | ## HOW TO DEBUG THIS CONFIG FILE: 26 | # Run 'hyprpaper' on terminal. 27 | 28 | -------------------------------------------------------------------------------- /hyprland.conf: -------------------------------------------------------------------------------- 1 | # User config for hyprland 2 | # Read `man ./help.man` for help about the config. 3 | # Read `man 5 hyprland` for a complete reference. 4 | 5 | 6 | # USER VARIABLES → keep it on the top 7 | source = ./aliases.d/00-themeing-aliases.conf 8 | source = ./aliases.d/01-system-aliases.conf 9 | source = ./aliases.d/02-program-aliases.conf 10 | 11 | # AUTOSTART → Make sure you launch hyprland plugins before configuring them 12 | source = ./autostart.d/00-system-programs.conf 13 | source = ./autostart.d/01-user-programs.conf 14 | 15 | # USER HARDWARE 16 | source = ./hardware.d/displays.conf 17 | source = ./hardware.d/keyboard.conf 18 | source = ./hardware.d/wacom.conf 19 | 20 | # ENABLE MODES 21 | source = ./modes.d/displays.conf 22 | source = ./modes.d/move.conf 23 | source = ./modes.d/resize.conf 24 | source = ./modes.d/screenshot.conf 25 | source = ./modes.d/shutdown.conf 26 | 27 | # USER CONFIG 28 | source = ./config.d/00-theming.conf 29 | source = ./config.d/01-keybindings.conf 30 | source = ./config.d/02-window-rules.conf 31 | 32 | # disable this if every app you use is compatible with wayland 33 | # xwayland enable → Not necessary anymore? 34 | -------------------------------------------------------------------------------- /modes.d/shutdown.conf: -------------------------------------------------------------------------------- 1 | # TODO: There is no waybar integration in hyprland, so we could 2 | # display an overlay with the instructions while the mode is active. 3 | 4 | submap=mode_shutdown 5 | 6 | # MODE IMPLEMENTATION 7 | # ------------------------------------- 8 | 9 | #BIND MOD KEY DISPATCHER VALUE 10 | bind = , l, exec, $locking 11 | bind = , e, exit 12 | bind = , s, exec, systemctl suspend 13 | bind = , h, exec, systemctl hibernate 14 | bind = , q, exec, systemctl poweroff 15 | bind = , r, exec, systemctl reboot 16 | 17 | # Exit conditions 18 | #BIND MOD KEY DISPATCHER VALUE 19 | bind = , escape, submap, reset 20 | bind = , l, submap, reset 21 | bind = , e, submap, reset 22 | bind = , s, submap, reset 23 | bind = , h, submap, reset 24 | bind = , q, submap, reset 25 | bind = , r, submap, reset 26 | 27 | # ------------------------------------- 28 | 29 | submap=reset 30 | -------------------------------------------------------------------------------- /help.man: -------------------------------------------------------------------------------- 1 | .\" Manpage for hyprland config. 2 | .\" Contact zeioth@hotmail.com to correct errors or typos. 3 | .TH man 8 "16 nov 2022" "1.0" "Hyprland config" 4 | .SH NAME 5 | Zeioth's personal hyprland congfiguration 6 | 7 | .SH SYNOPSIS 8 | An Hyprland config you can \fBcopy into ~/.config/hypr\fP. 9 | .SH DESCRIPTION 10 | Files and directories: 11 | \fBconfig\fP Entry point file. Includes the other configs. 12 | \fBautostart.d\fP Programs to run on startup. 13 | \fBvariables.d\fP Commands we use in the configs. 14 | \fBconfig.d\fP Hyprland settings. 15 | \fBhardware.d\fP hardware settings. 16 | \fBmodes.d\fP keyboard modes. 17 | \fBscripted-features\fP Optional things \fBcopy into ~/.local/bin\fP. 18 | .SH EXAMPLES 19 | \fB1)\fP Add a variable to the file you choose on \fB→ ./variables.d\fP 20 | \fB2)\fP Call it from a configuration you choose in \fB→ ./config.d\fP 21 | \fB3)\fP You can also call modes from \fB→ ./config.d/keybindings \fP 22 | .SH BUGS 23 | \fB-\fP Ranger 'terminal' command does not spawn in the current directory as it should. 24 | .SH SEE ALSO 25 | \fB-\fP https://github.com/hyprwm/Hyprland 26 | .SH AUTHOR 27 | Adrian Lopez (zeioth@hotmail.com) 28 | .SH COPYRIGHT 29 | GPL - GNU General public license 30 | -------------------------------------------------------------------------------- /autostart.d/00-system-programs.conf: -------------------------------------------------------------------------------- 1 | # SYSTEM 2 | # ============================================================== 3 | # DOCS: 4 | # - sway-audio-inhibit 5 | # prevents idle while any source of sound is reproducing. 6 | # can be tested by checking all apps apre corked with: pactl list sink-inputs 7 | # - wob 8 | # It is not here because it runs as a service. 9 | # If you find any issue run 'fix-wob' to fix it. 10 | 11 | 12 | # EXAMPLE → many programs in 1 subprocess [sync] - (Errors won't be logged) 13 | # exec-once = waybar & hyprpaper & firefox 14 | 15 | # SYSTEM WIDE ENV VARS 16 | exec = $systemctl_env # Pass all user envs to systemctl 17 | exec = $dbus_env # Pass all user envs to dbus and systemctl 18 | exec = $flatpak_env # Pass all user envs to flatpak 19 | 20 | # ENABLED 21 | # One Subprocess per program [Async] 22 | exec = $foot_server 23 | exec-once = waybar 24 | exec-once = $gnome_polkit 25 | exec-once = $notifications 26 | exec-once = $update_mirrors 27 | exec-once = $sunset 28 | exec-once = $wl_paste_polling 29 | exec-once = $swork_style 30 | exec-once = $spice_vdagent 31 | exec-once = $idle 32 | exec-once = $idle_audio_inhibit 33 | exec-once = avizo-service 34 | exec = $wallpapers 35 | 36 | 37 | # DISABLED 38 | # exec-once = $swayd 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # zeioth dotfiles config for hyprland 2 | Clone the directory into `~/.config` and use it as base for your config. Or just for reference. 3 | 4 | ## FEATURES 5 | 6 | * Complex setup where most likely you will find the solution to most common issues you encounter while setting up hyprland. 7 | * Pre-binded modes to manage `screenshots` (local and/or to the cloud), 8 | `displays`, `move`, `resize`, `shutdown`. 9 | * Variables isolated from the rest of the config. 10 | * Feature rich. Delete what you don't need. 11 | 12 | ## YOU MUST 13 | 14 | * Go to `./hardware.d/displays` and setup your displays there. 15 | 16 | ## YOU SHOULD 17 | 18 | Read `hyprland.config`. From there is quite easy to understand everything. 19 | 20 | ## COOL TO TWEAK (BUT NOT NECESSARY) 21 | 22 | You can go into `./modes.d/displays` and modify the file to work as you desire. You will find examples about how to change the number of enabled monitors (very likely you just want to enable one while gaming) 23 | 24 | # FAQ 25 | 26 | * **How to debug**: On hyprland.conf, comment all lines except one. Then uncomment the next one. Until everything works. 27 | * **Why not just have everything into just a single config file?** You certainly can. 28 | I prefer to separate it into files so it's easier to find the stuff. 29 | 30 | # HOW TO USE MAN 31 | 32 | `man ./help.man` for help about the config. 33 | -------------------------------------------------------------------------------- /scripted-features/hypr-fix-special: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | 3 | CACHE_DIR=~/.cache/hypr-special 4 | CACHE_FILE_LIMIT=2000000 5 | 6 | # Prepare 7 | mkdir -p "$CACHE_DIR" 8 | is_float=$(hyprctl activewindow -j | jaq .floating) 9 | is_on_special=$(hyprctl activewindow -j | jaq '.workspace.name == "special:special"') 10 | 11 | # Create cache file 12 | address=$(hyprctl activewindow -j | jaq -r .address) 13 | temp_fname="$CACHE_DIR/$address" 14 | ! $is_on_special && echo "$is_float" > "$temp_fname" 15 | 16 | # Send window to special workspace 17 | if $is_float; then 18 | hyprctl --batch "dispatch togglefloating active; dispatch movetoworkspacesilent special" 19 | else 20 | hyprctl dispatch movetoworkspacesilent special 21 | fi 22 | 23 | # Send window back from special workspace 24 | $is_on_special && read -r state < "$temp_fname" && 25 | if $state; then 26 | hyprctl --batch "dispatch movetoworkspacesilent +0; dispatch togglefloating active; dispatch centerwindow" 27 | else 28 | hyprctl dispatch movetoworkspacesilent +0 29 | fi 30 | 31 | # If cache file limit is exceeded: 32 | # Delete any exceeding cache file starting by the oldest. 33 | cache_files=$(find "$CACHE_DIR" -maxdepth 1 -type f -printf '%T@ %p\n' | sort -n | cut -d' ' -f2- | tail -n +$((cache_limit+1))) 34 | n_cache_files=$(echo "$cache_files" | wc -l) 35 | if [ "$n_cache_files" -gt "$CACHE_FILE_LIMIT" ]; then 36 | echo "INFO: Deleting cache files..." 37 | echo "$cache_files" | xargs rm 38 | else 39 | echo "INFO: Cache files not found or below the limit." 40 | fi 41 | -------------------------------------------------------------------------------- /modes.d/screenshot.conf: -------------------------------------------------------------------------------- 1 | # TODO: There is no waybar integration in hyprland, so we could 2 | # display an overlay with the instructions while the mode is active. 3 | 4 | submap=mode_screenshot 5 | 6 | # MODE IMPLEMENTATION 7 | # ------------------------------------- 8 | 9 | #BIND MOD KEY DISPATCHER VALUE 10 | bind = , s, exec, hyprshotgun display upload 11 | bind = , r, exec, hyprshotgun region upload 12 | bind = , w, exec, hyprshotgun window upload 13 | bind = , d, exec, hyprshotgun alldisplays upload 14 | bind = , a, exec, hyprshotgun display 15 | bind = , b, exec, hyprshotgun region 16 | bind = , c, exec, hyprshotgun window 17 | bind = , e, exec, hyprshotgun alldisplays 18 | 19 | # Exit conditions 20 | #BIND MOD KEY DISPATCHER VALUE 21 | bind = , escape, submap, reset 22 | bind = , s, submap, reset 23 | bind = , r, submap, reset 24 | bind = , w, submap, reset 25 | bind = , d, submap, reset 26 | bind = , a, submap, reset 27 | bind = , b, submap, reset 28 | bind = , c, submap, reset 29 | bind = , e, submap, reset 30 | 31 | # ------------------------------------- 32 | 33 | submap=reset 34 | -------------------------------------------------------------------------------- /modes.d/resize.conf: -------------------------------------------------------------------------------- 1 | # TODO: There is no waybar integration in hyprland, so we could 2 | # display an overlay with the instructions while the mode is active. 3 | 4 | submap=mode_resize 5 | 6 | # MODE IMPLEMENTATION 7 | # ------------------------------------- 8 | 9 | #BIND MOD KEY DISPATCHER VALUE 10 | binde = , right, resizeactive, 60 0 11 | binde = , left, resizeactive, -60 0 12 | binde = , up, resizeactive, 0 -60 13 | binde = , down, resizeactive, 0 60 14 | 15 | #BIND MOD KEY DISPATCHER VALUE 16 | binde = SHIFT, right, resizeactive, 10 0 17 | binde = SHIFT, left, resizeactive, -10 0 18 | binde = SHIFT, up, resizeactive, 0 -10 19 | binde = SHIFT, down, resizeactive, 0 10 20 | 21 | #BIND MOD KEY DISPATCHER VALUE 22 | binde = , i, resizeactive, 60 0 23 | binde = , m, resizeactive, -60 0 24 | binde = , e, resizeactive, 0 -60 25 | binde = , n, resizeactive, 0 60 26 | 27 | #BIND MOD KEY DISPATCHER VALUE 28 | binde = SHIFT, i, resizeactive, 10 0 29 | binde = SHIFT, m, resizeactive, -10 0 30 | binde = SHIFT, e, resizeactive, 0 -10 31 | binde = SHIFT, n, resizeactive, 0 10 32 | 33 | # Exit conditions 34 | #BIND MOD KEY DISPATCHER VALUE 35 | bind = , escape, submap, reset 36 | 37 | # ------------------------------------- 38 | 39 | submap=reset 40 | 41 | -------------------------------------------------------------------------------- /modes.d/move.conf: -------------------------------------------------------------------------------- 1 | # TODO: There is no waybar integration in hyprland, so we could 2 | # display an overlay with the instructions while the mode is active. 3 | 4 | # DESCRIPTION: You can move a tiled window with the arrow keys. 5 | # You can move a float window with SHIFT + arrow keys. 6 | 7 | 8 | submap=mode_move 9 | 10 | # MODE IMPLEMENTATION 11 | # ------------------------------------- 12 | 13 | # For tiled 14 | #BIND MOD KEY DISPATCHER VALUE 15 | binde = , right, movewindow, r 16 | binde = , left, movewindow, l 17 | binde = , up, movewindow, u 18 | binde = , down, movewindow, d 19 | binde = , i, movewindow, r 20 | binde = , m, movewindow, l 21 | binde = , e, movewindow, u 22 | binde = , n, movewindow, d 23 | 24 | # For floats 25 | #BIND MOD KEY DISPATCHER VALUE 26 | binde = SHIFT, right, moveactive, 60 0 27 | binde = SHIFT, left, moveactive, -60 0 28 | binde = SHIFT, up, moveactive, 0 -60 29 | binde = SHIFT, down, moveactive, 0 60 30 | binde = SHIFT, i, moveactive, 60 0 31 | binde = SHIFT, m, moveactive, -60 0 32 | binde = SHIFT, e, moveactive, 0 -60 33 | binde = SHIFT, n, moveactive, 0 60 34 | 35 | # Exit condition 36 | #BIND MOD KEY DISPATCHER VALUE 37 | bind = , escape, submap, reset 38 | 39 | # ------------------------------------- 40 | 41 | submap=reset 42 | -------------------------------------------------------------------------------- /hardware.d/displays.conf: -------------------------------------------------------------------------------- 1 | # Output configuration 2 | # 3 | # Example configuration: 4 | # 5 | # output HDMI-A-1 resolution 1920x1080 position 1920,0 6 | # 7 | # You can get the names of your outputs by running: hyprctl monitors 8 | # ############################################################# 9 | 10 | # NOT SUPPORTED YET ON HYPRLAND (Maybe they are not needed at all) 11 | # FOR ALL SCREENS (Use rbg subpixel, for antialiased, less sharp image) 12 | # output * subpixel none 13 | 14 | misc { 15 | # Variable refresh rate 16 | vfr = true 17 | # Enabling vrr may introduce stuttering if the hz you set in your monitor is 18 | # over its vrr operational range. aka, if you OC your monitor EDID. 19 | vrr = true 20 | #no_direct_scanout = false 21 | 22 | # Currently buggy 23 | # render_ahead_of_time = 1 24 | 25 | # This might affect latency compensation in games if you are rendering above 26 | # the monitor's refresh rate. In theory with vrr at 84FPS we don't need this. 27 | # render_ahead_safezone = 5 28 | 29 | # Allow applications to demand focus 30 | focus_on_activate = true 31 | 32 | # Enable if you use personalized wallpapers 33 | disable_hyprland_logo = true 34 | } 35 | 36 | cursor { 37 | default_monitor = $screen5 # Monitor where the cursor goes on startup. 38 | } 39 | 40 | # See https://wiki.hyprland.org/Configuring/Monitors/ 41 | # SCREEN RESOLUTION POS SCALE COLOR 42 | monitor = $screen1, 3840x2160@60, 0x2160, 1, bitdepth,10 43 | monitor = $screen2, 3840x2160@60, 3840x2160, 1, bitdepth,10 44 | monitor = $screen3, 3840x2160@60, 0x0, 1, bitdepth,10 45 | monitor = $screen4, 3840x2160@60, 3840x0, 1, bitdepth,10 46 | 47 | # See: https://wiki.hyprland.org/Configuring/Workspace-Rules/ 48 | # WORKSPACE MONITOR IS DEFAULT 49 | workspace=1, monitor:$screen1, default:true 50 | workspace=2, monitor:$screen2, default:true 51 | workspace=3, monitor:$screen3, default:true 52 | workspace=4, monitor:$screen4, default:true 53 | 54 | 55 | -------------------------------------------------------------------------------- /hardware.d/keyboard.conf: -------------------------------------------------------------------------------- 1 | # Follow mouse values 2 | # 0 - Cursor movement will not change focus. 3 | # 1 - Cursor movement will always change focus to the window under the cursor. 4 | # 2 - Cursor focus will be detached from keyboard focus. Clicking on a window will move keyboard focus to that window. 5 | # 3 - Cursor focus will be completely separate from keyboard focus. Clicking on a window will not change keyboard focus. 6 | 7 | 8 | # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ 9 | input { 10 | kb_layout = es 11 | follow_mouse = 1 12 | sensitivity = 0 # -1.0 - 1.0, 0 means no modification. 13 | numlock_by_default = 1 14 | touchpad { 15 | natural_scroll = no 16 | } 17 | } 18 | 19 | # Example per-device config 20 | # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more 21 | device { 22 | name = foostan Corne Mouse 23 | sensitivity = 1 24 | accel_profile = 25 | } 26 | 27 | 28 | # LEGACY FROM SWAY 29 | #input * { 30 | # # toggles through configured layouts via caps-lock 31 | # # query the available layout toggles: `localectl list-x11-keymap-options | grep grp:` 32 | # # query the available led indicators: `localectl list-x11-keymap-options | grep grp_led` 33 | # # enables caps-lock led if not the first layout selected 34 | # # regular caps-lock behavior can be reached using shift+caps-lock 35 | # xkb_options grp:caps_toggle,grp_led:caps 36 | 37 | # # query the available layouts: `localectl list-x11-keymap-layouts` 38 | # xkb_layout "es" 39 | 40 | # # query the available variants for a given layout: `localectl list-x11-keymap-variants de` 41 | # # list in the same order as the layouts - empty equals the default layout 42 | # xkb_variant "," 43 | #} 44 | 45 | #input "18003:1:foostan_Corne_Mouse" { 46 | # # Flat or adaptative 47 | # accel_profile adaptive 48 | 49 | # # Between -1.0 and 1.0 50 | # pointer_accel 1.0 51 | 52 | # #My old xorg values: calibration_matrix 8 0 0 0 5 0 0 0 1 53 | # calibration_matrix 8 0 0 0 8 0 54 | #} 55 | -------------------------------------------------------------------------------- /aliases.d/02-program-aliases.conf: -------------------------------------------------------------------------------- 1 | # PROGRAM VARIABLES 2 | # ============================================================================ 3 | 4 | # Uncomment me if the bug parsing variables with similar name is fixed upstream. 5 | # $tui_file_browser = TERMCMD="foot -a 'scratchpad'" $term_scratch_standalone -T 'Ranger - File Manager' ranger 6 | 7 | # File edition 8 | # $tui_file_browser = TERMCMD="foot -a 'scratchpad'" foot -t xterm-256color -a 'scratchpad' -T 'Ranger - FIle Manager' ranger 9 | $tui_file_browser = foot -t xterm-256color -a 'scratchpad' -T 'Yazi - FIle Manager' yazi 10 | $gui_file_browser = thunar 11 | 12 | $nvim_editor = $term -T 'NVIM - Editor' nvim -S ~/.vim_runtime/temp_dirs/sessions/meta-editor.vim 13 | $nvim_backlog = $term -T 'NVIM - Backlog' nvim -S ~/.vim_runtime/temp_dirs/sessions/meta-backlogs.vim 14 | 15 | # No need no use sessions anymore, we have an automated session manager 16 | $nvim = $term -T 'NVIM - Editor' nvim 17 | 18 | # system aliases 19 | $calc = wofi-calc 20 | $weather = $term_scratch -T 'Weather' weather 21 | $backup_to_cloud = $term_scratch -T 'Backup to cloud' ~/tweaks/sync-backup-to-cloud.sh 22 | $update_packages = $term_scratch -T 'Updating packages...' update-packages 23 | $update_mirrors = $term_scratch -T "Updating mirrors..." update-mirrors 24 | $chatgpt = $term_scratch -T "ChatGPT" chatgpt 25 | $lcg = $term_scratch -T "Clg" clg 26 | $help_keyboard = $term_scratch -T 'CRKBD manual' nvim -m ~/workspaces/git-forks/keyboards/qmk_firmware/keyboards/crkbd/keymaps/zeioth_trackball_right/README.md 27 | $help_nvim = $term_scratch -T 'NVIM Manual' nvim -m ~/workspaces/git-forks/keyboards/qmk_firmware/keyboards/crkbd/keymaps/zeioth_trackball_right/VIM-MANUAL.md 28 | 29 | # swayr aliases 30 | $swayr-wintab = env RUST_BACKTRACE=1 swayr switch-workspace-or-window >> /tmp/swayr.log 2>&1 31 | $swayr-xkill = env RUST_BACKTRACE=1 swayr quit-window -k > /tmp/swayr.log 2>&1 32 | $swayr-next = env RUST_BACKTRACE=1 swayr next-window >> /tmp/swayr.log 2>&2 33 | $swayr-prev = env RUST_BACKTRACE=1 swayr prev-window >> /tmp/swayr.log 2>&2 34 | $swayrd = env RUST_BACKTRACE=1 swayrd > /tmp/swayrd.log 2>&1" 35 | 36 | # extra system utils 37 | $corectrl = corectrl 38 | -------------------------------------------------------------------------------- /aliases.d/01-system-aliases.conf: -------------------------------------------------------------------------------- 1 | # dbus docs: https://wiki.archlinux.org/title/Systemd/User#Environment_variables 2 | # flatpak docs: https://www.reddit.com/r/flatpak/comments/131qsvf/passing_env_vars_bottles_ignores_flatpak_override/ 3 | # This is necessary for them to apply the themes to hyprland-share-pickr. 4 | 5 | 6 | # SYSTEM VARIABLES 7 | # ============================================================================ 8 | 9 | # Mod key 10 | $mod = SUPER 11 | 12 | # Terminal emulator 13 | $term = ENABLE_VKBASALT=1 footclient -t xterm-256color 14 | $term_scratch = ENABLE_VKBASALT=1 footclient -t xterm-256color -a scratchpad 15 | $term_scratch_standalone = ENABLE_VKBASALT=1 foot -a scratchpad 16 | $tmux = ENABLE_VKBASALT=1 foot-tmux 17 | $foot_server = ENABLE_VKBASALT=1 foot --server 18 | 19 | # Displays 20 | $screen1 = DP-3 21 | $screen2 = DP-2 22 | $screen3 = DP-1 23 | $screen4 = HDMI-A-1 24 | 25 | # Launcher 26 | $launcher = wofi -p run 27 | 28 | # Task manager 29 | $task_killer = pkill -9 fkill; $term_scratch -T "Task Killer - fkill" fzf-kill 30 | 31 | # Notification daemon configuration 32 | $notifications = mako 33 | 34 | 35 | # Widgets - Note: A widget cannot leave its display, but you can create many. 36 | $widgets = hyprwidgets 37 | 38 | 39 | # Locking 40 | # Currently callig a shell script from bin because atm hyprctl 41 | # dispatch exec cannot parse the command correctly. 42 | $locking = hyprlock 43 | 44 | # Idle configuration → [requires sway-audio-idle-inhibit] 45 | $idle = hypridle 46 | $idle_audio_inhibit = sway-audio-idle-inhibit 47 | 48 | # Volume (microphone) 49 | $source_volume = pactl get-source-volume @DEFAULT_SOURCE@ | grep '^Volume:' | cut -d / -f 2 | tr -d ' ' | sed 's/%//' 50 | $sink_microphone_volume_mute = pactl get-source-mute @DEFAULT_SOURCE@ | sed -En "/no/ s/.*/$($source_volume)/p; /yes/ s/.*/0/p" 51 | 52 | # Other system artifacts 53 | $systemctl_env = systemctl --user import-environment 54 | $dbus_env = dbus-update-activation-environment --systemd --all 55 | $flatpak_env = flatpak override -u 56 | $gnome_polkit = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 57 | $swayd = env RUST_BACKTRACE=1 swayrd > /tmp/swayrd.log 2>&1 58 | $update_mirrors = update_mirrors 59 | $sunset = ~/.local/bin/sunset.sh on 60 | $swork_style = pkill sworkstyle; sworkstyle &> /tmp/sworkstyle.log 61 | $wl_paste_polling = wl-paste --watch cliphist store # → [cliphist] 62 | $spice_vdagent = spice-vdagent # → Used by qemu to share clipboard on X systems. 63 | $wallpapers = hyprpaper 64 | $clipboard_open = cliphist list | wofi --show dmenu -p clipboard | cliphist decode | wl-copy; pkill -RTMIN+9 waybar 65 | 66 | # workspace name (to display on waybar) 67 | $ws1 = 1 68 | $ws2 = 2 69 | $ws3 = 3 70 | $ws4 = 4 71 | $ws5 = 5 72 | $ws6 = 6 73 | $ws7 = 7 74 | $ws8 = 8 75 | -------------------------------------------------------------------------------- /config.d/00-theming.conf: -------------------------------------------------------------------------------- 1 | # Definitions files: 2 | # ../aliases.d/00-themeing-aliases.conf 3 | 4 | 5 | # HYPRLAND ENV VARS 6 | # ================================================ 7 | # Clarification: 8 | # I'm also defining them on my .profile 9 | # beause I want them to affect all my desktop environments. 10 | 11 | # env = QT_QPA_PLATFORM,wayland 12 | # env = QT_STYLE_OVERRIDE,kvantum 13 | # env = QT_SCALE_FACTOR,2.6 14 | # env = ELM_SCALE,2.6 15 | # env = GDK_SCALE,2.6 16 | # env = SAL_USE_VCLPLUGIN,gtk3 17 | 18 | # fallback xcursor 19 | env = XCURSOR_THEME,$cursor_theme 20 | env = XCURSOR_SIZE,$cursor_size 21 | 22 | # hyprland cursor 23 | env = HYPRCURSOR_THEME,$cursor_theme 24 | env = HYPRCURSOR_SIZE,$cursor_size 25 | 26 | 27 | 28 | # GTK THEME 29 | # ================================================ 30 | # This is the only place where you need to set GTK scaling 31 | $gnome-schema = org.gnome.desktop.interface 32 | exec=gsettings set $gnome-schema gtk-theme $system_theme 33 | exec=gsettings set $gnome-schema icon-theme $system_icons 34 | exec=gsettings set org.gnome.desktop.interface text-scaling-factor $system_dpi_scaling_factor 35 | exec=gsettings set $gnome-schema cursor-theme $cursor_theme 36 | exec=gsettings set org.gnome.desktop.interface cursor-size $cursor_size 37 | 38 | 39 | # MOUSE THEME AND SIZE 40 | # ================================================ 41 | exec-once=hyprctl setcursor $cursor_theme $cursor_size 42 | 43 | 44 | # WINDOWS AND BORDERS 45 | # ================================================ 46 | general { 47 | layout = dwindle 48 | 49 | # Cursor 50 | no_focus_fallback = true 51 | 52 | # Gaps 53 | gaps_in = 5 54 | gaps_out = 5 55 | 56 | # Borders 57 | border_size = 2 58 | col.active_border = 0xff4477ff 59 | col.inactive_border = 0xff2f343f 60 | 61 | # Resize 62 | resize_on_border = false 63 | hover_icon_on_border = false 64 | 65 | # Allow tearing (you must add a window rule to the window to allow tearing) 66 | allow_tearing = false 67 | } 68 | 69 | cursor { 70 | inactive_timeout = 900 # Hide the cursor after n ms (also works on screenlock) 71 | no_warps = false # Never move the cursor automatically 72 | } 73 | 74 | ecosystem { 75 | no_donation_nag = true 76 | } 77 | 78 | misc { 79 | # Allow windows to steal focus - (only xorg apps currently) 80 | focus_on_activate = false 81 | 82 | # Enable if you use personalized wallpapers 83 | disable_hyprland_logo = true 84 | } 85 | 86 | # VISUAL EFFECTS 87 | # ================================================ 88 | 89 | # See: https://wiki.hyprland.org/Configuring/Variables 90 | decoration { 91 | 92 | # Round borders 93 | rounding = 10 94 | 95 | # Shadow 96 | shadow { 97 | enabled = true 98 | range = 4 99 | render_power = 3 100 | color = rgba(1a1a1aee) 101 | } 102 | 103 | # Blur 104 | blur { 105 | enabled = false 106 | new_optimizations = true 107 | size = 3 108 | passes = 1 109 | } 110 | } 111 | 112 | # See: https://wiki.hyprland.org/Configuring/Animations 113 | animations { 114 | enabled = yes 115 | 116 | # BEZIERS NAME X0 Y0 X1 Y1 117 | bezier = myBezier, 0.05, 0.9, 0.1, 1.05 118 | 119 | # ANIMATION NAME ON SPEED CURVE STYLE 120 | animation = windows, 1, 2, myBezier 121 | animation = windowsOut, 1, 2, default, popin 80% 122 | animation = border, 1, 5, default 123 | animation = fadeIn, 1, 2, default 124 | animation = fadeOut, 1, 2, default 125 | animation = workspaces, 1, 6, default, fade 126 | animation = specialWorkspace, 1, 3, myBezier, slide 127 | } 128 | 129 | 130 | # LAYOUT DETAILS 131 | # ================================================ 132 | 133 | # See: https://wiki.hyprland.org/Configuring/Dwindle-Layout/ 134 | dwindle { 135 | pseudotile = yes 136 | preserve_split = yes 137 | } 138 | 139 | # See: https://wiki.hyprland.org/Configuring/Master-Layout 140 | master { 141 | new_on_top = true 142 | } 143 | 144 | # See: https://wiki.hyprland.org/Configuring/Variables 145 | gestures { 146 | workspace_swipe = off 147 | } 148 | -------------------------------------------------------------------------------- /config.d/02-window-rules.conf: -------------------------------------------------------------------------------- 1 | # You can discover a class with 'hyprctl clients' 2 | # Check the syntax on: https://wiki.hyprland.org/Configuring/Window-Rules/ 3 | 4 | 5 | # WINDOW RULES 6 | # ============================================================================ 7 | 8 | # Workspace RULE WINDOW 9 | windowrulev2 = workspace $ws1, class:^(steamwebhelper)$ 10 | windowrulev2 = tile, class:^(steamwebhelper)$ 11 | windowrulev2 = workspace $ws1, class:^(com.stremio.stremio)$ 12 | windowrulev2 = workspace $ws2, class:^(firefox)$ 13 | windowrulev2 = workspace $ws3, class:^(franz)$ 14 | windowrulev2 = workspace $ws3, class:^(thunderbird)$ 15 | windowrulev2 = workspace $ws3, class:^(spotify)$ 16 | windowrulev2 = workspace $ws3, title:^(Proton Mail)$ 17 | windowrulev2 = workspace $ws3, title:^(Proton Calendar)$ 18 | windowrulev2 = workspace $ws4, title:^(Google Tasks)$ 19 | windowrulev2 = workspace $ws4, title:^(Trello)$ 20 | windowrulev2 = workspace $ws3, class:^(com.obsproject.Studio)$ 21 | 22 | # Scratchpad RULE WINDOW 23 | windowrulev2 = float, class:^(scratchpad)$ 24 | windowrulev2 = float, class:^(pcmanfm)$ 25 | windowrulev2 = float, class:^(pcmanfm-qt)$ 26 | windowrulev2 = float, class:^(pamac-manager)$ 27 | windowrulev2 = float, class:^(thunar)$ 28 | 29 | windowrulev2 = centerwindow, class:^(scratchpad)$ 30 | windowrulev2 = centerwindow, class:^(pcmanfm)$ 31 | windowrulev2 = centerwindow, class:^(pcmanfm-qt)$ 32 | windowrulev2 = centerwindow, class:^(pamac-manager)$ 33 | windowrulev2 = centerwindow, class:^(thunar)$ 34 | 35 | # Fullscreen RULE WINDOW 36 | windowrulev2 = fullscreen, class:^(swayimg)$ 37 | windowrulev2 = fullscreen, class:^(org.gnome.Weather)$ 38 | windowrulev2 = fullscreen, title:^(weather) 39 | 40 | # Float RULE WINDOW 41 | windowrulev2 = float, class:^(pulsemixer)$ 42 | windowrulev2 = float, class:^(pavucontrol)$ 43 | windowrulev2 = float, class:^(calamares)$ 44 | windowrulev2 = float, title:^(File Transfer*)$ 45 | windowrulev2 = float, title:^(Firefox — Sharing Indicator)$ 46 | windowrulev2 = float, class:^(firefox)$,title:^(library) 47 | windowrulev2 = float, title:^(Save File)$ 48 | windowrulev2 = float, class:^(blueman-manager)$ 49 | windowrulev2 = float, class:^(thunderbird)$,title:^(.*Reminder) 50 | windowrulev2 = float, class:^(pyton3)$,title:(\Remaining (\) 51 | windowrulev2 = float, class:^(SVPManager)$ 52 | windowrulev2 = tile, class:^(file-roller)$,title:^(Archive manager) 53 | windowrulev2 = float, class:^(file-roller)$,title:^(Extract archive) 54 | 55 | windowrulev2 = centerwindow, class:^(pulsemixer)$ 56 | windowrulev2 = centerwindow, class:^(pavucontrol)$ 57 | windowrulev2 = centerwindow, class:^(calamares)$ 58 | windowrulev2 = centerwindow, title:^(File Transfer*)$ 59 | windowrulev2 = centerwindow, title:^(Firefox — Sharing Indicator)$ 60 | windowrulev2 = centerwindow, class:^(firefox)$,title:^(library) 61 | windowrulev2 = centerwindow, title:^(Save File)$ 62 | windowrulev2 = centerwindow, class:^(blueman-manager)$ 63 | windowrulev2 = centerwindow, class:^(thunderbird)$,title:^(.*Reminder) 64 | windowrulev2 = centerwindow, class:^(pyton3)$,title:(\Remaining (\) 65 | windowrulev2 = centerwindow, class:^(SVPManager)$ 66 | windowrulev2 = centerwindow, class:^(file-roller)$,title:^(Extract archive) 67 | 68 | # Tearing 69 | windowrulev2 = immediate, class:^(steam_app_1172470)$ # Apex Legends 70 | 71 | # Animation RULE WINDOW 72 | # windowrulev2 = noanim, class:^(wofi)$ 73 | # windowrulev2 = dimaround, class:^(scratchpad)$ 74 | 75 | # Layer RULE WINDOW 76 | layerrule = noanim, wofi 77 | 78 | 79 | # HOT FIXES 80 | # ============================================================================ 81 | 82 | # Fix: Steam menus dissapearing on mouseover 83 | windowrulev2 = stayfocused, title:^()$,class:^(steam)$ 84 | windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ 85 | 86 | # Fix: Steam starts in a broken position as float window 87 | windowrulev2 = tile, class:^(steam)$ 88 | windowrulev2 = fullscreen, class:^(steam)$ 89 | -------------------------------------------------------------------------------- /scripted-features/hypr-scratchpad: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Found in hyprwm community 4 | # https://github.com/hyprwm/contrib 5 | 6 | # Author: 7 | # Nikhil Singh 8 | 9 | # Variables 10 | _listing=false 11 | _menu_cmd="wofi -dmenu -i --prompt 'scratchpad'" 12 | green="\033[0;32m" 13 | red="\033[0;31m" 14 | blue="\033[0;34m" 15 | nocolor="\033[0m" 16 | 17 | check() { 18 | command -v "$1" 1>/dev/null 19 | } 20 | 21 | ok() { 22 | echo -e "[$green  $nocolor] $*" 23 | } 24 | 25 | err() { 26 | echo -e "[$red  $nocolor] $*" 27 | } 28 | 29 | optional() { 30 | echo -e "[$blue  $nocolor] $*" 31 | } 32 | 33 | notify() { 34 | # shellcheck disable=SC2015 35 | check notify-send && { 36 | notify-send "$@" 37 | } || { 38 | echo "$@" 39 | } 40 | } 41 | 42 | checkUtils() { 43 | # shellcheck disable=SC2015 44 | check sed && ok "sed" || err "sed" 45 | # shellcheck disable=SC2015 46 | check jq && ok "jq" || err "jq" 47 | # shellcheck disable=SC2015 48 | check notify-send && ok "notify-send (Optional)" || optional "notify-send (Optional)" 49 | exit 50 | } 51 | 52 | basicChecks() { 53 | check hyprctl || { 54 | notify "Seriously mate!!" "Start Hyprland before this script" 55 | exit 1 56 | } 57 | pgrep -x Hyprland &>/dev/null || { 58 | notify "Make Sure Hyprland Session is running." 59 | exit 1 60 | } 61 | } 62 | 63 | help() { 64 | cat < 76 | -l: Forces to display list even if only one window is on scratchpad. 77 | (Usefull if u don't remember which single window is at scratchpad) 78 | -t: Takes you to the scratchpad 79 | -m: Sets the menu program. e.g 'scratchpad -m "rofi -dmenu -i"' 80 | 'scratchpad -m "bemenu"' 81 | This program will be used to display list of clients present on scratchpad with there address. 82 | default is (${_menu_cmd[@]}) 83 | 84 | Usage: 85 | bind = SUPER, s, exec, /path/to/scratchpad/binary 86 | bind = SUPERSHIFT, s, exec, /path/to/scratchpad/binary -g 87 | 88 | bind = SUPERSHIFT, s, exec, /path/to/scratchpad/binary -l -g 89 | (This will give client title and make sure that choice is asked to the user) 90 | EOF 91 | } 92 | 93 | takes() { 94 | hyprctl dispatch workspace "special:scratchpad" 95 | exit 0 96 | } 97 | 98 | getBack() { 99 | _ifs="$IFS" 100 | IFS=$'\n'$'\n' 101 | 102 | if pgrep "${_menu_cmd%% *}" >/dev/null; then exit; fi # running already? → exit 103 | 104 | _current_workspace="$(hyprctl monitors -j | jq '.[] | select(.focused==true)' | jq -j '.activeWorkspace.name')" 105 | 106 | [ -z "$_current_workspace" ] && { 107 | notify "Scratchpad" "Some Error Occured while getting current workspace." 108 | exit 1 109 | } 110 | 111 | readarray -t _clients_on_spad < <(hyprctl clients -j | 112 | jq '.[] | select(.workspace.name=="special:scratchpad")' | 113 | jq -j '[.class, .title, .address] | @text' | 114 | sed -z -e 's/]/]\n/g' \ 115 | -e 's/["]//g' \ 116 | -e 's/,/ /g' \ 117 | -e 's/\[//g' \ 118 | -e 's/]//g') 119 | 120 | [ "${#_clients_on_spad[@]}" -eq 0 ] && { 121 | #notify "No Clients" "There was no client on scratchpad" 122 | exit 0 123 | } 124 | [ "${#_clients_on_spad[@]}" -eq 1 ] && { 125 | $_listing || { 126 | _selected_client="${_clients_on_spad[0]}" 127 | } 128 | } 129 | [ -z "$_selected_client" ] && _selected_client="$(echo "${_clients_on_spad[*]}" | eval "${_menu_cmd[*]}")" 130 | _address="$(echo "$_selected_client" | awk '{print $NF}')" 131 | hyprctl dispatch movetoworkspace "$_current_workspace,address:$_address" 132 | IFS="$_ifs" 133 | } 134 | 135 | send() { 136 | hyprctl dispatch movetoworkspace "special:scratchpad" 137 | } 138 | 139 | getArgs() { 140 | while [ "$#" -gt 0 ]; do 141 | case "$1" in 142 | -h | --help) 143 | help 144 | exit 0 145 | ;; 146 | -g) 147 | getBack 148 | exit 0 149 | ;; 150 | -l) 151 | _listing=true 152 | ;; 153 | -t) 154 | takes 155 | ;; 156 | -m) 157 | _menu_cmd=("$2") 158 | shift 159 | ;; 160 | -c) 161 | checkUtils 162 | ;; 163 | *) 164 | help 165 | echo "" 166 | echo "Wrong argument given" 167 | exit 1 168 | ;; 169 | esac 170 | shift 171 | done 172 | send 173 | } 174 | 175 | basicChecks 176 | getArgs "$@" 177 | -------------------------------------------------------------------------------- /modes.d/displays.conf: -------------------------------------------------------------------------------- 1 | # TODO: There is no waybar integration in hyprland, so we could 2 | # display an overlay with the instructions while the mode is active. 3 | # NOTE: Turning on/off monitors can cause waybar/hyprpaper to crash sometimes. 4 | # To ensure they keep running, we restart them after turning on/off a monitor. 5 | submap=mode_displays 6 | 7 | 8 | # MODE IMPLEMENTATION (TURN OFF) 9 | # ------------------------------------- 10 | 11 | # # One display 12 | # bind = , a, exec, hyprctl --batch "reload; keyword monitor $screen2, disable; keyword monitor $screen3, disable; keyword monitor $screen4, disable; dispatch exec pkill -9 waybar && sleep 0.1 && waybar; dispatch exec pkill -9 hyprpaper && sleep 0.1 && hyprpaper" 13 | # 14 | # # Two display 15 | # #BIND MOD KEY DISPATCHER VALUE 16 | # bind = , r, exec, hyprctl --batch "reload; keyword monitor $screen3, disable; keyword monitor $screen4, dispatch exec pkill -9 waybar && sleep 0.1 && waybar; dispatch exec pkill -9 hyprpaper && sleep 0.1 && hyprpaper" 17 | # 18 | # # Three displays 19 | # #BIND MOD KEY DISPATCHER VALUE 20 | # bind = , s, exec, hyprctl --batch "reload; keyword monitor $screen4, disable; dispatch exec pkill -9 waybar && sleep 0.1 && waybar; dispatch exec pkill -9 hyprpaper && sleep 0.1 && hyprpaper" 21 | # 22 | # # Four displays 23 | # #BIND MOD KEY DISPATCHER VALUE 24 | # bind = , t, exec, hyprctl --batch "reload; dispatch exec pkill -9 waybar && sleep 0.1 && waybar; dispatch exec pkill -9 hyprpaper && sleep 0.1 && hyprpaper" 25 | # 26 | # # Off 27 | # #BIND MOD KEY DISPATCHER VALUE 28 | # bind = , q, exec, hyprctl --batch "reload; keyword monitor $screen1, disable; keyword monitor $screen2, disable; keyword monitor $screen3, disable; keyword monitor $screen4, disable; dispatch exec pkill -9 waybar && sleep 0.1 && waybar; dispatch exec pkill -9 hyprpaper && sleep 0.1 && hyprpaper" 29 | 30 | # MODE IMPLEMENTATION (DPMS) 31 | # ------------------------------------- 32 | 33 | # One display 34 | #BIND MOD KEY DISPATCHER VALUE 35 | bind = , a, dpms, on $screen1 36 | bind = , a, dpms, off $screen2 37 | bind = , a, dpms, off $screen3 38 | bind = , a, dpms, off $screen4 39 | 40 | # Two displays 41 | #BIND MOD KEY DISPATCHER VALUE 42 | bind = , r, dpms, on $screen1 43 | bind = , r, dpms, on $screen2 44 | bind = , r, dpms, off $screen3 45 | bind = , r, dpms, off $screen4 46 | 47 | # Three displays 48 | #BIND MOD KEY DISPATCHER VALUE 49 | bind = , s, dpms, on $screen1 50 | bind = , s, dpms, on $screen2 51 | bind = , s, dpms, on $screen3 52 | bind = , s, dpms, off $screen4 53 | 54 | # Four displays 55 | #BIND MOD KEY DISPATCHER VALUE 56 | bind = , t, dpms, on $screen1 57 | bind = , t, dpms, on $screen2 58 | bind = , t, dpms, on $screen3 59 | bind = , t, dpms, on $screen4 60 | 61 | # Exit conditions 62 | #BIND MOD KEY DISPATCHER VALUE 63 | bind = , escape, submap, reset 64 | bind = , a, submap, reset 65 | bind = , r, submap, reset 66 | bind = , s, submap, reset 67 | bind = , t, submap, reset 68 | 69 | # ------------------------------------- 70 | 71 | submap=reset 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | # SWAY LEGACY (Same but it also changes hz) 83 | # ----------------------------------------- 84 | 85 | # NORMAL 86 | # ====================================================================== 87 | # This special mode is not listed: We use it for capped FPS games like 88 | # Street fighter, to get minimum latency. 89 | # $bindsym i mode "default", exec swaymsg \ 90 | # output $screen1 disable; \ 91 | # output $screen2 disable; \ 92 | # output $screen3 disable; \ 93 | # output $screen4 mode 3840x2160@59.997Hz pos 0 0 scale 1 enable; \ 94 | # output $screen5 disable; \ 95 | # output $screen6 disable 96 | 97 | # One display 98 | # $bindsym o mode "default", exec swaymsg \ 99 | # output $screen1 disable; \ 100 | # output $screen2 disable; \ 101 | # output $screen3 disable; \ 102 | # output $screen4 mode 3840x2160@70.981Hz pos 0 0 scale 1 enable; \ 103 | # output $screen5 disable; \ 104 | # output $screen6 disable 105 | 106 | # Three displays 107 | # $bindsym t mode "default", exec swaymsg \ 108 | # output $screen1 disable; \ 109 | # output $screen2 disable; \ 110 | # output $screen3 disable; \ 111 | # output $screen4 mode 3840x2160@70.981Hz pos 0 0 scale 1 enable; \ 112 | # output $screen5 mode 3840x2160@70.981Hz pos 3840 0 scale 1 enable; \ 113 | # output $screen6 mode 3840x2160@70.981Hz pos 7680 0 scale 1 enable 114 | 115 | # Six displays 116 | # $bindsym s mode "default", exec swaymsg \ 117 | # output $screen1 mode 3840x2160@70.981Hz pos 0 0 scale 1 enable; \ 118 | # output $screen2 mode 3840x2160@70.981Hz pos 3840 0 scale 1 enable; \ 119 | # output $screen3 mode 3840x2160@70.981Hz pos 7680 0 scale 1 enable; \ 120 | # output $screen4 mode 3840x2160@70.981Hz pos 0 2160 scale 1 enable; \ 121 | # output $screen5 mode 3840x2160@70.981Hz pos 3840 2160 scale 1 enable; \ 122 | # output $screen6 mode 3840x2160@70.981Hz pos 7680 2160 scale 1 enable 123 | 124 | 125 | -------------------------------------------------------------------------------- /config.d/01-keybindings.conf: -------------------------------------------------------------------------------- 1 | # More about bindings: 2 | # https://wiki.hyprland.org/Configuring/Binds/ 3 | 4 | # Definitions files: 5 | # ../aliases.d/01-system-aliases.conf 6 | # ../aliases.d/02-program-aliases.conf 7 | 8 | 9 | # SYSTEM 10 | # ============================================================================ 11 | 12 | # - Drag modifier 13 | # BIND MOD KEY DISPATCHER 14 | bindm = ALT_L, mouse:272, movewindow 15 | bindm = ALT_L, mouse:273, resizewindow 16 | 17 | # - System 18 | # BIND MOD KEY DISPATCHER VALUE 19 | bind = $mod SHIFT, q, killactive # window 20 | bind = $mod SHIFT, c, exec, pkill -9 waybar && hyprctl dispatch exec waybar && pkill -9 hyprpaper && hyprctl dispatch exec hyprpaper && hyprctl reload 21 | 22 | # - Terminal 23 | # BIND MOD KEY DISPATCHER VALUE 24 | bind = $mod, t, exec, $term_scratch 25 | bind = $mod SHIFT, t, exec, foot-tmux 26 | bind = $mod, d, exec, $launcher 27 | 28 | # - Hardware control 29 | # BIND MOD KEY DISPATCHER VALUE 30 | binde = , XF86AudioRaiseVolume, exec, volumectl -u up 31 | binde = , XF86AudioLowerVolume, exec, volumectl -u down 32 | bind = , XF86AudioMute, exec, volumectl toggle-mute 33 | bind = , XF86AudioMicMute, exec, volumectl -m toggle-mute 34 | bind = , XF86MonBrightnessUp, exec, lightctl up 35 | bind = , XF86MonBrightnessDown, exec, lightctl down 36 | bind = , XF86AudioPlay, exec, playerctl play-pause 37 | bind = , XF86AudioNext, exec, playerctl next 38 | bind = , XF86AudioPrev, exec, playerctl previous 39 | bind = , XF86Search, exec, $menu 40 | bind = , XF86PowerOff, exec, $shutdown 41 | # bind=XF86TouchpadToggle,input,type:touchpad events toggle enabled disabled # TODO: Port from sway 42 | 43 | 44 | # WORKSPACES 45 | # ============================================================================ 46 | 47 | # - Switch to workspace 48 | # Note: workspaces are asociated ot monitors on ../hardware.d/displays 49 | # BIND MOD KEY DISPATCHER VALUE 50 | bind = $mod, 1, workspace, 1 51 | bind = $mod, 2, workspace, 2 52 | bind = $mod, 5, workspace, 3 53 | bind = $mod, 6, workspace, 4 54 | 55 | # - Move focussed window to workspace 56 | # BIND MOD KEY DISPATCHER VALUE 57 | bind = $mod SHIFT, 1, movetoworkspace, 1 58 | bind = $mod SHIFT, 2, movetoworkspace, 2 59 | bind = $mod SHIFT, 5, movetoworkspace, 3 60 | bind = $mod SHIFT, 6, movetoworkspace, 4 61 | 62 | # UTILITIES 63 | # ============================================================================ 64 | # - Misc 65 | # BIND MOD KEY DISPATCHER VALUE 66 | bind = ALT, return, exec, ~/.config/tmux/new-grid.sh 67 | bind = $mod SHIFT, h, exec, $help_keyboard 68 | bind = $mod SHIFT, v, exec, $help_nvim 69 | bind = $mod CTRL, w, exec, $weather 70 | bind = $mod, F1, exec, $tui_file_browser # ranger 71 | bind = $mod, F2, exec, $gui_file_browser # thunar 72 | bind = $mod, F6, exec, $nvim_editor 73 | bind = $mod, F7, exec, $nvim_backlog 74 | bind = $mod, F8, exec, $calc 75 | bind = $mod, F10, exec, $nvim 76 | bind = $mod, F11, exec, $backup_to_cloud 77 | bind = $mod, F4, exec, $clipboard_open 78 | bind = $mod CTRL, e, exec, wofi-emoji 79 | bind = $mod CTRL, b, exec, $update_packages 80 | bind = $mod CTRL, s, exec, $chatgpt 81 | 82 | # - Swayr (Show running windows and more) 83 | # TODO: Comprueba porque no funcionan 84 | # BIND MOD KEY DISPATCHER VALUE 85 | bind = $mod SHIFT, x, exec, $task_killer 86 | bind = $mod, tab, exec, $task_killer 87 | #bind = $mod, tab, exec, $swayr-wintab 88 | #bind = $mod SHIFT, x, exec, $swayr-xkill 89 | #bind = $mod, next, exec, $swayr-next 90 | #bind = $mod, prior, exec, $swayr-prev 91 | 92 | 93 | # MODES 94 | # ============================================================================ 95 | 96 | # BIND MOD KEY DISPATCHER VALUE 97 | bind = $mod SHIFT, d, submap, mode_displays 98 | bind = $mod SHIFT, a, submap, mode_move 99 | bind = $mod , r, submap, mode_resize 100 | bind = $mod SHIFT, s, submap, mode_screenshot 101 | bind = $mod SHIFT, e, submap, mode_shutdown 102 | 103 | 104 | # SCRATCHPAD 105 | # ============================================================================ 106 | # Important: In order for hyprland scratchpad to work properly, you must create 107 | # a rule where anything going into scratchpat, becomes NOT float. 108 | 109 | # Wofi scratchpad → More powerful but requires naming terminal windows. 110 | # BIND MOD KEY DISPATCHER VALUE 111 | # bind = $mod SHIFT, minus, exec, hypr-scratchpad 112 | # bind = $mod, minus, exec, hypr-scratchpad -l -g 113 | # bind = $mod SHIFT CTRL, minus, togglespecialworkspace 114 | 115 | # Extra ws scratchpad → Less powerful but nicer. 116 | # BIND MOD KEY DISPATCHER VALUE 117 | bind = $mod SHIFT, minus, exec, hypr-fix-special 118 | bind = $mod, minus, togglespecialworkspace 119 | 120 | # LAYOUT 121 | # ============================================================================ 122 | 123 | # ## Action // Toggle floating ## 124 | bind = $mod SHIFT, space, togglefloating 125 | bind = $mod SHIFT, space, centerwindow 126 | 127 | # ## Action // Toggle fullscreen ## 128 | bind = $mod, f, fullscreen 129 | 130 | # ## Action // Toggle fullscreen across all monitors## 131 | # WIP: https://github.com/hyprwm/Hyprland/issues/1660 132 | # bind = $mod SHIFT, f, fullscreen global 133 | 134 | # ## Setting // Split windows horizontally ## 135 | # bind = $mod, b, splith 136 | 137 | # ## Setting // Split windows vertically ## 138 | # bind = $mod, v, splitv 139 | 140 | # ## Action // Switch to window stacking ## 141 | # bind = $mod, s, layout stacking 142 | 143 | # ## Action // Switch to window tabbing ## 144 | # bind = $mod, w, layout tabbed 145 | 146 | # ## Action // Toggle window splitting ## 147 | # bind = $mod, e, layout toggle split 148 | 149 | # ## Navigation // Toggle focus between tiling and floating ## 150 | # bind = $mod, space, focus mode_toggle 151 | 152 | # ## Navigation // Swap focus to the parent window ## 153 | # bind = $mod, a, focus parent 154 | 155 | # ## Quick lock 156 | bind = $mod SHIFT, l, exec, $locking 157 | 158 | 159 | # FOCUS 160 | # ============================================================================ 161 | 162 | # TODO: Migrate from sway 163 | # Navigation // Move focus // $mod + ↑ ↓ ← → ## 164 | # bind = $mod, Left focus left 165 | # bind = $mod, Down focus down 166 | # bind = $mod, Up focus up 167 | # bind = $mod, Right focus right 168 | 169 | 170 | # PROGRAM KEYBINDINGS 171 | # ============================================================================ 172 | # HOW IT WORKS 173 | # The keybindings must be defined inside the program too. 174 | # We are just passing the keybinding to the program. 175 | # WARNING: 176 | # While you use this feature, you won't be able to use the shortcuts 177 | # on anything else, not even in the program itself. So comment this 178 | # while you setup the keybindings inside the program. 179 | 180 | # BIND MOD KEY DISPATCHER VALUE 181 | bind = CTRL SHIFT, r, pass, ^(com\.obsproject\.Studio)$ 182 | bind = CTRL SHIFT, b, pass, ^(com\.obsproject\.Studio)$ 183 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------