blob: 68f6c64459936cb396220807394f4f0ac89fa7d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
{ config, lib, pkgs, inputs, user, hostname, secrets, ... }:
let
dotfiles = ../../dotfiles;
in
{
home.packages = with pkgs; [
#minecraft
#jetbrains.idea-community
calibre
qtcreator
kcc
custom.anime-downloader
custom.adl
custom.trackma
custom.kindlegen
];
programs.firefox.profiles.default.settings = {
"media.ffmpeg.vaapi.enabled" = true; #Hardware acceleration
};
xdg.configFile = {
"dwmbar/config".text = ''
#!/bin/sh
# What modules, in what order
MODULES="weather wifi internet volume ram_perc cpuload cputemp battery date time"
# Modules that require an active internet connection
ONLINE_MODULES="weather internet"
# Delay between showing the status bar
DELAY="0.05"
# Where the custom modules are stored
CUSTOM_DIR="/home/$USER/.config/dwmbar/modules/custom/"
# Separator between modules
SEPARATOR=" | "
# Padding at the end and beggining of the status bar
RIGHT_PADDING=" "
LEFT_PADDING=" "
'';
"sxhkd/sxhkdrc".text =
builtins.readFile (dotfiles + "/sxhkd/dwm") +
builtins.readFile (dotfiles + "/sxhkd/base") +
''
#enter and leave game mode
alt + shift + F11: ctrl + shift + F11
pkill -ALRM sxhkd
# Make sxhkd reload its configuration files
alt + Escape
pkill -USR1 -x sxhkd
#Screenshot
alt + grave
bash ~/.scripts/screenshot
Print
bash ~/.scripts/screenshot
XF86Search
dmenu_run -i
XF86PowerOff
bash /usr/share/dmenu-baitinq-git/scripts/exit
#TODO: Change to XF86FullScreen or XF86XK_FullScreen when implemented
F4
dwmc togglefullscreen
##################
##### VOLUME #####
##################
# Raise volume
XF86AudioRaiseVolume
pactl set-sink-volume 0 +5%
# Lower volume
XF86AudioLowerVolume
pactl set-sink-volume 0 -5%
# Mute audio
# note: mute always sets audio off (toggle)
XF86AudioMute
pactl set-sink-mute 0 toggle
######################
##### BRIGHTNESS #####
######################
XF86MonBrightnessUp
light -A 5
XF86MonBrightnessDown
light -U 5
######################
######## MEDIA #######
######################
XF86AudioPlay
playerctl play
XF86AudioPause
playerctl pause
XF86AudioNext
playerctl next
XF86AudioPrev
playerctl previous
######################
######## OTHER #######
######################
@XF86Back
xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'
@XF86Forward
xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'
@XF86Reload
xte 'keydown Control_L' 'key r' 'keyup Control_L'
'';
"mpv/mpv.conf".text = ''
ytdl-format=bestvideo[height<=?720][fps<=?60][vcodec!=?vp9]+bestaudio/best
hwdec
'';
};
home.file.".cache/nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database;
}
|