mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-13 08:02:40 +02:00
feat: refactor codes
feat: custom rime - disable full_shape punctuations feat: remap capslock key
This commit is contained in:
Generated
+5
-4
@@ -17,6 +17,7 @@
|
|||||||
"original": {
|
"original": {
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "agenix",
|
"repo": "agenix",
|
||||||
|
"rev": "0d8c5325fc81daf00532e3e26c6752f7bcde1143",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -184,16 +185,16 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1683130508,
|
"lastModified": 1689160271,
|
||||||
"narHash": "sha256-Npf48UUfywneFYGEc7NQ59xudwvw7EJjwweT4tHguIY=",
|
"narHash": "sha256-mEKF6Wcx+wSF/eos/91A7LxhFLDYhSnQnLpwZF13ntg=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "f27873a6f06dc2f87600edb890f3c38298bfb55f",
|
"rev": "5e577acf516b80173f695a458c2cc188a4d64560",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"ref": "v0.25.0",
|
"ref": "v0.27.0",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# modern window compositor
|
# modern window compositor
|
||||||
hyprland.url = "github:hyprwm/Hyprland/v0.25.0";
|
hyprland.url = "github:hyprwm/Hyprland/v0.27.0";
|
||||||
# community wayland nixpkgs
|
# community wayland nixpkgs
|
||||||
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
|
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
|
||||||
|
|
||||||
@@ -115,6 +115,7 @@
|
|||||||
|
|
||||||
home-manager.extraSpecialArgs = x64_specialArgs;
|
home-manager.extraSpecialArgs = x64_specialArgs;
|
||||||
home-manager.users.ryan = import ./home/linux/x11.nix;
|
home-manager.users.ryan = import ./home/linux/x11.nix;
|
||||||
|
# home-manager.users.ryan = import ./home/linux/wayland.nix;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
# 星野 愛久愛海, Hoshino Akuamarin
|
# 星野 愛久愛海, Hoshino Akuamarin
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./shell.nix
|
||||||
|
./system-tools.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -4,7 +4,10 @@
|
|||||||
./alacritty
|
./alacritty
|
||||||
|
|
||||||
./creative.nix
|
./creative.nix
|
||||||
|
./immutable-file.nix
|
||||||
./media.nix
|
./media.nix
|
||||||
|
./ssh.nix
|
||||||
|
./xdg.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
".config/i3/wallpaper.png".source = ../wallpapers/wallpaper.png;
|
".config/i3/wallpaper.png".source = ../wallpapers/wallpaper.png;
|
||||||
".config/i3/config".source = ./config;
|
".config/i3/config".source = ./config;
|
||||||
".config/i3/i3blocks.conf".source = ./i3blocks.conf;
|
".config/i3/i3blocks.conf".source = ./i3blocks.conf;
|
||||||
".config/i3/keybindings".source = ./keybindings;
|
|
||||||
".config/i3/scripts" = {
|
".config/i3/scripts" = {
|
||||||
source = ./scripts;
|
source = ./scripts;
|
||||||
# copy the scripts directory recursively
|
# copy the scripts directory recursively
|
||||||
|
|||||||
@@ -1,106 +0,0 @@
|
|||||||
EndeavourOS i3wm Keybindings cheat sheet:
|
|
||||||
|
|
||||||
--> to update this run the following command:
|
|
||||||
wget --backups=1 https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/keybindings -P ~/.config/i3/
|
|
||||||
|
|
||||||
All sources and updates are available at GitHub:
|
|
||||||
https://github.com/endeavouros-team/endeavouros-i3wm-setup
|
|
||||||
|
|
||||||
For reference consult our WIKI:
|
|
||||||
https://discovery.endeavouros.com/window-tiling-managers/i3-wm/
|
|
||||||
|
|
||||||
= windows key
|
|
||||||
|
|
||||||
# start alacritty
|
|
||||||
+Return
|
|
||||||
|
|
||||||
# kill focused window
|
|
||||||
+q
|
|
||||||
|
|
||||||
# Application menu search by typing (fancy Rofi menu):
|
|
||||||
+d
|
|
||||||
|
|
||||||
# Window switcher menu (fancy Rofi menu):
|
|
||||||
+t
|
|
||||||
|
|
||||||
# fancy exit-menu on bottom right:
|
|
||||||
+Shift+e
|
|
||||||
|
|
||||||
# Lock the system
|
|
||||||
# lock with a picture or blurring the screen (options in config)
|
|
||||||
+l
|
|
||||||
|
|
||||||
# reload the configuration file
|
|
||||||
+Shift+c
|
|
||||||
|
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
|
||||||
+Shift+r
|
|
||||||
|
|
||||||
# keybinding in fancy rofi (automated)
|
|
||||||
F1
|
|
||||||
|
|
||||||
# full keybinding list in editor:
|
|
||||||
+F1
|
|
||||||
|
|
||||||
# change window focus
|
|
||||||
+j focus left
|
|
||||||
+k focus down
|
|
||||||
+b focus up
|
|
||||||
+o focus right
|
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
|
||||||
+Left focus left
|
|
||||||
+Down focus down
|
|
||||||
+Up focus up
|
|
||||||
+Right focus right
|
|
||||||
|
|
||||||
# move a focused window
|
|
||||||
+Shift+j move left
|
|
||||||
+Shift+k move down
|
|
||||||
+Shift+b move up
|
|
||||||
+Shift+o move right
|
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
|
||||||
+Shift+Left move left
|
|
||||||
+Shift+Down move down
|
|
||||||
+Shift+Up move up
|
|
||||||
+Shift+Right move right
|
|
||||||
|
|
||||||
# split in horizontal orientation
|
|
||||||
+h split h
|
|
||||||
|
|
||||||
# split in vertical orientation
|
|
||||||
+v split v
|
|
||||||
|
|
||||||
# enter fullscreen mode for the focused container
|
|
||||||
+f fullscreen toggle
|
|
||||||
|
|
||||||
# change container layout (stacked, tabbed, toggle split)
|
|
||||||
+s layout stacking
|
|
||||||
+g layout tabbed
|
|
||||||
+e layout toggle split
|
|
||||||
|
|
||||||
# toggle tiling / floating
|
|
||||||
+Shift+space floating toggle
|
|
||||||
|
|
||||||
# change focus between tiling / floating windows
|
|
||||||
+space focus mode_toggle
|
|
||||||
|
|
||||||
# focus the parent container
|
|
||||||
+a focus parent
|
|
||||||
|
|
||||||
# focus the child container
|
|
||||||
#+d focus child
|
|
||||||
|
|
||||||
# resize floating window
|
|
||||||
+right mouse button
|
|
||||||
|
|
||||||
## Multimedia Keys
|
|
||||||
|
|
||||||
# Redirect sound to headphones
|
|
||||||
+p
|
|
||||||
|
|
||||||
## App shortcuts
|
|
||||||
+w starts Firefox
|
|
||||||
+n starts Thunar
|
|
||||||
Button screenshot
|
|
||||||
@@ -4,8 +4,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
../base/server
|
../base/server
|
||||||
|
|
||||||
./base/shell.nix
|
./server
|
||||||
./base/system-tools.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
|
|||||||
@@ -8,11 +8,6 @@
|
|||||||
|
|
||||||
./fcitx5
|
./fcitx5
|
||||||
./desktop
|
./desktop
|
||||||
|
|
||||||
./base/shell.nix
|
|
||||||
./base/ssh.nix
|
|
||||||
./base/system-tools.nix
|
|
||||||
./base/xdg.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
|
|||||||
@@ -8,11 +8,6 @@
|
|||||||
|
|
||||||
./fcitx5
|
./fcitx5
|
||||||
./desktop
|
./desktop
|
||||||
|
|
||||||
./base/shell.nix
|
|
||||||
./base/ssh.nix
|
|
||||||
./base/system-tools.nix
|
|
||||||
./base/xdg.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
|
|||||||
@@ -120,8 +120,14 @@
|
|||||||
# but it's not supported by macOS yet.
|
# but it's not supported by macOS yet.
|
||||||
keyboard = {
|
keyboard = {
|
||||||
enableKeyMapping = true; # enable key mapping so that we can use `option` as `control`
|
enableKeyMapping = true; # enable key mapping so that we can use `option` as `control`
|
||||||
|
|
||||||
|
# NOTE: do NOT support remap capslock to both control and escape at the same time
|
||||||
remapCapsLockToControl = false; # remap caps lock to control
|
remapCapsLockToControl = false; # remap caps lock to control
|
||||||
remapCapsLockToEscape = false; # remap caps lock to escape
|
remapCapsLockToEscape = true; # remap caps lock to escape
|
||||||
|
|
||||||
|
# swap left command and left alt,
|
||||||
|
# so it matches common keyboard layout: `ctrl | command | alt`
|
||||||
|
swapLeftCommandAndLeftAlt = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -171,6 +171,19 @@
|
|||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
security.pam.services.greetd.enableGnomeKeyring = true;
|
security.pam.services.greetd.enableGnomeKeyring = true;
|
||||||
|
|
||||||
|
|
||||||
|
# A key remapping daemon for linux.
|
||||||
|
# https://github.com/rvaiya/keyd
|
||||||
|
services.keyd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
# overloads the capslock key to function as both escape (when tapped) and control (when held)
|
||||||
|
capslock = "overload(control, esc)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
dbus.packages = [ pkgs.gcr ];
|
dbus.packages = [ pkgs.gcr ];
|
||||||
|
|
||||||
|
|||||||
@@ -24,41 +24,7 @@ menu:
|
|||||||
page_size: 5
|
page_size: 5
|
||||||
|
|
||||||
punctuator:
|
punctuator:
|
||||||
full_shape:
|
half_shape: &half_shape
|
||||||
' ' : { commit: ' ' }
|
|
||||||
',' : { commit: , }
|
|
||||||
'.' : { commit: 。 }
|
|
||||||
'<' : [ 《, 〈, «, ‹ ]
|
|
||||||
'>' : [ 》, 〉, », › ]
|
|
||||||
'/' : { commit: 、 }
|
|
||||||
'?' : { commit: ? }
|
|
||||||
';' : { commit: ; }
|
|
||||||
':' : { commit: : }
|
|
||||||
'''' : { pair: [ '‘', '’' ] }
|
|
||||||
'"' : { pair: [ '“', '”' ] }
|
|
||||||
'\' : { commit: 、 }
|
|
||||||
'|' : '|'
|
|
||||||
'`' : `
|
|
||||||
'~' : ~
|
|
||||||
'!' : { commit: ! }
|
|
||||||
'@' : '@'
|
|
||||||
'#' : '#'
|
|
||||||
'%' : '%'
|
|
||||||
'$' : [ ¥, '$', '€', '£', '¥', '¢', '¤' ]
|
|
||||||
'^' : { commit: …… }
|
|
||||||
'&' : &
|
|
||||||
'*' : '*'
|
|
||||||
'(' : (
|
|
||||||
')' : )
|
|
||||||
'-' : -
|
|
||||||
'_' : ——
|
|
||||||
'+' : +
|
|
||||||
'=' : =
|
|
||||||
'[' : [ 「, 【, 〔, [ ]
|
|
||||||
']' : [ 」, 】, 〕, ] ]
|
|
||||||
'{' : [ 『, 〖, { ]
|
|
||||||
'}' : [ 』, 〗, } ]
|
|
||||||
half_shape:
|
|
||||||
',' : { commit: , }
|
',' : { commit: , }
|
||||||
'.' : { commit: 。 }
|
'.' : { commit: 。 }
|
||||||
'<' : [ 《, 〈, «, ‹ ]
|
'<' : [ 《, 〈, «, ‹ ]
|
||||||
@@ -91,10 +57,13 @@ punctuator:
|
|||||||
# ']' : { commit: '】' }
|
# ']' : { commit: '】' }
|
||||||
# '{' : { commit: '{' }
|
# '{' : { commit: '{' }
|
||||||
# '}' : { commit: '}' }
|
# '}' : { commit: '}' }
|
||||||
|
# 直角空格更好看,改成它
|
||||||
'[' : { commit: '「' }
|
'[' : { commit: '「' }
|
||||||
']' : { commit: '」' }
|
']' : { commit: '」' }
|
||||||
'{' : { commit: '『' }
|
'{' : { commit: '『' }
|
||||||
'}' : { commit: '』' }
|
'}' : { commit: '』' }
|
||||||
|
# 这个全宽字符非常恶心, 没啥用,老搞出全宽空格,禁用掉!
|
||||||
|
full_shape: *half_shape
|
||||||
|
|
||||||
key_binder:
|
key_binder:
|
||||||
bindings:
|
bindings:
|
||||||
|
|||||||
Reference in New Issue
Block a user