Skip to content

Commit

Permalink
update to nix 24.05, add dconf
Browse files Browse the repository at this point in the history
  • Loading branch information
kualta committed Sep 9, 2024
1 parent 60438aa commit 3e9b239
Show file tree
Hide file tree
Showing 5 changed files with 401 additions and 158 deletions.
99 changes: 99 additions & 0 deletions config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
## Focus-first minimalist desktop setup
### Overview
- wm: [`Hyprland`](https://hyprland.org/)
- shell: [`zsh`](https://www.zsh.org/)
- terminal: [`kitty`](https://github.com/kovidgoyal/kitty)
- theme: [`Rose Pine`](https://rosepinetheme.com/)
- editor: [`helix`](https://helix-editor.com/), [`neovim`](https://neovim.io/), [`vscode`](https://code.visualstudio.com/)
- menu: [`tofi`](https://github.com/philj56/tofi)

### Keybinds
<details>
<summary><b>Desktop</b></summary>

- <kbd>Mod</kbd> + <kbd>Enter</kbd> Open terminal
- <kbd>Mod</kbd> + <kbd>Print</kbd> Make a screenshot
- <kbd>Mod</kbd> + <kbd>Q</kbd> Kill window
- <kbd>Mod</kbd> + <kbd>D</kbd> Open program
- <kbd>Mod</kbd> + <kbd>E</kbd> Open files
- <kbd>Mod</kbd> + <kbd>N</kbd> Open notifications
- <kbd>Mod</kbd> + <kbd>F</kbd> Toggle floating
- <kbd>Mod</kbd> + <kbd>T</kbd> Toggle split
- <kbd>Mod</kbd> + <kbd>.</kbd> Lock desktop
- <kbd>Mod</kbd> + <kbd>Shift</kbd> + <kbd>.</kbd> Exit session
- <kbd>Mod</kbd> + <kbd>h</kbd> / <kbd>j</kbd> / <kbd>k</kbd> / <kbd>l</kbd> Move around
- <kbd>Mod</kbd> + <kbd>Shift</kbd> + <kbd>h</kbd> / <kbd>j</kbd> / <kbd>k</kbd> / <kbd>l</kbd> Move window
</details>

<details>
<summary><b>Shell</b></summary>

### History

- `ctrl-p` : Previous command in history
- `ctrl-n` : Next command in history
- `/` : Search backward in history
- `n` : Repeat the last `/`

### Movement

- `$` : To the end of the line
- `^` : To the first non-blank character of the line
- `0` : To the first character of the line
- `w` : [count] words forward
- `W` : [count] WORDS forward
- `e` : Forward to the end of word [count] inclusive
- `E` : Forward to the end of WORD [count] inclusive
- `b` : [count] words backward
- `B` : [count] WORDS backward
- `t{char}` : Till before [count]'th occurrence of {char} to the right
- `T{char}` : Till before [count]'th occurrence of {char} to the left
- `f{char}` : To [count]'th occurrence of {char} to the right
- `F{char}` : To [count]'th occurrence of {char} to the left
- `;` : Repeat latest f, t, F or T [count] times
- `,` : Repeat latest f, t, F or T in opposite direction

### Insertion

- `i` : Insert text before the cursor
- `I` : Insert text before the first character in the line
- `a` : Append text after the cursor
- `A` : Append text at the end of the line
- `o` : Insert new command line below the current one
- `O` : Insert new command line above the current one

### Delete and Insert

- `ctrl-h` : While in *Insert mode*: delete character before the cursor
- `ctrl-w` : While in *Insert mode*: delete word before the cursor
- `d{motion}` : Delete text that {motion} moves over
- `dd` : Delete line
- `D` : Delete characters under the cursor until the end of the line
- `c{motion}` : Delete {motion} text and start insert
- `cc` : Delete line and start insert
- `C` : Delete to the end of the line and start insert
- `r{char}` : Replace the character under the cursor with {char}
- `R` : Enter replace mode: Each character replaces existing one
- `x` : Delete `count` characters under and after the cursor
- `X` : Delete `count` characters before the cursor

</details>


### Installation
> Note: If using **Debian** as host, you'll have to compile most of the dependencies from source
1. Install `Hyprland` as described [on wiki](https://wiki.hyprland.org/Getting-Started/Installation/)
2. Install the dependencies

Arch : `yay -S zsh oh-my-zsh-git zsh-autosuggestions zsh-completions zsh-syntax-highlighting kitty grim slurp helix neovim swaybg swaync swayidle rose-pine-gtk-theme firefox-developer-edition nautilus swaylock-effects`

Arch (QoL): `yay -S foliate discord telegram-desktop openvpn lld ttf-material-design-icons wireplumber pipewire-jack pipewire-pulse ttf-droid noto-fonts noto-fonts-emoji wqy-microhei docker docker-compose pipewire pipewire-pulse pipewire-also pipewire-audio wireplumber visual-studio-code-bin bluez-utils-compat blueman`

4. ```git clone https://github.com/kualta/dots && mv dots/* ~/.config/```
5. Customize wallpaper and utility commands at `~/.config/hypr/hyprland.conf`
6. You're amazing! (and so is your desktop)

### Gallery
![](https://github.com/kualta/dots/assets/72769566/6a2ef24b-05da-44c5-946a-e6c927ef3022)
![](https://github.com/kualta/dots/assets/72769566/b333a976-b083-477b-b1f9-97174300d339)
78 changes: 42 additions & 36 deletions config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $suspend_cmd = systemctl suspend
$mainMod = SUPER

# wallpaper path
$wallpaper_path = ~/Pictures/yuri.jpg
$wallpaper_path = ~/Pictures/bg.png

launch {
env = XCURSOR_SIZE,12
Expand Down Expand Up @@ -58,6 +58,7 @@ general {
col.inactive_border = rgba(1f1d2eff)
}


decoration {
blur {
enabled = true
Expand Down Expand Up @@ -98,8 +99,13 @@ gestures {
}

binds {

binde =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+
binde =, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-

desktop {
bind = $mainMod, Print, exec, grim -g "$(slurp)"
bind = $mainMod SHIFT, Print, exec, wf-recorder -g "$(slurp)"
bind = $mainMod, Return, exec, $term_cmd
bind = $mainMod, Period, exec, $lock_cmd
bind = $mainMod SHIFT, Period, exit,
Expand Down Expand Up @@ -130,41 +136,41 @@ binds {
}

workspaces {
switch {
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 {
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
}

scroll {
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
}

resize {
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
}
switch {
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 {
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
}

scroll {
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
}

resize {
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
}
}
}

Expand Down
22 changes: 10 additions & 12 deletions config/kitty/current-theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,23 @@
## upstream: https://github.com/catppuccin/kitty/blob/main/mocha.conf
## blurb: Soothing pastel theme for the high-spirited!



# The basic colors
foreground #CDD6F4
background #1E1E2E
selection_foreground #1E1E2E
selection_background #F5E0DC
foreground #CDD6F4
background #1E1E2E
selection_foreground #1E1E2E
selection_background #F5E0DC

# Cursor colors
cursor #F5E0DC
cursor_text_color #1E1E2E
cursor #F5E0DC
cursor_text_color #1E1E2E

# URL underline color when hovering with mouse
url_color #F5E0DC
url_color #F5E0DC

# Kitty window border colors
active_border_color #B4BEFE
inactive_border_color #6C7086
bell_border_color #F9E2AF
active_border_color #B4BEFE
inactive_border_color #6C7086
bell_border_color #F9E2AF

# OS Window titlebar colors
wayland_titlebar_color system
Expand Down
1 change: 0 additions & 1 deletion config/kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
include current-theme.conf
# END_KITTY_THEME


# handled by hyprland
background_blur 0
background_opacity 0.8
Expand Down
Loading

0 comments on commit 3e9b239

Please sign in to comment.