mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 12:10:45 +02:00
Compare commits
23 Commits
06deba1909
...
laptop
| Author | SHA1 | Date | |
|---|---|---|---|
| 406609f990 | |||
| 033a5fae07 | |||
| 62254c44e3 | |||
| 325cc17e1b | |||
| dc8a82364b | |||
| bea3099e0d | |||
| 3034989c00 | |||
| 9b718e86d1 | |||
| ea28c116e1 | |||
| 93de0bbce6 | |||
| 04f6dab540 | |||
| b8287582e5 | |||
| 02a5295aef | |||
| 12ead5ae9b | |||
| 94de74e3f5 | |||
| 30de3e58ee | |||
| 141ebd6150 | |||
| 09e31ebfd8 | |||
| ba4f3f5ada | |||
| ac237ea1cc | |||
| d77c3f1689 | |||
| d9d7112ff1 | |||
| e63ab9b51c |
100
README.md
100
README.md
@@ -1,7 +1,7 @@
|
||||

|
||||

|
||||
# My even cooler than previous dotfiles!
|
||||
My dotfiles managed with [home manager](https://github.com/nix-community/home-manager)
|
||||
My dotfiles managed with [home manager](https://github.com/nix-community/home-manager), using [catppuccin mocha](https://catppuccin.com/palette/) color scheme!
|
||||
|
||||
# What's inside?
|
||||
* Ashell
|
||||
@@ -31,6 +31,7 @@ My dotfiles managed with [home manager](https://github.com/nix-community/home-ma
|
||||
* Mimeapps
|
||||
* Catppuccin
|
||||
* Home Manager
|
||||
* Obsidian
|
||||
|
||||
## Screenshot
|
||||

|
||||
@@ -77,6 +78,103 @@ You need to edit `flake.nix` to match your preferences.
|
||||
}
|
||||
```
|
||||
|
||||
# Binds
|
||||
## System & Power
|
||||
| Bind | Action |
|
||||
| :--- | :--- |
|
||||
| **SUPER + Shift + Ctrl + L** | Lock screen |
|
||||
| **SUPER + Shift + Ctrl + R** | Restart |
|
||||
| **SUPER + Shift + Ctrl + P** | Power off |
|
||||
| **SUPER + Shift + Ctrl + S** | Go to sleep |
|
||||
| **SUPER + Shift + Ctrl + M** | Logout |
|
||||
| **SUPER + V** | Show clipboard |
|
||||
| **SUPER + Alt + V** | Clear clipboard |
|
||||
|
||||
### Windows management
|
||||
| Bind | Action |
|
||||
| :--- | :--- |
|
||||
| **SUPER + Q** | Close active window |
|
||||
| **SUPER + F** | Fullscreen |
|
||||
| **SUPER + T** | Toggle floating window |
|
||||
| **SUPER + P** | Toggle pseudo layout |
|
||||
| **SUPER + S** | Toggle split / Swap with master window |
|
||||
| **SUPER + N** / **P** | Swap with next / previous window |
|
||||
| **SUPER + vim keys** | Move focus (Left / Down / Up / Right) |
|
||||
| **SUPER + Shift + vim keys** | Resize active window |
|
||||
| **SUPER + Left Mouse Button** | Move window |
|
||||
| **SUPER + Right Mouse Button**| Resize window |
|
||||
|
||||
### Workspaces
|
||||
| Bind | Action |
|
||||
| :--- | :--- |
|
||||
| **SUPER + 1-0** | Go to workspace 1-10 |
|
||||
| **SUPER + Shift + 1-0** | Move active window to workspace 1-10 |
|
||||
| **SUPER + Mouse Scroll** | Go to next/previous workspace |
|
||||
| **SUPER + Shift + Right / Left** | Move current workspace to next/previous monitor |
|
||||
| **SUPER + Tab** | Toggle scratchpad workspace |
|
||||
| **SUPER + Shift + Tab** | Move window to scratchpad |
|
||||
|
||||
### Applications
|
||||
| Bind | Action |
|
||||
| :--- | :--- |
|
||||
| **SUPER + Enter** | Open terminal |
|
||||
| **SUPER + Ctrl + Enter** | Open terminal (current workspace) |
|
||||
| **SUPER + Space** | Open app menu |
|
||||
| **SUPER + M** | Open waypaper menu |
|
||||
| **SUPER + Alt + C** | Apply OpenRGB color |
|
||||
| **SUPER + Ctrl + B** | Open/Focus web browser |
|
||||
| **SUPER + Ctrl + N** | Open/Focus notes app |
|
||||
| **SUPER + Ctrl + M** | Open/Focus music player |
|
||||
| **SUPER + Ctrl + S** | Open/Focus Signal |
|
||||
| **SUPER + Ctrl + V** | Open/quick switcher Vesktop |
|
||||
| **SUPER + Ctrl + G** | Open/Focus Steam |
|
||||
| **SUPER + Ctrl + F** | Open/Focus FreeTube |
|
||||
| **SUPER + Ctrl + X** | Open/Focus X app |
|
||||
| **SUPER + Ctrl + Shift + B** | Restart status bar |
|
||||
|
||||
### Zoom
|
||||
| Bind | Action |
|
||||
| :--- | :--- |
|
||||
| **SUPER + Alt + =** | Zoom in (+10%) |
|
||||
| **SUPER + Alt + -** | Zoom out (-10%) |
|
||||
| **SUPER + Alt + 0** | Reset zoom |
|
||||
|
||||
### Screenshots & Media
|
||||
| Bind | Action |
|
||||
| :--- | :--- |
|
||||
| **Print Screen** | Screenshot selected area |
|
||||
| **SUPER + Print Screen** | Screenshot fullscreen |
|
||||
| **Alt + Print Screen** | Screenshot active window |
|
||||
| **Pause** | Play / Pause media |
|
||||
| **SUPER + Pause** | Play / Pause Spotify |
|
||||
| **Brightness Keys** | Change screen brightness (+/- 10) |
|
||||
| **Volume Keys** | Change volume (+/- 5%) |
|
||||
| **Mic Mute Key** | Mute / Unmute microphone |
|
||||
|
||||
# Default apps
|
||||
| Type | Application |
|
||||
| :--- | :--- |
|
||||
| Web Browser | Zen Browser |
|
||||
| Terminal | kitty |
|
||||
| Notes | Obsidian |
|
||||
| Music Player | Spotify |
|
||||
| App Launcher | hyprlauncher |
|
||||
| Signal | Signal-desktop |
|
||||
| Discord Client | Vesktop |
|
||||
| YouTube Client | FreeTube |
|
||||
| Gaming Platform | Steam |
|
||||
| Screen Recording | OBS Studio |
|
||||
| Image Editor | GIMP |
|
||||
| Wallpaper Picker | Waypaper / swww |
|
||||
| Screenshot Tool | grim (capture) & satty (editor) |
|
||||
| Screen Locker | hyprlock |
|
||||
| Clipboard Manager | cliphist & wl-clipboard |
|
||||
| RGB Lighting Control | OpenRGB |
|
||||
| Audio Volume Control | pavucontrol |
|
||||
| Screen Color (Night Light) | hyprsunset |
|
||||
| Status bar | AShell |
|
||||
| Web Apps (PWAs) | Facebook, Twitter, ProtonMail |
|
||||
|
||||
---
|
||||
|
||||
I hope you'll enjoy it, if you for whatever reason want to try this random ass dotfiles found on the internet…
|
||||
|
||||
@@ -8,3 +8,5 @@ hyprsunset
|
||||
satty
|
||||
kitty
|
||||
mangohud
|
||||
brave-bin
|
||||
zen-browser-bin
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.1 MiB After Width: | Height: | Size: 6.3 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 3.7 MiB |
@@ -1,38 +0,0 @@
|
||||
outputs = { Targets = ["DP-1"]}
|
||||
position = "Bottom"
|
||||
|
||||
[modules]
|
||||
left = [ "Clock", "Workspaces" ]
|
||||
center = [ "WindowTitle" ]
|
||||
right = ["Privacy", "MediaPlayer", "SystemInfo",[ "Tray", "Settings" ] ]
|
||||
|
||||
[clock]
|
||||
format = "%H:%M | %e.%m "
|
||||
|
||||
[settings]
|
||||
remove_airplane_btn = true
|
||||
|
||||
[appearance]
|
||||
scale_factor = 1.2
|
||||
|
||||
success_color = "#a6e3a1"
|
||||
text_color = "#cdd6f4"
|
||||
|
||||
workspace_colors = [ "#fab387", "#b4befe", "#cba6f7" ]
|
||||
|
||||
[appearance.primary_color]
|
||||
base = "#fab387"
|
||||
text = "#1e1e2e"
|
||||
|
||||
[appearance.danger_color]
|
||||
base = "#f38ba8"
|
||||
weak = "#f9e2af"
|
||||
|
||||
[appearance.background_color]
|
||||
base = "#1e1e2e"
|
||||
weak = "#313244"
|
||||
strong = "#45475a"
|
||||
|
||||
[appearance.secondary_color]
|
||||
base = "#11111b"
|
||||
strong = "#1b1b25"
|
||||
@@ -1,30 +0,0 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"modules": [
|
||||
"title",
|
||||
"separator",
|
||||
"os",
|
||||
"host",
|
||||
"kernel",
|
||||
"packages",
|
||||
"separator",
|
||||
"wm",
|
||||
"shell",
|
||||
"terminal",
|
||||
"theme",
|
||||
"font",
|
||||
"locale",
|
||||
"separator",
|
||||
"display",
|
||||
"cpu",
|
||||
"gpu",
|
||||
"memory",
|
||||
"disk",
|
||||
"battery",
|
||||
"separator",
|
||||
"wifi",
|
||||
"localip",
|
||||
"break",
|
||||
"colors"
|
||||
]
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
"source": "arch_small",
|
||||
"padding": {
|
||||
"bottom": 1,
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
"separator": " ➜ ",
|
||||
},
|
||||
"modules": [
|
||||
"title",
|
||||
"kernel",
|
||||
"packages",
|
||||
"shell",
|
||||
"battery",
|
||||
{
|
||||
"type": "separator",
|
||||
"string": " • ",
|
||||
},
|
||||
"break",
|
||||
"break",
|
||||
"break"
|
||||
]
|
||||
}
|
||||
1
dotfiles/gtk-3.0/gtk.css
Normal file
1
dotfiles/gtk-3.0/gtk.css
Normal file
@@ -0,0 +1 @@
|
||||
@import 'colors.css';
|
||||
@@ -1,25 +0,0 @@
|
||||
[Settings]
|
||||
gtk-theme-name=catppuccin-mocha-maroon-standard+default
|
||||
gtk-icon-theme-name=Papirus-Dark
|
||||
gtk-font-name=Noto Sans, 10
|
||||
gtk-cursor-theme-name=default
|
||||
gtk-cursor-theme-size=32
|
||||
gtk-toolbar-style=3
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=0
|
||||
gtk-menu-images=0
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-application-prefer-dark-theme=0
|
||||
gtk-cursor-blink=true
|
||||
gtk-cursor-blink-time=1000
|
||||
gtk-decoration-layout=icon:minimize,maximize,close
|
||||
gtk-enable-animations=true
|
||||
gtk-modules=colorreload-gtk-module
|
||||
gtk-primary-button-warps-slider=true
|
||||
gtk-sound-theme-name=ocean
|
||||
gtk-xft-dpi=117964
|
||||
@@ -1,7 +0,0 @@
|
||||
[Settings]
|
||||
gtk-theme-name=catppuccin-mocha-maroon-standard+default
|
||||
gtk-icon-theme-name=Papirus-Dark
|
||||
gtk-font-name=Noto Sans, 10
|
||||
gtk-cursor-theme-name=default
|
||||
gtk-cursor-theme-size=32
|
||||
gtk-application-prefer-dark-theme=0
|
||||
@@ -1,79 +0,0 @@
|
||||
$rosewater = rgb(dc8a78)
|
||||
$rosewaterAlpha = dc8a78
|
||||
|
||||
$flamingo = rgb(dd7878)
|
||||
$flamingoAlpha = dd7878
|
||||
|
||||
$pink = rgb(ea76cb)
|
||||
$pinkAlpha = ea76cb
|
||||
|
||||
$mauve = rgb(8839ef)
|
||||
$mauveAlpha = 8839ef
|
||||
|
||||
$red = rgb(d20f39)
|
||||
$redAlpha = d20f39
|
||||
|
||||
$maroon = rgb(e64553)
|
||||
$maroonAlpha = e64553
|
||||
|
||||
$peach = rgb(fe640b)
|
||||
$peachAlpha = fe640b
|
||||
|
||||
$yellow = rgb(df8e1d)
|
||||
$yellowAlpha = df8e1d
|
||||
|
||||
$green = rgb(40a02b)
|
||||
$greenAlpha = 40a02b
|
||||
|
||||
$teal = rgb(179299)
|
||||
$tealAlpha = 179299
|
||||
|
||||
$sky = rgb(04a5e5)
|
||||
$skyAlpha = 04a5e5
|
||||
|
||||
$sapphire = rgb(209fb5)
|
||||
$sapphireAlpha = 209fb5
|
||||
|
||||
$blue = rgb(1e66f5)
|
||||
$blueAlpha = 1e66f5
|
||||
|
||||
$lavender = rgb(7287fd)
|
||||
$lavenderAlpha = 7287fd
|
||||
|
||||
$text = rgb(4c4f69)
|
||||
$textAlpha = 4c4f69
|
||||
|
||||
$subtext1 = rgb(5c5f77)
|
||||
$subtext1Alpha = 5c5f77
|
||||
|
||||
$subtext0 = rgb(6c6f85)
|
||||
$subtext0Alpha = 6c6f85
|
||||
|
||||
$overlay2 = rgb(7c7f93)
|
||||
$overlay2Alpha = 7c7f93
|
||||
|
||||
$overlay1 = rgb(8c8fa1)
|
||||
$overlay1Alpha = 8c8fa1
|
||||
|
||||
$overlay0 = rgb(9ca0b0)
|
||||
$overlay0Alpha = 9ca0b0
|
||||
|
||||
$surface2 = rgb(acb0be)
|
||||
$surface2Alpha = acb0be
|
||||
|
||||
$surface1 = rgb(bcc0cc)
|
||||
$surface1Alpha = bcc0cc
|
||||
|
||||
$surface0 = rgb(ccd0da)
|
||||
$surface0Alpha = ccd0da
|
||||
|
||||
$base = rgb(eff1f5)
|
||||
$baseAlpha = eff1f5
|
||||
|
||||
$mantle = rgb(e6e9ef)
|
||||
$mantleAlpha = e6e9ef
|
||||
|
||||
$crust = rgb(dce0e8)
|
||||
$crustAlpha = dce0e8
|
||||
|
||||
$openrgb_color = 09ce30
|
||||
@@ -1,23 +0,0 @@
|
||||
general {
|
||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||
before_sleep_cmd = hyprlock # lock before suspend.
|
||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||
}
|
||||
|
||||
|
||||
listener {
|
||||
timeout = 300 # 5min
|
||||
on-timeout = hyprlock # lock screen when timeout has passed
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = openrgb -c black
|
||||
on-resume = openrgb -c green
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
env = XCURSOR_SIZE, 32
|
||||
env = HYPRCURSOR_SIZE, 32
|
||||
env = HYPRCURSOR_THEME, theme_phinger-cursors-light
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
|
||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
$terminal = uwsm app -- kitty
|
||||
$menu = hyprlauncher
|
||||
$music_player = flatpak run com.spotify.Client
|
||||
$notes = obsidian
|
||||
$browser = zen-browser
|
||||
|
||||
input {
|
||||
kb_layout = pl
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options = caps:escape_shifted_capslock
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
left_handed = true
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
touchpad {
|
||||
natural_scroll = true
|
||||
}
|
||||
}
|
||||
|
||||
cursor {
|
||||
no_hardware_cursors = true
|
||||
inactive_timeout = 5
|
||||
warp_on_change_workspace = 1
|
||||
zoom_factor = 1.0
|
||||
hide_on_key_press = 1
|
||||
}
|
||||
|
||||
misc {
|
||||
force_default_wallpaper = 0
|
||||
disable_hyprland_logo = true
|
||||
middle_click_paste = false
|
||||
}
|
||||
|
||||
xwayland {
|
||||
force_zero_scaling = 1
|
||||
}
|
||||
|
||||
|
||||
# IMPORTS
|
||||
|
||||
source = ./colors.conf
|
||||
source = ./hyprland/binds/*
|
||||
source = ./hyprland/*
|
||||
@@ -1,12 +0,0 @@
|
||||
# Requires pactl
|
||||
bindel=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && ~/.local/bin/wp-vol.sh && paplay /usr/share/sounds/freedesktop/stereo/bell.oga
|
||||
bindel=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && ~/.local/bin/wp-vol.sh && paplay /usr/share/sounds/freedesktop/stereo/bell.oga
|
||||
bindel=, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle
|
||||
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle && ~/.local/bin/check-if-muted.sh
|
||||
|
||||
# Requires playerctl
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , Pause, exec, playerctl play-pause
|
||||
bindl = $mainMod, Pause, exec, playerctl play-pause --player spotify
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
@@ -1,2 +0,0 @@
|
||||
bind = $mainMod, V, exec, cliphist list | hyprlauncher -m | cliphist decode | wl-copy
|
||||
bind = $mainMod ALT_L, V, exec, cliphist wipe && notify-send "Clipboard" "Clipboard cleared!"
|
||||
@@ -1,12 +0,0 @@
|
||||
# Zoom
|
||||
binde = $mainMod alt, equal, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor | awk '/^float.*/ {print $2 * 1.1}')
|
||||
binde = $mainMod alt, minus, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor | awk '/^float.*/ {print $2 * 0.9}')
|
||||
bind = $mainMod alt, 0, exec, hyprctl -q keyword cursor:zoom_factor 1
|
||||
|
||||
# Brightness
|
||||
|
||||
bindel = ,XF86MonBrightnessDown, exec, hyprctl hyprsunset gamma -10
|
||||
bindel = ,XF86MonBrightnessUp, exec, hyprctl hyprsunset gamma +10
|
||||
|
||||
# Wallpaper
|
||||
bind = $mainMod, M, exec, [float] waypaper
|
||||
@@ -1,109 +0,0 @@
|
||||
# Move windows around
|
||||
|
||||
## Move focus with mainMod + vim keys
|
||||
bind = $mainMod, h, movefocus, l
|
||||
bind = $mainMod, l, movefocus, r
|
||||
bind = $mainMod, k, movefocus, u
|
||||
bind = $mainMod, j, movefocus, d
|
||||
|
||||
## Resize with mainMod + shift + vim keys
|
||||
binde = $mainMod L_SHIFT, l, resizeactive, 10 0 # right
|
||||
binde = $mainMod L_SHIFT, h, resizeactive, -10 0 # left
|
||||
binde = $mainMod L_SHIFT, k, resizeactive, 0 -10 #up
|
||||
binde = $mainMod L_SHIFT, j, resizeactive, 0 10 # down
|
||||
|
||||
## Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
## Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
## Move to different monitor
|
||||
bind = $mainMod L_SHIFT, right, exec, hyprctl dispatch movecurrentworkspacetomonitor +1
|
||||
bind = $mainMod L_SHIFT, left, exec, hyprctl dispatch movecurrentworkspacetomonitor -1
|
||||
|
||||
## Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
## Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
## Change display settings
|
||||
bindd = $mainMod, F, Make app fullscreen, fullscreen
|
||||
bindd = $mainMod, T, Toggle floating, togglefloating
|
||||
bindd = $mainMod, P, Toggle pseudo, pseudo
|
||||
bindd = $mainMod, S, Toggle split, togglesplit
|
||||
bindd = $mainMod, Q, Kill active window, killactive
|
||||
|
||||
## special workspace
|
||||
bind = $mainMod, TAB, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, TAB, movetoworkspace, special:magic
|
||||
|
||||
## master layout
|
||||
bind = $mainMod, S, layoutmsg, swapwithmaster
|
||||
bind = $mainMod, n, layoutmsg, swapnext
|
||||
bind = $mainMod, p, layoutmsg, swapprev
|
||||
|
||||
# APPS
|
||||
|
||||
## general
|
||||
|
||||
bind = $mainMod, RETURN, exec, [workspace 4] $terminal
|
||||
bind = $mainMod CONTROL_L, RETURN, exec, $terminal
|
||||
bind = $mainMod, space , exec, $menu
|
||||
bind = $mainMod ALT_L, c, exec, openrgb -c $openrgb_color # restore openrgb color
|
||||
|
||||
### messages
|
||||
bind = $mainMod Control_L, s, exec,[workspace 1] signal-desktop --password-store="kwallet6"
|
||||
bind = $mainMod Control_L, s, focuswindow, class:^(signal)$
|
||||
bind = $mainMod Control_L, s, focuswindow, title:^(signal)$
|
||||
|
||||
bind = $mainMod Control_L, v, sendshortcut, ctrl, k, class:^(vesktop)$
|
||||
bind = $mainMod Control_L, v, exec, uwsm app -- vesktop
|
||||
bind = $mainMod Control_L, v, focuswindow, class:^(vesktop)$
|
||||
|
||||
### games
|
||||
bind = $mainMod Control_L, g, exec, uwsm app -- steam
|
||||
bind = $mainMod Control_L, g, focuswindow, class:^(steam)$
|
||||
|
||||
### browser
|
||||
bind = $mainMod Control_L, b, exec, uwsm app -- $browser
|
||||
bind = $mainMod Control_L, b, focuswindow, class:^(zen)$
|
||||
|
||||
### notes
|
||||
bind = $mainMod Control_L, n, exec, [workspace 6] uwsm app -- $notes
|
||||
bind = $mainMod Control_L, n, focuswindow, class:^(obsidian)$
|
||||
|
||||
### music player
|
||||
bind = $mainMod Control_L, m, exec, [workspace 9] uwsm app -- $music_player
|
||||
|
||||
### youtube ig
|
||||
bind = $mainMod Control_L, f, exec, uwsm app -- freetube
|
||||
bind = $mainMod Control_L, f, focuswindow, class:^(freetube)$
|
||||
|
||||
### x
|
||||
bind = $mainMod Control_L, x, exec, uwsm app -- ~/.local/share/applications/x.desktop
|
||||
bind = $mainMod Control_L, x, focuswindow, class:^(chrome-x.com__-Default)$
|
||||
|
||||
## restart status bar
|
||||
bind = $mainMod CONTROL_L L_SHIFT, B, exec, killall ashell && uwsm app -- ashell
|
||||
@@ -1,5 +0,0 @@
|
||||
bind = $mainMod L_SHIFT ctrl, l, exec, hyprlock # lock
|
||||
bind = $mainMod L_SHIFT ctrl, r, exec, openrgb -c black && systemctl reboot
|
||||
bind = $mainMod L_SHIFT ctrl, p, exec, openrgb -c black && systemctl poweroff
|
||||
bind = $mainMod L_SHIFT ctrl, s, exec, openrgb -c black && pidof hyprlock || sleep 1 && systemctl sleep
|
||||
bind = $mainMod L_SHIFT ctrl, m, exec, uwsm stop
|
||||
@@ -1,3 +0,0 @@
|
||||
bindt = , PRINT, exec, ~/.local/bin/screenshot.sh region
|
||||
bindt = $mainMod, PRINT, exec, ~/.local/bin/screenshot.sh fullscreen
|
||||
bindt = alt_l, PRINT, exec, ~/.local/bin/screenshot.sh window
|
||||
@@ -1,25 +0,0 @@
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||
decoration {
|
||||
rounding = 1
|
||||
rounding_power = 2
|
||||
|
||||
# Change transparency of focused and unfocused windows
|
||||
active_opacity = 1.0
|
||||
inactive_opacity = 1.0
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
range = 1
|
||||
render_power = 1
|
||||
color = $overlay0
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||
blur {
|
||||
enabled = true
|
||||
size = 1
|
||||
passes = 1
|
||||
|
||||
vibrancy = 0.1696
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
exec-once = wl-paste --type text --watch cliphist store
|
||||
exec-once = wl-paste --type image --watch cliphist store
|
||||
|
||||
exec-once = uwsm app -- kdeconnect-indicator
|
||||
exec-once = uwsm app -- ashell
|
||||
exec-once = swww-daemon
|
||||
exec-once = openrgb -c $openrgb_color
|
||||
@@ -1,47 +0,0 @@
|
||||
general {
|
||||
gaps_in = 4
|
||||
gaps_out = 6
|
||||
|
||||
border_size = 4
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||
col.active_border = $blue $sky
|
||||
col.inactive_border = $overlay1
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = false
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes, please :)
|
||||
|
||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = easeOutQuint,0.23,1,0.32,1
|
||||
bezier = easeInOutCubic,0.65,0.05,0.36,1
|
||||
bezier = linear,0,0,1,1
|
||||
bezier = almostLinear,0.5,0.5,0.75,1.0
|
||||
bezier = quick,0.15,0,0.1,1
|
||||
|
||||
animation = global, 1, 7, default
|
||||
animation = border, 1, 3.39, easeOutQuint
|
||||
animation = windows, 1, 2.79, easeOutQuint
|
||||
animation = windowsIn, 1, 2.1, easeOutQuint, popin 87%
|
||||
animation = windowsOut, 1, 1, linear, popin 87%
|
||||
animation = fadeIn, 1, 1.4, almostLinear
|
||||
animation = fadeOut, 1, 1.2, almostLinear
|
||||
animation = fade, 1, 3.03, quick
|
||||
animation = layers, 1, 2, easeOutQuint
|
||||
animation = layersIn, 1, 2, easeOutQuint, fade
|
||||
animation = layersOut, 1, 1, linear, fade
|
||||
animation = fadeLayersIn, 1, 1.4, almostLinear
|
||||
animation = fadeLayersOut, 1, 1.1, almostLinear
|
||||
animation = workspaces, 1, 1.4, quick, slidevert
|
||||
animation = workspacesIn, 1, 0.5, quick, slidevert
|
||||
animation = workspacesOut, 1, 0.5, quick, slidevert
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
dwindle {
|
||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # You probably want this
|
||||
}
|
||||
|
||||
master {
|
||||
new_status = slave
|
||||
allow_small_split = true
|
||||
orientation = left
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
monitorv2 {
|
||||
output = DP-1
|
||||
mode = 2560x1440@180.06
|
||||
|
||||
position = 0x0
|
||||
scale = 1
|
||||
vrr = 1
|
||||
|
||||
supports_wide_color = 1
|
||||
bitdepth = 10
|
||||
sdr_min_luminance = 0.005
|
||||
sdr_max_luminance = 220
|
||||
cm = hdr
|
||||
supports_hdr = 1
|
||||
}
|
||||
|
||||
monitorv2 {
|
||||
output = DP-2
|
||||
mode = 1920x1080@144
|
||||
position = auto-left
|
||||
vrr = 1
|
||||
scale = 1.0
|
||||
}
|
||||
|
||||
monitorv2 {
|
||||
output = HDMI-A-2
|
||||
mode = highres
|
||||
position = auto-up
|
||||
scale = 1
|
||||
}
|
||||
|
||||
monitorv2 {
|
||||
output =
|
||||
position = auto-right
|
||||
scale = 1
|
||||
}
|
||||
|
||||
quirks {
|
||||
prefer_hdr = 1
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
windowrule {
|
||||
name = pavucontrol-float
|
||||
match:class = ^(org.pulseaudio.pavucontrol)$
|
||||
float = 1
|
||||
size = 80% 60%
|
||||
stay_focused = 1
|
||||
center = 1
|
||||
pin = 1
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = share-picker-float
|
||||
match:class = ^(hyprland-share-picker)$
|
||||
float = 1
|
||||
center = 1
|
||||
pin = 1
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = steam-friends-list
|
||||
match:title = ^(Lista znajomych)$
|
||||
float = 1
|
||||
center = 1
|
||||
size = 40% 60%
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = vesktop-dont-focus-pls
|
||||
match:class = ^(vesktop)$
|
||||
no_initial_focus = 1
|
||||
focus_on_activate = 0
|
||||
render_unfocused = 1
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = xdg-desktop-portal-gtk
|
||||
match:class = ^(xdg-desktop-portal-gtk)$
|
||||
float = 1
|
||||
center = 1
|
||||
size = 55% 50%
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = picture-in-picture
|
||||
match:title = ^(Obraz w obrazie)$
|
||||
pseudo = 1
|
||||
no_initial_focus = 1
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = login-google-zen
|
||||
match:title = ^(Logowanie – Konta Google — Zen Browser)$
|
||||
float = 1
|
||||
center = 1
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = prism-launcher
|
||||
match:class = ^(org.prismlauncher.PrismLauncher)$
|
||||
workspace = 3
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = gamescope
|
||||
match:class = ^(gamescope)$
|
||||
workspace = 3
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
ecosystem {
|
||||
enforce_permissions = true
|
||||
}
|
||||
|
||||
permission = /usr/bin/grim, screencopy, allow
|
||||
permission = /usr/bin/hyprlock, screencopy, allow
|
||||
permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
||||
@@ -1,54 +0,0 @@
|
||||
workspace = 1, monitor:DP-2
|
||||
workspace = 2, monitor:DP-1
|
||||
workspace = 3, monitor:DP-1
|
||||
workspace = 4, monitor:DP-1
|
||||
workspace = 5, monitor:DP-1
|
||||
workspace = 6, monitor:DP-1
|
||||
workspace = 7, monitor:HDMI-A-2
|
||||
workspace = 9, monitor:DP-2
|
||||
workspace = 10, monitor:DP-2
|
||||
|
||||
# smart gaps or smt
|
||||
workspace = w[tv1], gapsout:0, gapsin:0
|
||||
workspace = f[1], gapsout:0, gapsin:0
|
||||
windowrule = border_size 0, match:float 0, match:workspace w[tv1]
|
||||
windowrule = rounding 0, match:float 0, match:workspace w[tv1]
|
||||
windowrule = border_size 0, match:float 0, match:workspace f[1]
|
||||
windowrule = rounding 0, match:float 0, match:workspace f[1]
|
||||
|
||||
# assign windows to workspaces
|
||||
|
||||
# Workspace 1
|
||||
windowrule = match:class ^(signal)$, workspace 1
|
||||
windowrule = match:class ^(vesktop)$, workspace 1 silent
|
||||
windowrule = match:class ^(chrome-facebook.com__-Default)$, workspace 1
|
||||
|
||||
# Workspace 2
|
||||
windowrule = match:class ^(zen)$, workspace 2
|
||||
windowrule = match:class ^(com.github.IsmaelMartinez.teams_for_linux)$, workspace 2
|
||||
windowrule = match:class ^(FreeTube)$, workspace 2
|
||||
windowrule = match:class ^(chrome-x.com__-Default)$, workspace 2
|
||||
windowrule = match:class ^(chrome-www.inoreader.com__all_articles-Default)$, workspace 2
|
||||
windowrule = match:class ^(chrome-mail.proton.me__u_0_inbox.com-Default)$, workspace 2
|
||||
windowrule = match:class ^(chrome-app.tuta.com__-Default)$, workspace 2
|
||||
|
||||
# Workspace 3
|
||||
windowrule = match:class ^(steam)$, workspace 3 silent
|
||||
windowrule = match:class ^(heroic)$, workspace 3
|
||||
windowrule = match:class ^(net.lutris.Lutris)$, workspace 3
|
||||
windowrule = match:class ^(rpcs3)$, workspace 3
|
||||
|
||||
# Workspace 5
|
||||
windowrule = match:class ^(winboat)$, workspace 5
|
||||
|
||||
# Workspace 6
|
||||
windowrule = match:class ^(obsidian)$, workspace 6
|
||||
|
||||
# Workspace 8
|
||||
windowrule = match:class ^(gimp)$, workspace 8
|
||||
|
||||
# Workspace 9
|
||||
windowrule = match:class .*potify, workspace 9 silent
|
||||
|
||||
# Workspace 10
|
||||
windowrule = match:class ^(com.obsproject.Studio)$, workspace 10
|
||||
@@ -1 +0,0 @@
|
||||
desktop_launch_prefix = uwsm app --
|
||||
@@ -1,106 +0,0 @@
|
||||
# sample hyprlock.conf
|
||||
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
|
||||
#
|
||||
# rendered text in all widgets supports pango markup (e.g. <b> or <i> tags)
|
||||
# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks
|
||||
#
|
||||
# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace
|
||||
#
|
||||
# you can get started by copying this config to ~/.config/hypr/hyprlock.conf
|
||||
#
|
||||
|
||||
$font = Monospace
|
||||
|
||||
general {
|
||||
hide_cursor = false
|
||||
}
|
||||
|
||||
# uncomment to enable fingerprint authentication
|
||||
# auth {
|
||||
# fingerprint {
|
||||
# enabled = true
|
||||
# ready_message = Scan fingerprint to unlock
|
||||
# present_message = Scanning...
|
||||
# retry_delay = 250 # in milliseconds
|
||||
# }
|
||||
# }
|
||||
|
||||
animations {
|
||||
enabled = true
|
||||
bezier = linear, 1, 1, 0, 0
|
||||
animation = fadeIn, 1, 5, linear
|
||||
animation = fadeOut, 1, 5, linear
|
||||
animation = inputFieldDots, 1, 2, linear
|
||||
}
|
||||
|
||||
background {
|
||||
monitor =
|
||||
path = screenshot
|
||||
blur_passes = 3
|
||||
}
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 20%, 5%
|
||||
outline_thickness = 3
|
||||
inner_color = rgba(0, 0, 0, 0.0) # no fill
|
||||
|
||||
outer_color = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||
check_color = rgba(00ff99ee) rgba(ff6633ee) 120deg
|
||||
fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg
|
||||
|
||||
font_color = rgb(143, 143, 143)
|
||||
fade_on_empty = false
|
||||
rounding = 15
|
||||
|
||||
font_family = $font
|
||||
placeholder_text = Input password...
|
||||
fail_text = $PAMFAIL
|
||||
|
||||
# uncomment to use a letter instead of a dot to indicate the typed password
|
||||
# dots_text_format = *
|
||||
# dots_size = 0.4
|
||||
dots_spacing = 0.3
|
||||
|
||||
# uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator)
|
||||
# hide_input = true
|
||||
|
||||
position = 0, -20
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# TIME
|
||||
label {
|
||||
monitor =
|
||||
text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution
|
||||
font_size = 90
|
||||
font_family = $font
|
||||
|
||||
position = -30, 0
|
||||
halign = right
|
||||
valign = top
|
||||
}
|
||||
|
||||
# DATE
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds
|
||||
font_size = 25
|
||||
font_family = $font
|
||||
|
||||
position = -30, -150
|
||||
halign = right
|
||||
valign = top
|
||||
}
|
||||
|
||||
label {
|
||||
monitor =
|
||||
text = $LAYOUT[en,ru]
|
||||
font_size = 24
|
||||
onclick = hyprctl switchxkblayout all next
|
||||
|
||||
position = 250, -20
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
preload = /home/szymon/Obrazy/tapety/sfw/forrest.png
|
||||
wallpaper = ,/home/szymon/Obrazy/tapety/sfw/forrest.png
|
||||
splash = off
|
||||
ipc = on
|
||||
@@ -1,13 +0,0 @@
|
||||
max-gamma = 150
|
||||
|
||||
profile {
|
||||
time = 7:00
|
||||
identity = true
|
||||
}
|
||||
|
||||
profile {
|
||||
time = 21:00
|
||||
identity = false
|
||||
temperature = 4500
|
||||
gamma = 0.8
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,80 +0,0 @@
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Catppuccin Kitty Mocha
|
||||
## author: Catppuccin Org
|
||||
## license: MIT
|
||||
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf
|
||||
## blurb: Soothing pastel theme for the high-spirited!
|
||||
|
||||
|
||||
|
||||
# The basic colors
|
||||
foreground #cdd6f4
|
||||
background #1e1e2e
|
||||
selection_foreground #1e1e2e
|
||||
selection_background #f5e0dc
|
||||
|
||||
# Cursor colors
|
||||
cursor #f5e0dc
|
||||
cursor_text_color #1e1e2e
|
||||
|
||||
# URL underline color when hovering with mouse
|
||||
url_color #f5e0dc
|
||||
|
||||
# Kitty window border colors
|
||||
active_border_color #b4befe
|
||||
inactive_border_color #6c7086
|
||||
bell_border_color #f9e2af
|
||||
|
||||
# OS Window titlebar colors
|
||||
wayland_titlebar_color system
|
||||
macos_titlebar_color system
|
||||
|
||||
# Tab bar colors
|
||||
active_tab_foreground #11111b
|
||||
active_tab_background #cba6f7
|
||||
inactive_tab_foreground #cdd6f4
|
||||
inactive_tab_background #181825
|
||||
tab_bar_background #11111b
|
||||
|
||||
# Colors for marks (marked text in the terminal)
|
||||
mark1_foreground #1e1e2e
|
||||
mark1_background #b4befe
|
||||
mark2_foreground #1e1e2e
|
||||
mark2_background #cba6f7
|
||||
mark3_foreground #1e1e2e
|
||||
mark3_background #74c7ec
|
||||
|
||||
# The 16 terminal colors
|
||||
|
||||
# black
|
||||
color0 #45475a
|
||||
color8 #585b70
|
||||
|
||||
# red
|
||||
color1 #f38ba8
|
||||
color9 #f38ba8
|
||||
|
||||
# green
|
||||
color2 #a6e3a1
|
||||
color10 #a6e3a1
|
||||
|
||||
# yellow
|
||||
color3 #f9e2af
|
||||
color11 #f9e2af
|
||||
|
||||
# blue
|
||||
color4 #89b4fa
|
||||
color12 #89b4fa
|
||||
|
||||
# magenta
|
||||
color5 #f5c2e7
|
||||
color13 #f5c2e7
|
||||
|
||||
# cyan
|
||||
color6 #94e2d5
|
||||
color14 #94e2d5
|
||||
|
||||
# white
|
||||
color7 #bac2de
|
||||
color15 #a6adc8
|
||||
@@ -1,80 +0,0 @@
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Catppuccin Kitty Latte
|
||||
## author: Catppuccin Org
|
||||
## license: MIT
|
||||
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/latte.conf
|
||||
## blurb: Soothing pastel theme for the high-spirited!
|
||||
|
||||
|
||||
|
||||
# The basic colors
|
||||
foreground #3b3e55
|
||||
background #e0e2e8
|
||||
selection_foreground #eff1f5
|
||||
selection_background #dc8a78
|
||||
|
||||
# Cursor colors
|
||||
cursor #dc8a78
|
||||
cursor_text_color #eff1f5
|
||||
|
||||
# URL underline color when hovering with mouse
|
||||
url_color #dc8a78
|
||||
|
||||
# Kitty window border colors
|
||||
active_border_color #7287fd
|
||||
inactive_border_color #9ca0b0
|
||||
bell_border_color #df8e1d
|
||||
|
||||
# OS Window titlebar colors
|
||||
wayland_titlebar_color system
|
||||
macos_titlebar_color system
|
||||
|
||||
# Tab bar colors
|
||||
active_tab_foreground #eff1f5
|
||||
active_tab_background #8839ef
|
||||
inactive_tab_foreground #4c4f69
|
||||
inactive_tab_background #9ca0b0
|
||||
tab_bar_background #bcc0cc
|
||||
|
||||
# Colors for marks (marked text in the terminal)
|
||||
mark1_foreground #eff1f5
|
||||
mark1_background #7287fd
|
||||
mark2_foreground #eff1f5
|
||||
mark2_background #8839ef
|
||||
mark3_foreground #eff1f5
|
||||
mark3_background #209fb5
|
||||
|
||||
# The 16 terminal colors
|
||||
|
||||
# black
|
||||
color0 #5c5f77
|
||||
color8 #6c6f85
|
||||
|
||||
# red
|
||||
color1 #d20f39
|
||||
color9 #d20f39
|
||||
|
||||
# green
|
||||
color2 #40a02b
|
||||
color10 #40a02b
|
||||
|
||||
# yellow
|
||||
color3 #df8e1d
|
||||
color11 #df8e1d
|
||||
|
||||
# blue
|
||||
color4 #1e66f5
|
||||
color12 #1e66f5
|
||||
|
||||
# magenta
|
||||
color5 #ea76cb
|
||||
color13 #ea76cb
|
||||
|
||||
# cyan
|
||||
color6 #179299
|
||||
color14 #179299
|
||||
|
||||
# white
|
||||
color7 #acb0be
|
||||
color15 #bcc0cc
|
||||
@@ -1,79 +0,0 @@
|
||||
################### File Generated by Goverlay ###################
|
||||
legacy_layout=false
|
||||
|
||||
|
||||
background_alpha=0.6
|
||||
round_corners=10
|
||||
background_alpha=0.6
|
||||
background_color=000000
|
||||
|
||||
font_size=24
|
||||
text_color=C0C0C0
|
||||
position=top-right
|
||||
|
||||
no_display
|
||||
hud_compact
|
||||
pci_dev=0:03:00.0
|
||||
table_columns=2
|
||||
gpu_text=GPU
|
||||
gpu_stats
|
||||
gpu_voltage
|
||||
gpu_core_clock
|
||||
gpu_mem_clock
|
||||
gpu_temp
|
||||
gpu_mem_temp
|
||||
gpu_fan
|
||||
gpu_power
|
||||
gpu_color=F1003B
|
||||
cpu_text=CPU
|
||||
cpu_stats
|
||||
|
||||
cpu_load_change
|
||||
cpu_load_value=50,90
|
||||
cpu_load_color=FFFFFF,FFAA7F,CC0000
|
||||
cpu_mhz
|
||||
cpu_temp
|
||||
cpu_power
|
||||
cpu_color=FA8000
|
||||
io_stats
|
||||
io_read
|
||||
io_write
|
||||
io_color=C0C0C0
|
||||
vram
|
||||
vram_color=F1003B
|
||||
vram_color=F1003B
|
||||
ram
|
||||
ram_color=FA8000
|
||||
fps
|
||||
fps_metrics=avg,0.01
|
||||
gpu_name
|
||||
frame_timing
|
||||
frametime_color=FA8000
|
||||
fps_limit_method=late
|
||||
toggle_fps_limit=Shift_L+F1
|
||||
|
||||
fps_limit=0
|
||||
resolution
|
||||
gamemode
|
||||
custom_text=-
|
||||
exec=cat /home/szymon/.config/goverlay/distro
|
||||
custom_text=-
|
||||
exec=uname -r
|
||||
fps_color_change
|
||||
fps_color=B22222,FDFD09,39F900
|
||||
fps_value=30,60
|
||||
#offset=0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
output_folder=/home/szymon
|
||||
log_duration=30
|
||||
autostart_log=0
|
||||
log_interval=100
|
||||
toggle_logging=Shift_L+F2
|
||||
|
||||
blacklist=pamac-manager,lact,ghb,bitwig-studio,ptyxis,yumex
|
||||
@@ -1,49 +0,0 @@
|
||||
[Added Associations]
|
||||
application/x-extension-htm=zen-beta.desktop;zen.desktop;userapp-Zen-2KDM82.desktop;
|
||||
application/x-extension-html=zen-beta.desktop;zen.desktop;userapp-Zen-2KDM82.desktop;
|
||||
application/x-extension-shtml=zen-beta.desktop;zen.desktop;userapp-Zen-2KDM82.desktop;
|
||||
application/x-extension-xht=zen-beta.desktop;zen.desktop;userapp-Zen-2KDM82.desktop;
|
||||
application/x-extension-xhtml=zen-beta.desktop;zen.desktop;userapp-Zen-2KDM82.desktop;
|
||||
application/xhtml+xml=zen-beta.desktop;zen.desktop;userapp-Zen-2KDM82.desktop;
|
||||
image/png=feh-2.desktop;
|
||||
text/html=zen-beta.desktop;zen.desktop;userapp-Zen-2KDM82.desktop;
|
||||
x-scheme-handler/chrome=zen.desktop;userapp-Zen-2KDM82.desktop;zen-beta.desktop;
|
||||
x-scheme-handler/http=zen.desktop;userapp-Zen-2KDM82.desktop;zen-beta.desktop;
|
||||
x-scheme-handler/https=zen.desktop;userapp-Zen-2KDM82.desktop;zen-beta.desktop;
|
||||
|
||||
[Default Applications]
|
||||
application/pdf=org.pwmt.zathura.desktop
|
||||
application/x-extension-htm=zen.desktop
|
||||
application/x-extension-html=zen.desktop
|
||||
application/x-extension-shtml=zen.desktop
|
||||
application/x-extension-xht=zen.desktop
|
||||
application/x-extension-xhtml=zen.desktop
|
||||
application/xhtml+xml=zen.desktop
|
||||
audio/*=mpv.desktop
|
||||
audio/aac=mpv.desktop
|
||||
audio/flac=mpv.desktop
|
||||
audio/hx-aac-adts=mpv.desktop
|
||||
audio/mpeg=mpv.desktop
|
||||
audio/ogg=mpv.desktop
|
||||
audio/wav=mpv.desktop
|
||||
audio/x-hx-aac-adts=mpv.desktop
|
||||
image/*=org.kde.koko.desktop
|
||||
image/bmp=feh.desktop
|
||||
image/gif=org.kde.koko.desktop
|
||||
image/jpeg=org.kde.koko.desktop
|
||||
image/jpg=org.kde.koko.desktop
|
||||
image/png=feh-2.desktop;
|
||||
image/svg+xml=feh.desktop
|
||||
image/webp=org.kde.koko.desktop
|
||||
text/html=zen.desktop
|
||||
x-scheme-handler/chrome=zen.desktop
|
||||
x-scheme-handler/discord=vesktop.desktop
|
||||
x-scheme-handler/freetube=FreeTube.desktop
|
||||
x-scheme-handler/http=zen.desktop
|
||||
x-scheme-handler/https=zen.desktop
|
||||
x-scheme-handler/nxm=ModOrganizer-steamtinkerlaunch-dl.desktop
|
||||
x-scheme-handler/nxm-protocol=ModOrganizer-steamtinkerlaunch-dl.desktop
|
||||
x-scheme-handler/proton-inbox=Proton Mail.desktop
|
||||
x-scheme-handler/sgnl=signal-desktop.desktop
|
||||
x-scheme-handler/signalcaptcha=signal-desktop.desktop
|
||||
x-scheme-handler/tuta=tutanota-desktop.desktop
|
||||
@@ -1,3 +0,0 @@
|
||||
require("config.lazy")
|
||||
require("config.set")
|
||||
require("config.remaps")
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "dae4f5aaa3574bd0c2b9dd20fb9542a02c10471c" },
|
||||
"catppuccin": { "branch": "main", "commit": "0a5de4da015a175f416d6ef1eda84661623e0500" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "d126061b624e0af6c3a556428712dd4d4194ec6d" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
|
||||
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "9f3c6dd7868bcc116e9c1c1929ce063b978fa519" },
|
||||
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "21c2a84ce368e99b18f52ab348c4c02c32c02fcf" },
|
||||
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "da88697d7f45d16852c6b2769dc52387d1ddc45f" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "44acfe887d4056f704ccc4f17513ed41c9e2b2e6" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.api.nvim_set_keymap('', "<Space>", "<Nop>", { noremap = true, silent = true })
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
||||
@@ -1,13 +0,0 @@
|
||||
-- shift code --
|
||||
vim.keymap.set('x', '>', ">gv", { desc = "Shift code right" })
|
||||
vim.keymap.set('x', '<', "<gv", { desc = "Shift code left" })
|
||||
|
||||
-- lsp --
|
||||
vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, { noremap = true, silent = true, desc = "Code action" })
|
||||
|
||||
vim.keymap.set('n', '<leader>cf', vim.lsp.buf.format, { desc = "Code format" })
|
||||
|
||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { desc = "Go to definition" })
|
||||
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, { desc = "Go to implementation" })
|
||||
|
||||
vim.keymap.set('n', '<leader>r', vim.lsp.buf.rename, { desc = "Rename symbol" })
|
||||
@@ -1,34 +0,0 @@
|
||||
-- Colorscheme --
|
||||
vim.cmd.colorscheme "catppuccin-mocha"
|
||||
-- Looks --
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.number = true
|
||||
vim.opt.signcolumn = 'yes'
|
||||
vim.opt.cursorline = false
|
||||
vim.opt.list = true
|
||||
vim.opt.wrap = true
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.list = true
|
||||
|
||||
-- Highlight line yank --
|
||||
vim.api.nvim_create_augroup("YankHighlight", { clear = true })
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
group = "YankHighlight",
|
||||
callback = function()
|
||||
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 200 })
|
||||
end,
|
||||
})
|
||||
|
||||
-- shared clipboard --
|
||||
vim.opt.clipboard = "unnamedplus"
|
||||
|
||||
-- Language --
|
||||
vim.opt.spell = true
|
||||
vim.opt.spelllang = { 'pl', 'en' }
|
||||
|
||||
-- Telescope --
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })
|
||||
vim.keymap.set('n', '<leader>fg', builtin.git_files, { desc = 'Telescope find git files' })
|
||||
@@ -1,7 +0,0 @@
|
||||
return {
|
||||
'windwp/nvim-autopairs',
|
||||
event = "InsertEnter",
|
||||
config = true
|
||||
-- use opts = {} for passing setup options
|
||||
-- this is equivalent to setup({}) function
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
return {
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000
|
||||
}
|
||||
@@ -1,119 +0,0 @@
|
||||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
|
||||
config = function()
|
||||
require('gitsigns').setup {
|
||||
signs = {
|
||||
add = { text = '┃' },
|
||||
change = { text = '┃' },
|
||||
delete = { text = '_' },
|
||||
topdelete = { text = '‾' },
|
||||
changedelete = { text = '~' },
|
||||
untracked = { text = '┆' },
|
||||
},
|
||||
signs_staged = {
|
||||
add = { text = '┃' },
|
||||
change = { text = '┃' },
|
||||
delete = { text = '_' },
|
||||
topdelete = { text = '‾' },
|
||||
changedelete = { text = '~' },
|
||||
untracked = { text = '┆' },
|
||||
},
|
||||
signs_staged_enable = true,
|
||||
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
|
||||
numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
|
||||
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
|
||||
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
|
||||
watch_gitdir = {
|
||||
follow_files = true
|
||||
},
|
||||
auto_attach = true,
|
||||
attach_to_untracked = false,
|
||||
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
|
||||
delay = 1000,
|
||||
ignore_whitespace = false,
|
||||
virt_text_priority = 100,
|
||||
use_focus = true,
|
||||
},
|
||||
current_line_blame_formatter = '<author>, <author_time:%R> - <summary>',
|
||||
sign_priority = 6,
|
||||
update_debounce = 100,
|
||||
status_formatter = nil, -- Use default
|
||||
max_file_length = 40000, -- Disable if file is longer than this (in lines)
|
||||
preview_config = {
|
||||
-- Options passed to nvim_open_win
|
||||
style = 'minimal',
|
||||
relative = 'cursor',
|
||||
row = 0,
|
||||
col = 1
|
||||
},
|
||||
|
||||
on_attach = function(bufnr)
|
||||
local gitsigns = require('gitsigns')
|
||||
|
||||
local function map(mode, l, r, opts)
|
||||
opts = opts or {}
|
||||
opts.buffer = bufnr
|
||||
vim.keymap.set(mode, l, r, opts)
|
||||
end
|
||||
|
||||
-- Navigation
|
||||
map('n', ']c', function()
|
||||
if vim.wo.diff then
|
||||
vim.cmd.normal({ ']c', bang = true })
|
||||
else
|
||||
gitsigns.nav_hunk('next')
|
||||
end
|
||||
end)
|
||||
|
||||
map('n', '[c', function()
|
||||
if vim.wo.diff then
|
||||
vim.cmd.normal({ '[c', bang = true })
|
||||
else
|
||||
gitsigns.nav_hunk('prev')
|
||||
end
|
||||
end)
|
||||
|
||||
-- Actions
|
||||
map('n', '<leader>hs', gitsigns.stage_hunk)
|
||||
map('n', '<leader>hr', gitsigns.reset_hunk)
|
||||
|
||||
map('v', '<leader>hs', function()
|
||||
gitsigns.stage_hunk({ vim.fn.line('.'), vim.fn.line('v') })
|
||||
end)
|
||||
|
||||
map('v', '<leader>hr', function()
|
||||
gitsigns.reset_hunk({ vim.fn.line('.'), vim.fn.line('v') })
|
||||
end)
|
||||
|
||||
map('n', '<leader>hS', gitsigns.stage_buffer)
|
||||
map('n', '<leader>hR', gitsigns.reset_buffer)
|
||||
map('n', '<leader>hp', gitsigns.preview_hunk)
|
||||
map('n', '<leader>hi', gitsigns.preview_hunk_inline)
|
||||
|
||||
map('n', '<leader>hb', function()
|
||||
gitsigns.blame_line({ full = true })
|
||||
end)
|
||||
|
||||
map('n', '<leader>hd', gitsigns.diffthis)
|
||||
|
||||
map('n', '<leader>hD', function()
|
||||
gitsigns.diffthis('~')
|
||||
end)
|
||||
|
||||
map('n', '<leader>hQ', function() gitsigns.setqflist('all') end)
|
||||
map('n', '<leader>hq', gitsigns.setqflist)
|
||||
|
||||
-- Toggles
|
||||
map('n', '<leader>tb', gitsigns.toggle_current_line_blame)
|
||||
map('n', '<leader>tw', gitsigns.toggle_word_diff)
|
||||
|
||||
-- Text object
|
||||
map({ 'o', 'x' }, 'ih', gitsigns.select_hunk)
|
||||
end
|
||||
}
|
||||
end
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
return {
|
||||
"ThePrimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
init = function()
|
||||
local harpoon = require("harpoon")
|
||||
|
||||
-- REQUIRED
|
||||
harpoon:setup()
|
||||
-- REQUIRED
|
||||
|
||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end, { desc = "Add file to harpoon" })
|
||||
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end,
|
||||
{ desc = "Toggle harpoon ui" })
|
||||
|
||||
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
||||
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
|
||||
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
|
||||
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)
|
||||
|
||||
-- Toggle previous & next buffers stored within Harpoon list
|
||||
vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end,
|
||||
{ desc = "Toggle next harpoon buffer" })
|
||||
vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end,
|
||||
{ desc = "Toggle previous harpoon buffer" })
|
||||
|
||||
-- basic telescope configuration
|
||||
local conf = require("telescope.config").values
|
||||
local function toggle_telescope(harpoon_files)
|
||||
local file_paths = {}
|
||||
for _, item in ipairs(harpoon_files.items) do
|
||||
table.insert(file_paths, item.value)
|
||||
end
|
||||
|
||||
require("telescope.pickers").new({}, {
|
||||
prompt_title = "Harpoon",
|
||||
finder = require("telescope.finders").new_table({
|
||||
results = file_paths,
|
||||
}),
|
||||
previewer = conf.file_previewer({}),
|
||||
sorter = conf.generic_sorter({}),
|
||||
}):find()
|
||||
end
|
||||
|
||||
vim.keymap.set("n", "<C-e>", function() toggle_telescope(harpoon:list()) end,
|
||||
{ desc = "Open harpoon window" })
|
||||
end
|
||||
}
|
||||
@@ -1,115 +0,0 @@
|
||||
return {
|
||||
'neovim/nvim-lspconfig',
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
{
|
||||
"mason-org/mason.nvim",
|
||||
opts = {
|
||||
modifiable = true
|
||||
}
|
||||
},
|
||||
{
|
||||
"mason-org/mason-lspconfig.nvim",
|
||||
opts = {},
|
||||
},
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
'hrsh7th/cmp-buffer',
|
||||
'hrsh7th/cmp-path',
|
||||
'hrsh7th/cmp-cmdline',
|
||||
'hrsh7th/nvim-cmp',
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
{ "L3MON4D3/LuaSnip", build = "make install_jsregexp" },
|
||||
},
|
||||
config = function()
|
||||
local cmp_lsp = require("cmp_nvim_lsp")
|
||||
local cmp = require("cmp")
|
||||
local cmp_select = { behavior = cmp.SelectBehavior.Select }
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require("luasnip").lsp_expand(args.body)
|
||||
end,
|
||||
},
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-e>'] = cmp.mapping.abort(),
|
||||
['<C-p>'] = cmp.mapping.select_prev_item(cmp_select),
|
||||
['<C-n>'] = cmp.mapping.select_next_item(cmp_select),
|
||||
['<C-y>'] = cmp.mapping.confirm({ select = true }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' },
|
||||
},
|
||||
{
|
||||
{ name = 'buffer' },
|
||||
})
|
||||
})
|
||||
local capabilities = vim.tbl_deep_extend(
|
||||
"force",
|
||||
{},
|
||||
vim.lsp.protocol.make_client_capabilities(),
|
||||
cmp_lsp.default_capabilities()
|
||||
)
|
||||
vim.diagnostic.config({
|
||||
virtual_text = {
|
||||
prefix = "●",
|
||||
spacing = 2,
|
||||
source = "if_many",
|
||||
},
|
||||
signs = true,
|
||||
underline = true,
|
||||
update_in_insert = false
|
||||
})
|
||||
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
"lua_ls",
|
||||
"clangd",
|
||||
"rust_analyzer"
|
||||
},
|
||||
handlers = {
|
||||
function(server_name)
|
||||
require("lspconfig")[server_name].setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
end
|
||||
},
|
||||
automatic_enable = true,
|
||||
})
|
||||
|
||||
local buffer_autoformat = function(bufnr)
|
||||
local group = 'lsp_autoformat'
|
||||
vim.api.nvim_create_augroup(group, { clear = false })
|
||||
vim.api.nvim_clear_autocmds({ group = group, buffer = bufnr })
|
||||
|
||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||
buffer = bufnr,
|
||||
group = group,
|
||||
desc = "Lsp format on save",
|
||||
callback = function()
|
||||
vim.lsp.buf.format({ async = false, timeout_ms = 10000 })
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
callback = function(event)
|
||||
local id = vim.tbl_get(event, 'data', 'client_id')
|
||||
local client = id and vim.lsp.get_client_by_id(id)
|
||||
|
||||
if client == nil then
|
||||
return
|
||||
end
|
||||
|
||||
if client.supports_method('textDocument/formatting') then
|
||||
buffer_autoformat(event.buf)
|
||||
end
|
||||
end
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>?",
|
||||
function()
|
||||
require("which-key").show({ global = false })
|
||||
end,
|
||||
desc = "Buffer Local Keymaps (which-key)",
|
||||
},
|
||||
},
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
12
flake.lock
generated
12
flake.lock
generated
@@ -117,11 +117,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1771851181,
|
||||
"narHash": "sha256-gFgE6mGUftwseV3DUENMb0k0EiHd739lZexPo5O/sdQ=",
|
||||
"lastModified": 1772060133,
|
||||
"narHash": "sha256-VuyRptb8v1lVGMlLp4/1vRX3Efwec0CN0S6mKmDPzLg=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "9a4b494b1aa1b93d8edf167f46dc8e0c0011280c",
|
||||
"rev": "ce9b6e52500a0ea0ec48f0bbf6d7a3e431d9dfa4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -205,11 +205,11 @@
|
||||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1771959711,
|
||||
"narHash": "sha256-fVxN49l5Tu/iCSGuQuyR7HLBl9qJyg/4kt8WHTFn3MY=",
|
||||
"lastModified": 1772107319,
|
||||
"narHash": "sha256-qdeeNrWmUe1P2FsnNU1ngoZl8UxczEMJBziwm78V42I=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "c60b3cb2ed0404d9573b2801b51ba7be1da999d9",
|
||||
"rev": "c71fbd854dfdedaae011f4b8b1fdb81f8054b309",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
17
flake.nix
17
flake.nix
@@ -38,21 +38,27 @@
|
||||
email = "szymon_jozef@proton.me";
|
||||
fullName = "Szymon P";
|
||||
# your public ssh key
|
||||
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILaITOo0cG6j0iQKpn7ldhfq9P0FVhGpwUqw2hf+Uhaq";
|
||||
signingKey = "~/.ssh/github.pub";
|
||||
|
||||
mainMonitor = "eDP-1"; # only for some applications: you still need to set hyprland monitors yourself!
|
||||
statusBar = "ashell"; # available: ashell|waybar
|
||||
|
||||
pathConfig = {
|
||||
wallpaper = "Obrazy/tapety/catppuccin";
|
||||
screenshot = "Obrazy/zrzuty/";
|
||||
obsidian = "Dokumenty/obsidian";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
system = "x86_64-linux";
|
||||
in
|
||||
{
|
||||
homeConfigurations = {
|
||||
"arch" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
@@ -68,7 +74,10 @@
|
||||
|
||||
};
|
||||
"nixos" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
|
||||
4
home.nix
4
home.nix
@@ -48,6 +48,7 @@
|
||||
./modules/gui/mako.nix
|
||||
./modules/gui/mangohud.nix
|
||||
./modules/gui/browsers.nix
|
||||
./modules/gui/obsidian.nix
|
||||
# status bars
|
||||
./modules/bars/ashell.nix
|
||||
./modules/bars/waybar.nix
|
||||
@@ -63,6 +64,8 @@
|
||||
# === SCRIPTS IMPORT ===
|
||||
home.file = {
|
||||
".local/bin".source = ./scripts;
|
||||
".config/gtk-3.0/colors.css".source = ./dotfiles/gtk-3.0/colors.css;
|
||||
".config/gtk-3.0/gtk.css".source = ./dotfiles/gtk-3.0/gtk.css;
|
||||
${userConfig.pathConfig.wallpaper}.source = inputs.wallpapers;
|
||||
};
|
||||
|
||||
@@ -71,6 +74,7 @@
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
XDG_DATA_DIRS = "$HOME/.nix-profile/share/applications:$XDG_DATA_DIRS";
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
@@ -45,9 +45,7 @@
|
||||
|
||||
set -l rel_file (realpath --relative-to=$config_dir $file)
|
||||
|
||||
if home-manager switch --flake "$config_dir#${
|
||||
if isNixOS then "nixos" else "arch"
|
||||
}" -b backup
|
||||
if nh home switch $config_dir -c ${if isNixOS then "nixos" else "arch"}
|
||||
git add -A
|
||||
set commit_msg "update: $rel_file"
|
||||
git commit -m "$commit_msg"
|
||||
@@ -61,6 +59,11 @@
|
||||
'';
|
||||
};
|
||||
|
||||
reload_dotfiles = {
|
||||
body = # fish
|
||||
"nh home switch ~/.config/home-manager -c ${if isNixOS then "nixos" else "arch"}";
|
||||
};
|
||||
|
||||
ls = {
|
||||
body = # fish
|
||||
"eza --long --icons --group-directories-first --git $argv";
|
||||
|
||||
@@ -177,6 +177,8 @@
|
||||
};
|
||||
# nix
|
||||
nil_ls.enable = true;
|
||||
# other
|
||||
marksman.enable = true;
|
||||
};
|
||||
keymaps = {
|
||||
lspBuf = {
|
||||
|
||||
@@ -1,31 +1,44 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
xdg.desktopEntries = {
|
||||
x = {
|
||||
name = "X";
|
||||
genericName = "Social Media Client";
|
||||
comment = "Open X (twitter)";
|
||||
exec = "uwsm app -- chromium --app=https://x.com";
|
||||
icon = "twitter";
|
||||
let
|
||||
mkWebApp =
|
||||
{
|
||||
name,
|
||||
url,
|
||||
icon,
|
||||
wmClass,
|
||||
}:
|
||||
{
|
||||
inherit name icon;
|
||||
genericName = "Web app";
|
||||
comment = "Open ${name}";
|
||||
exec = "uwsm app -- brave --app=https://${url}";
|
||||
terminal = false;
|
||||
categories = [
|
||||
"Network"
|
||||
"WebBrowser"
|
||||
"X-Social"
|
||||
];
|
||||
settings = {
|
||||
StartupWMClass = wmClass;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
xdg.desktopEntries = {
|
||||
x = mkWebApp {
|
||||
name = "X";
|
||||
url = "x.com";
|
||||
icon = "twitter";
|
||||
wmClass = "brave-x.com__-Default";
|
||||
};
|
||||
|
||||
proton-mail = {
|
||||
name = "Proton mail";
|
||||
genericName = "Proton mail";
|
||||
comment = "Open Proton Mail";
|
||||
exec = "uwsm app -- chromium --app=https://mail.proton.me/u/0/inbox.com";
|
||||
terminal = false;
|
||||
categories = [ "Email" ];
|
||||
settings = {
|
||||
StartupWMClass = "proton-mail.com";
|
||||
};
|
||||
proton-mail = mkWebApp {
|
||||
name = "Proton-mail";
|
||||
url = "mail.proton.me/u/0/inbox.com";
|
||||
icon = "proton-mail";
|
||||
wmClass = "brave-mail.proton.me__u_0_inbox.com-Default";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
gtk.enable = true;
|
||||
gtk = {
|
||||
enable = true;
|
||||
colorScheme = "dark";
|
||||
};
|
||||
|
||||
dconf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ isNixOS, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.mako = {
|
||||
@@ -20,7 +20,11 @@
|
||||
border-color = "#89b4fa";
|
||||
progress-color = "over #313244";
|
||||
output = "DP-1";
|
||||
on-notify = "exec paplay /usr/share/sounds/freedesktop/stereo/dialog-information.oga";
|
||||
on-notify =
|
||||
if isNixOS then
|
||||
"exec ${pkgs.pulseaudio}/bin/paplay ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/dialog-information.oga"
|
||||
else
|
||||
"exec paplay /usr/share/sounds/freedesktop/stereo/dialog-information.oga";
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
@@ -31,7 +35,12 @@
|
||||
border-color=#FF6347
|
||||
|
||||
[urgency=critical]
|
||||
on-notify=exec paplay /usr/share/sounds/freedesktop/stereo/window-attention.oga
|
||||
on-notify=${
|
||||
if isNixOS then
|
||||
"exec ${pkgs.pulseaudio}/bin/paplay ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/dialog-information.oga"
|
||||
else
|
||||
"exec paplay /usr/share/sounds/freedesktop/stereo/dialog-information.oga"
|
||||
}
|
||||
border-color=#FF0000
|
||||
|
||||
[mode=do-not-disturb]
|
||||
|
||||
21
modules/gui/obsidian-catppuccin.nix
Normal file
21
modules/gui/obsidian-catppuccin.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "obsidian-catppuccin";
|
||||
version = "main";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "obsidian";
|
||||
rev = "main";
|
||||
hash = "sha256-sN5k263geOtJ1mOCQGM8UdmA/71OhBI5NRwGxJwd80E=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp theme.css manifest.json $out/
|
||||
'';
|
||||
}
|
||||
65
modules/gui/obsidian.nix
Normal file
65
modules/gui/obsidian.nix
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
isNixOS,
|
||||
lib,
|
||||
pkgs,
|
||||
userConfig,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.obsidian = {
|
||||
enable = true;
|
||||
package = lib.mkIf (!isNixOS) null;
|
||||
|
||||
defaultSettings = {
|
||||
app = {
|
||||
vimMode = true;
|
||||
alwaysUpdateLinks = true;
|
||||
attachmentFolderPath = "media";
|
||||
newLinkFormat = "relative";
|
||||
newFileLocation = "current";
|
||||
useMarkdownLinks = true;
|
||||
showUnsupportedFiles = true;
|
||||
pdfExportSettings = {
|
||||
pageSize = "A4";
|
||||
landscape = false;
|
||||
margin = "0";
|
||||
downscalePercent = 100;
|
||||
};
|
||||
};
|
||||
|
||||
themes = [
|
||||
(pkgs.callPackage ./obsidian-catppuccin.nix { })
|
||||
];
|
||||
|
||||
corePlugins = [
|
||||
"file-explorer"
|
||||
"global-search"
|
||||
"switcher"
|
||||
"graph"
|
||||
"backlink"
|
||||
"canvas"
|
||||
"outgoing-link"
|
||||
"tag-pane"
|
||||
"page-preview"
|
||||
"note-composer"
|
||||
"command-palette"
|
||||
"editor-status"
|
||||
"bookmarks"
|
||||
"outline"
|
||||
"word-count"
|
||||
"bases"
|
||||
];
|
||||
};
|
||||
|
||||
vaults = {
|
||||
"Notatki-szkolne" = {
|
||||
target = "${userConfig.pathConfig.obsidian}/notatki-szkolne";
|
||||
};
|
||||
"Studia" = {
|
||||
target = "${userConfig.pathConfig.obsidian}/ZUT-notatki";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
@@ -6,7 +6,22 @@
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
exe = pkg: bin: if isNixOS then "${pkg}/bin/${bin}" else "/usr/bin/${bin}";
|
||||
|
||||
jq = exe pkgs.jq "jq";
|
||||
grim = exe pkgs.grim "grim";
|
||||
satty = exe pkgs.satty "satty";
|
||||
wl_copy = exe pkgs.wl-clipboard "wl-copy";
|
||||
notify_send = exe pkgs.libnotify "notify-send";
|
||||
xdg-desktop-portal-hyprland =
|
||||
if isNixOS then
|
||||
"${pkgs.xdg-desktop-portal-hyprland}/libexec/xdg-desktop-portal-hyprland"
|
||||
else
|
||||
"/usr/lib/xdg-desktop-portal-hyprland";
|
||||
hyprlock = exe pkgs.hyprlock "hyprlock";
|
||||
playerctl = exe pkgs.playerctl "playerctl";
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
@@ -108,9 +123,9 @@
|
||||
};
|
||||
|
||||
permission = [
|
||||
".*(grim), screencopy, allow"
|
||||
".*(hyprlock), screencopy, allow"
|
||||
".*(xdg-desktop-portal-hyprland), screencopy, allow"
|
||||
"^${grim}$, screencopy, allow"
|
||||
"^${hyprlock}$, screencopy, allow"
|
||||
"^${xdg-desktop-portal-hyprland}$, screencopy, allow"
|
||||
];
|
||||
|
||||
input = {
|
||||
@@ -184,7 +199,7 @@
|
||||
"match:class ^(zen)$, workspace 2"
|
||||
"match:class ^(com.github.IsmaelMartinez.teams_for_linux)$, workspace 2"
|
||||
"match:class ^(FreeTube)$, workspace 2"
|
||||
"match:class ^(chrome-x.com__-Default)$, workspace 2"
|
||||
"match:class ^(brave-x.com__-Default)$, workspace 2"
|
||||
"match:class ^(chrome-www.inoreader.com__all_articles-Default)$, workspace 2"
|
||||
"match:class ^(chrome-mail.proton.me__u_0_inbox.com-Default)$, workspace 2"
|
||||
"match:class ^(chrome-app.tuta.com__-Default)$, workspace 2"
|
||||
@@ -272,7 +287,7 @@
|
||||
"$mainMod Control_L, m, exec, [workspace 9] uwsm app -- $music_player"
|
||||
"$mainMod Control_L, f, exec, uwsm app -- freetube"
|
||||
"$mainMod Control_L, f, focuswindow, class:^(freetube)$"
|
||||
"$mainMod Control_L, x, exec, uwsm app -- ~/.local/share/applications/x.desktop"
|
||||
"$mainMod Control_L, x, exec, uwsm app -- ~/.nix-profile/share/applications/x.desktop"
|
||||
"$mainMod Control_L, x, focuswindow, class:^(chrome-x.com__-Default)$"
|
||||
"$mainMod CONTROL_L L_SHIFT, B, exec, killall ashell && uwsm app -- ashell"
|
||||
];
|
||||
@@ -294,19 +309,36 @@
|
||||
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle"
|
||||
];
|
||||
|
||||
bindl = [
|
||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle && ~/.local/bin/check-if-muted.sh"
|
||||
", XF86AudioNext, exec, playerctl next"
|
||||
", Pause, exec, playerctl play-pause"
|
||||
"$mainMod, Pause, exec, playerctl play-pause --player spotify"
|
||||
", XF86AudioPlay, exec, playerctl play-pause"
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
];
|
||||
|
||||
bindt = [
|
||||
", PRINT, exec, ~/.local/bin/screenshot.sh region"
|
||||
"$mainMod, PRINT, exec, ~/.local/bin/screenshot.sh fullscreen"
|
||||
"alt_l, PRINT, exec, ~/.local/bin/screenshot.sh window"
|
||||
", PRINT, exec, ${pkgs.writeShellScript "screenshot-region" ''
|
||||
MONITOR=$(hyprctl monitors -j | ${jq} -r '.[] | select(.focused == true) | .name')
|
||||
${grim} -o "$MONITOR" - | ${satty} -f -
|
||||
''}"
|
||||
|
||||
"$mainMod, PRINT, exec, ${pkgs.writeShellScript "screenshot-fullscreen" ''
|
||||
target_path="$HOME/${userConfig.pathConfig.screenshot}/$(date +'%d-%m-%Y_%H-%M-%S').png"
|
||||
mkdir -p "$(dirname "$target_path")"
|
||||
|
||||
MONITOR=$(hyprctl monitors -j | ${jq} -r '.[] | select(.focused == true) | .name')
|
||||
|
||||
${grim} -o "$MONITOR" "$target_path"
|
||||
${wl_copy} < "$target_path"
|
||||
${notify_send} -i "$target_path" -u low -a "Screenshot" "Screenshot fullscreen" "Saved and copied"
|
||||
''}"
|
||||
|
||||
"alt_l, PRINT, exec, ${pkgs.writeShellScript "screenshot-window" ''
|
||||
target_path="$HOME/${userConfig.pathConfig.screenshot}/$(date +'%d-%m-%Y_%H-%M-%S').png"
|
||||
mkdir -p "$(dirname "$target_path")"
|
||||
|
||||
GEOMETRY=$(hyprctl activewindow -j | ${jq} -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"')
|
||||
|
||||
${grim} -g "$GEOMETRY" "$target_path"
|
||||
${wl_copy} < "$target_path"
|
||||
${notify_send} -i "$target_path" -u low -a "Screenshot" "Screenshot window" "Saved and copied"
|
||||
''}"
|
||||
|
||||
", PAUSE, exec, ${playerctl} play-pause"
|
||||
"$mainMod, PAUSE, exec, ${playerctl} play-pause --player spotify"
|
||||
];
|
||||
|
||||
bindm = [
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
{ ... }:
|
||||
|
||||
let
|
||||
browserFallback = [
|
||||
"zen-beta.desktop"
|
||||
"zen.desktop"
|
||||
"brave.desktop"
|
||||
"chromium.desktop"
|
||||
];
|
||||
in
|
||||
{
|
||||
xdg.portal.config = {
|
||||
common = {
|
||||
@@ -15,20 +23,16 @@
|
||||
defaultApplications = {
|
||||
"application/pdf" = [ "org.pwmt.zathura.desktop" ];
|
||||
|
||||
"text/html" = [
|
||||
"zen-beta.desktop"
|
||||
"zen.desktop"
|
||||
"chromium.desktop"
|
||||
];
|
||||
"application/xhtml+xml" = [ "zen.desktop" ];
|
||||
"x-scheme-handler/http" = [ "zen.desktop" ];
|
||||
"x-scheme-handler/https" = [ "zen.desktop" ];
|
||||
"x-scheme-handler/chrome" = [ "zen.desktop" ];
|
||||
"application/x-extension-htm" = [ "zen.desktop" ];
|
||||
"application/x-extension-html" = [ "zen.desktop" ];
|
||||
"application/x-extension-shtml" = [ "zen.desktop" ];
|
||||
"application/x-extension-xht" = [ "zen.desktop" ];
|
||||
"application/x-extension-xhtml" = [ "zen.desktop" ];
|
||||
"text/html" = browserFallback;
|
||||
"application/xhtml+xml" = browserFallback;
|
||||
"x-scheme-handler/http" = browserFallback;
|
||||
"x-scheme-handler/https" = browserFallback;
|
||||
"x-scheme-handler/chrome" = browserFallback;
|
||||
"application/x-extension-htm" = browserFallback;
|
||||
"application/x-extension-html" = browserFallback;
|
||||
"application/x-extension-shtml" = browserFallback;
|
||||
"application/x-extension-xht" = browserFallback;
|
||||
"application/x-extension-xhtml" = browserFallback;
|
||||
|
||||
"audio/*" = [ "mpv.desktop" ];
|
||||
"audio/mpeg" = [ "mpv.desktop" ];
|
||||
@@ -43,4 +47,17 @@
|
||||
"x-scheme-handler/tuta" = [ "tutanota-desktop.desktop" ];
|
||||
};
|
||||
};
|
||||
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
desktop = null;
|
||||
documents = "$HOME/Dokumenty";
|
||||
download = "$HOME/Pobrane";
|
||||
music = null;
|
||||
pictures = "$HOME/Obrazy";
|
||||
videos = "$HOME/Video";
|
||||
templates = null;
|
||||
publicShare = null;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
disturbed=$(makoctl mode | grep -i do-not-disturb) > /dev/null
|
||||
mute_icon=""
|
||||
unmute_icon="🕭"
|
||||
|
||||
case $1 in
|
||||
"show")
|
||||
if [[ $disturbed == "" ]]; then
|
||||
echo "$unmute_icon"
|
||||
else
|
||||
echo "$mute_icon"
|
||||
fi
|
||||
;;
|
||||
"change")
|
||||
if [[ $disturbed == "" ]]; then
|
||||
makoctl mode -a do-not-disturb > /dev/null
|
||||
echo "$unmute_icon"
|
||||
else
|
||||
makoctl mode -r do-not-disturb > /dev/null
|
||||
echo "$mute_icon"
|
||||
fi
|
||||
pkill -SIGRTMIN+2 waybar
|
||||
;;
|
||||
*)
|
||||
echo "Arguments are: show, change"
|
||||
;;
|
||||
esac
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
MUTED=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -iq muted; echo $?)
|
||||
|
||||
if [[ $MUTED -eq 0 ]]; then
|
||||
notify-send "Audio muted" -a 'wp-vol' -t 1000
|
||||
else
|
||||
notify-send "Audio unmuted" -a 'wp-vol' -t 1000
|
||||
fi
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
killall -q waybar
|
||||
|
||||
while pgrep -x waybar >/dev/null; do sleep 1; done
|
||||
|
||||
uwsm app waybar
|
||||
@@ -1,50 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# variables
|
||||
## path vars
|
||||
date="$(date +'%d-%m-%Y_%H:%M:%S')"
|
||||
fname="$date.png"
|
||||
target_path="$HOME/Obrazy/zrzuty/$fname"
|
||||
## stdout
|
||||
error_wrong_type="The first argument needs to be \"fullscreen\", \"window\" or \"region\". Exiting..."
|
||||
notification_succes="$target_path saved and copied"
|
||||
|
||||
|
||||
# validate input
|
||||
case "$1" in
|
||||
"fullscreen" | "window" | "region")
|
||||
type=$1
|
||||
;;
|
||||
*)
|
||||
echo "$error_wrong_type"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
|
||||
notification() {
|
||||
notify-send -i "$target_path" -u low -a "Screenshot" "Screenshot $type" "$notification_succes"
|
||||
}
|
||||
|
||||
case $type in
|
||||
"fullscreen")
|
||||
grim -o $(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name') "$target_path"
|
||||
wl-copy < "$target_path"
|
||||
notification
|
||||
;;
|
||||
"window")
|
||||
active_window_position="$(hyprctl clients -j | jq -r '.[] | select(.focusHistoryID == 0) | .at')"
|
||||
active_window_size="$(hyprctl clients -j | jq -r '.[] | select(.focusHistoryID == 0) | .size')"
|
||||
|
||||
x=$(echo "$active_window_position" | jq '.[0]')
|
||||
y=$(echo "$active_window_position" | jq '.[1]')
|
||||
width=$(echo "$active_window_size" | jq '.[0]')
|
||||
height=$(echo "$active_window_size" | jq '.[1]')
|
||||
|
||||
grim -g "${x},${y} ${width}x${height}" "$target_path"
|
||||
wl-copy < "$target_path"
|
||||
notification
|
||||
;;
|
||||
"region")
|
||||
grim -o $(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name') - | satty -f -
|
||||
;;
|
||||
esac
|
||||
Binary file not shown.
Reference in New Issue
Block a user