diff options
author | lassulus <lassulus@lassul.us> | 2018-03-27 21:34:05 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-03-27 21:34:05 +0200 |
commit | 19d3947a7c2169d1d83ad83183bc2c9a751877cb (patch) | |
tree | 59af0f24ba911c2d941b1bb0ea8acd191219fdef /tv/5pkgs | |
parent | 1072f28a1e11beed280a85acfe53782540c1b9a0 (diff) | |
parent | 1dc8fa4ec2374fd90bfbe4455dd6d1b0e5e12a6a (diff) |
Merge remote-tracking branch 'ni/nixpkgs-18.03-fix-strip' into staging/18.03
Diffstat (limited to 'tv/5pkgs')
-rw-r--r-- | tv/5pkgs/simple/font-size.nix | 26 | ||||
-rw-r--r-- | tv/5pkgs/simple/xmonad-tv/default.nix | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tv/5pkgs/simple/font-size.nix b/tv/5pkgs/simple/font-size.nix new file mode 100644 index 0000000..21097ed --- /dev/null +++ b/tv/5pkgs/simple/font-size.nix @@ -0,0 +1,26 @@ +{ writeDashBin }: +writeDashBin "font-size" '' + set -efu + + # set_font NORMAL_FONT BOLD_FONT + set_font() { + printf '\033]710;%s\007' "$1" + printf '\033]711;%s\007' "$2" + } + + case ''${1-} in + '''|0|--reset) + set_font \ + -*-clean-*-*-*-*-*-*-*-*-*-*-iso10646-1 \ + -*-clean-*-*-*-*-*-*-*-*-*-*-iso10646-1 \ + ;; + [1-9]|[1-9][0-9]|[1-9][0-9][0-9]) + set_font \ + xft:Monospace:size=$1 \ + xft:Monospace:size=$1:bold \ + ;; + *) + echo "$0: bad argument: $1" >&2 + exit 1 + esac +'' diff --git a/tv/5pkgs/simple/xmonad-tv/default.nix b/tv/5pkgs/simple/xmonad-tv/default.nix index 94c7015..d474b7e 100644 --- a/tv/5pkgs/simple/xmonad-tv/default.nix +++ b/tv/5pkgs/simple/xmonad-tv/default.nix @@ -133,6 +133,8 @@ myKeys conf = Map.fromList $ [ ((_4 , xK_Escape ), forkFile "/run/wrappers/bin/slock" [] Nothing) , ((_4S , xK_c ), kill) + , ((_4 , xK_p ), forkFile "${pkgs.pass}/bin/passmenu" ["--type"] Nothing) + , ((_4 , xK_x ), chooseAction spawnTermAt) , ((_4C , xK_x ), spawnRootTerm) |