summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-07-16 20:55:46 +0200
committerAlex Auvolat <alex@adnab.me>2023-07-16 20:55:46 +0200
commit97975769bd47701203aaef62c8c181fdf0d39ed8 (patch)
tree7f016b9b86d9098a86a1ec8694335452b1c33451
parent4fdfa0b7a6f4e2a8e29961a9b8c5dd4d88c34fa0 (diff)
downloaduser-config-97975769bd47701203aaef62c8c181fdf0d39ed8.tar.gz
user-config-97975769bd47701203aaef62c8c181fdf0d39ed8.zip
add some conveniences to icewm desktop
-rw-r--r--icewm/keys9
-rw-r--r--nixos/icewm.nix7
-rw-r--r--nixpkgs/common.nix3
3 files changed, 18 insertions, 1 deletions
diff --git a/icewm/keys b/icewm/keys
index c0946ec..4d8c855 100644
--- a/icewm/keys
+++ b/icewm/keys
@@ -1,4 +1,13 @@
key "Super+Enter" st
+key "Super+p" dmenu_run
key "Super+Shift+r" icewm --restart
key "Super+Shift+x" i3lock -c 000000
+
+key "XF86MonBrightnessDown" xbacklight -dec 10
+key "XF86MonBrightnessUp" xbacklight -inc 10
+
+key "XF86AudioMute" pactl set-sink-mute @DEFAULT_SINK@ toggle
+key "XF86AudioRaiseVolume" sh -c "pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ +5%"
+key "XF86AudioLowerVolume" sh -c "pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ -5%"
+
diff --git a/nixos/icewm.nix b/nixos/icewm.nix
index 5b00359..3e8d81f 100644
--- a/nixos/icewm.nix
+++ b/nixos/icewm.nix
@@ -5,7 +5,14 @@
environment.systemPackages = with pkgs; [
i3lock
+ xorg.xbacklight
+ pulseaudio
+ pavucontrol
+ networkmanagerapplet
+
+ dmenu
feh
+ mupdf
acpi
netsurf.browser
midori
diff --git a/nixpkgs/common.nix b/nixpkgs/common.nix
index a52062c..b0518e3 100644
--- a/nixpkgs/common.nix
+++ b/nixpkgs/common.nix
@@ -51,6 +51,7 @@
".config/sx/sxrc".executable = true;
".config/sx/sxrc".text = ''
${pkgs.xorg.xkbcomp}/bin/xkbcomp ${../xkb/symbols/custom-fr} $DISPLAY
+ nm-applet &
icewm-session
'';
".config/icewm/preferences".source = ../icewm/preferences;
@@ -60,7 +61,7 @@
".config/icewm/toolbar".text = ''
prog "Terminal" xterm st
prog "Qutebrowser" ${pkgs.qutebrowser}/share/icons/hicolor/32x32/apps/qutebrowser.png qutebrowser
- prog "Firefox" ${pkgs.firefox}/share/icons/hicolor/32x32/apps/firefox.png firefox
+ prog "Firefox" ${pkgs.firefox-esr}/share/icons/hicolor/32x32/apps/firefox.png firefox
prog "Midori" ${pkgs.midori}/share/icons/hicolor/22x22/apps/org.midori_browser.Midori.png midori
prog "Sylpheed" ${pkgs.sylpheed}/share/pixmaps/sylpheed.png sylpheed
prog "Thunderbird" ${pkgs.thunderbird}/share/icons/hicolor/32x32/apps/thunderbird.png thunderbird