Add config file for alacritty

This commit is contained in:
Vili Sinervä 2024-12-10 20:20:45 +02:00
parent c38e36bb7e
commit 058753122c
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
4 changed files with 10 additions and 3 deletions

View file

@ -2,7 +2,6 @@
{ {
######################################## Packages ############################################### ######################################## Packages ###############################################
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty
tmux tmux
git git
nvi nvi

View file

@ -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

View file

@ -0,0 +1 @@
{ config, pkgs, ... }: pkgs.writeText "alacritty-conf" ''''

View file

@ -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"