feat: added fix shit script bindings
WIP: started adding polybar support for different dpi
This commit is contained in:
parent
0f61799a35
commit
ba85a6474c
|
@ -1,4 +1,4 @@
|
|||
MOD: TAGS:
|
||||
MOD: TAGS: pkgs:
|
||||
{
|
||||
# ${MOD} will be set to the main modifier key
|
||||
|
||||
|
@ -74,10 +74,11 @@ MOD: TAGS:
|
|||
"${MOD}-Shift-space" = " cycle_layout -1";
|
||||
|
||||
"${MOD}-t " = "spawn kitty";
|
||||
"${MOD}-b " = "spawn firefox";
|
||||
"${MOD}-m " = "spawn thunderbird";
|
||||
"${MOD}-b " = "spawn ${pkgs.firefox}/bin/firefox";
|
||||
"${MOD}-m " = "spawn ${pkgs.thunderbird}/bin/thunderbird";
|
||||
"${MOD}-Shift-l " = "spawn systemctl suspend";
|
||||
"Menu" = "spawn rofi -show run";
|
||||
"${MOD}-F12" = "spawn ${(import ../../modules/touchscreen.nix) pkgs}";
|
||||
}
|
||||
// builtins.listToAttrs (map (x: {
|
||||
name = "${MOD}-${x}";
|
||||
|
|
|
@ -12,4 +12,6 @@ xsetroot -solid '#000000'
|
|||
#
|
||||
#touchegg &
|
||||
#dunst &
|
||||
autorandr -c
|
||||
xset r rate 235 60
|
||||
exec dbus-launch --sh-syntax --exit-with-session -- herbstluftwm --locked
|
||||
|
|
10
modules/touchscreen.nix
Normal file
10
modules/touchscreen.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
pkgs:
|
||||
# This is small script to map touchinputs to outputs
|
||||
# in an ideal world this would happen automatically but
|
||||
# with udev and X11 we truly do not live in an ideal world
|
||||
"${pkgs.writeShellScriptBin "fix-shit" ''
|
||||
xinput --map-to-output "ELAN2514:00 04F3:2817" eDP-1
|
||||
xinput --map-to-output "ELAN2514:00 04F3:2817 Stylus Pen (0)" eDP-1
|
||||
xset r rate 235 60
|
||||
autorandr -c
|
||||
''}/bin/fix-shit"
|
|
@ -46,7 +46,7 @@ in {
|
|||
"${MOD}-Button3" = "resize";
|
||||
};
|
||||
|
||||
keybinds = import (data_dir + /keybinds.nix) MOD TAGS;
|
||||
keybinds = import (data_dir + /keybinds.nix) MOD TAGS pkgs;
|
||||
settings = {
|
||||
"default_frame_layout" = 3;
|
||||
|
||||
|
|
|
@ -74,8 +74,12 @@ in {
|
|||
monitor-fallback = "eDP-1";
|
||||
bottom = true;
|
||||
|
||||
dpi = 96;
|
||||
height = 22;
|
||||
# for UHD Polybar
|
||||
dpi = 144;
|
||||
height = 33;
|
||||
# for HD Polybar
|
||||
#dpi = 96;
|
||||
#height = 22;
|
||||
offset.x = "0%";
|
||||
offset.y = "0%";
|
||||
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
{pkgs, ...}: let
|
||||
# This is small script to map touchinputs to outputs
|
||||
# in an ideal world this would happen automatically but
|
||||
# with udev and X11 we truly do not live in an ideal world
|
||||
fix = pkgs.writeShellScriptBin "fix-shit" ''
|
||||
xinput --map-to-output "ELAN2514:00 04F3:2817" eDP-1
|
||||
xinput --map-to-output "ELAN2514:00 04F3:2817 Stylus Pen (0)" eDP-1
|
||||
xset r rate 235 60
|
||||
autorandr -c
|
||||
'';
|
||||
in {
|
||||
home.packages = [fix];
|
||||
}
|
|
@ -9,7 +9,6 @@
|
|||
common/graphical/autorandr.nix
|
||||
common/programs/polybar.nix
|
||||
common/programs/rofi.nix
|
||||
common/touchscreen.nix
|
||||
#common/touchegg.nix
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue