Add config file for alacritty
This commit is contained in:
parent
c38e36bb7e
commit
058753122c
4 changed files with 10 additions and 3 deletions
1
base.nix
1
base.nix
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
######################################## Packages ###############################################
|
######################################## Packages ###############################################
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
|
||||||
tmux
|
tmux
|
||||||
git
|
git
|
||||||
nvi
|
nvi
|
||||||
|
|
|
@ -24,6 +24,7 @@ in
|
||||||
imports = [ ./program-config-files/firefox.nix ];
|
imports = [ ./program-config-files/firefox.nix ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
alacritty
|
||||||
i3status
|
i3status
|
||||||
rofi
|
rofi
|
||||||
arandr
|
arandr
|
||||||
|
@ -42,7 +43,6 @@ in
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
flameshot
|
flameshot
|
||||||
speedcrunch
|
speedcrunch
|
||||||
# brave
|
|
||||||
|
|
||||||
zotero
|
zotero
|
||||||
kile
|
kile
|
||||||
|
|
1
program-config-files/alacritty.nix
Normal file
1
program-config-files/alacritty.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{ config, pkgs, ... }: pkgs.writeText "alacritty-conf" ''''
|
|
@ -1,5 +1,11 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
|
alacritty-conf = "${
|
||||||
|
(import ./alacritty.nix {
|
||||||
|
inherit config;
|
||||||
|
inherit pkgs;
|
||||||
|
})
|
||||||
|
}";
|
||||||
i3status-conf = "${pkgs.writeText "i3status-conf" ''
|
i3status-conf = "${pkgs.writeText "i3status-conf" ''
|
||||||
# It is important that this file is edited as UTF-8.
|
# It is important that this file is edited as UTF-8.
|
||||||
# The following line should contain a sharp s:
|
# The following line should contain a sharp s:
|
||||||
|
@ -81,7 +87,8 @@ pkgs.writeText "i3-conf" ''
|
||||||
bindcode 232 exec --no-startup-id brightnessctl set 5%-
|
bindcode 232 exec --no-startup-id brightnessctl set 5%-
|
||||||
bindcode 233 exec --no-startup-id brightnessctl set 5%+
|
bindcode 233 exec --no-startup-id brightnessctl set 5%+
|
||||||
|
|
||||||
bindsym $mod+Return exec alacritty
|
bindsym $mod+Return exec "alacritty --config-file ${alacritty-conf}"
|
||||||
|
bindsym $mod+Shift+Return exec "alacritty --config-file ${alacritty-conf} --working-directory $PWD"
|
||||||
bindsym $mod+d exec --no-startup-id "rofi -theme 'Arc-Dark' -show combi -combi-modes 'run' -modes combi"
|
bindsym $mod+d exec --no-startup-id "rofi -theme 'Arc-Dark' -show combi -combi-modes 'run' -modes combi"
|
||||||
|
|
||||||
bindsym $mod+Shift+p mode "$mode_system"
|
bindsym $mod+Shift+p mode "$mode_system"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue